0.2.0 • Published 9 years ago

jarmo-influxdb-reporter v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Jarmo InfluxDB Reporter

Reporter module for Jarmo, pushes data to InfluxDB. Note that this module is for InfluxDB 0.9 and up!

Configuration

Configuration can be passed in under the influxdb key. Like so:

export default {
	reporters: [
		'../backends/influxdb'
	],
	influxdb: {
		host:     'localhost',  // Host of the InfluxDB server.
		port:     8000,         // Port of the InfluxDB server.
		database: 'test',       // Database name.
		username: 'test',       // Username for basic authentication.
		password: 'test'        // Password for basic authentication.
	}
}

Data Format

Since Jarmo expects JSON, the received data is actually a JSON object. In order for this reporter to work, the data should be in the following format:

{
	name: 'response',  // InfluxDB 'series' name.
	tags: {
		// Tags for this 'data point'.
		host: 'abc_01'
	},
	fields: {
		// Fields for this 'data point'.
		response_time:   26,
		response_status: 300
	}
}

You can also add a timestamp field to the payload, which will overwrite the timestamp set by Jarmo.

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago