Snap plugin intended to receive data previously saved in InfluxDB
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This project will no longer be maintained by Intel. Intel will not provide or guarantee development of or support for this project, including but not limited to, maintenance, bug fixes, new releases or updates. Patches to this project are no longer accepted by Intel. If you have an ongoing need to use this project, are interested in independently developing it, or would like to maintain patches for the community, please create your own fork of the project.

Snap plugin collector - InfluxDB data

Snap plugin intended to receive data previously saved in InfluxDB.

  1. Getting Started
  1. Documentation
  1. Community Support
  2. Contributing
  3. License
  4. Acknowledgements


Download the plugin binary:

You can get the pre-built binaries for your OS and architecture from the plugin's GitHub Releases page. Download the plugin from the latest release and load it into snapteld (/opt/snap/plugins is the default location for Snap packages).

To build the plugin binary:


Clone repo into $GOPATH/src/github/intelsdi-x/:

$ git clone<yourGithubID>/snap-plugin-collector-influxdb-data

Build the plugin by running make in repo:

$ make

This builds the plugin in ./build

Configuration and Usage


The intention of this plugin is to receive data previously saved in InfluxDB.

Collected Metrics

This plugin has the ability to gather the following metrics:

Namespace Description
/intel/influxdb-data/[series_name]/[data_type]/data Single metric received from InfluxDB
  • series_name - name of series, namespace separator is replaced with _
  • data_type - received from configuration provided by user

#Configurable options The plugin can be configured by following parameters in config section:

  • host - InfluxDB host (with port number)
  • database - InfluxDB database,
  • user - InfluxDB user,
  • password - 'InfluxDB' password,
  • data_type - indicates which column from response is used as a data for metric, this parameter is added for metric namespace on 4th position,
  • query - indicates query which is used to receive data from InfluxDB.

Notice: Special characters in query need to be escaped.


This is an example running snap-plugin-collector-influxdb-data to received previously saved metrics from snap-plugin-collector-cpu and writing data to a file. It is assumed that you are using the latest Snap binary and plugins.

In one terminal window, open the Snap daemon (n this case with logging set to 1 and trust disabled):

$ snapteld -l 1 -t 0

In another terminal window:

Load plugins:

$ snaptel plugin load snap-plugin-collector-influxdb-data
$ snaptel plugin load snap-plugin-publisher-file

Create a task manifest - see examplary task manifests in examples/tasks and create a task:

$ snaptel task create -t task.json

To stop task:

$ snaptel task stop <task_id>


There isn't a current roadmap for this plugin, but it is in active development. As we launch this plugin, we do not have any outstanding requirements for the next release.

If you have a feature request, please add it as an issue and/or submit a pull request.

Community Support

This repository is one of many plugins in Snap, a powerful telemetry framework. See the full project at To reach out to other users, head to the main framework


We love contributions!

There's more than one way to give back, from examples to blogs to code updates. See our recommended process in


Snap, along with this plugin, is an Open Source software released under the Apache 2.0 License.


And thank you! Your contribution, through code and participation, is incredibly important to us.