DISCONTINUATION OF PROJECT
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.
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
/opt/snap/plugins is the default location for Snap packages).
To build the plugin binary:
Clone repo into
$ git clone https://github.com/<yourGithubID>/snap-plugin-collector-influxdb-data
Build the plugin by running make in repo:
This builds the plugin in
Configuration and Usage
- Set up the Snap framework
The intention of this plugin is to receive data previously saved in InfluxDB.
This plugin has the ability to gather the following metrics:
|/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:
$ 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.
We love contributions!
There's more than one way to give back, from examples to blogs to code updates. See our recommended process in CONTRIBUTING.md.
- Author: Katarzyna Kujawa
And thank you! Your contribution, through code and participation, is incredibly important to us.