telegraf/plugins/outputs
david birdsong dcfafd3033 fix prometheus output
if i understand the prometheus data model correctly, the current output
for this plugin is unusable

prometheus only accepts a single value per measurement. prior to this change, the range loop
causes a measurement to end up w/ a random value

for instance:

net,dc=sjc1,grp_dashboard=1,grp_home=1,grp_hwy_fetcher=1,grp_web_admin=1,host=sjc1-b4-8,hw=app,interface=docker0,state=live
bytes_recv=477596i,bytes_sent=152963303i,drop_in=0i,drop_out=0i,err_in=0i,err_out=0i,packets_recv=7231i,packets_sent=11460i
1457121990003778992

this 'net' measurent  would have all it's tags copied to prometheus
labels, but any of 152963303, or 0, or 7231 as a value for
'net' depending on which field is last in the map iteration

this change expands the fields into new measurements by appending
the field name to the influxdb measurement name.

ie, the above example results with 'net' dropped and new measurements
to take it's place:
	net_bytes_recv
	net_bytes_sent
	net_drop_in
	net_err_in
	net_packets_recv
	net_packets_sent

i hope this can be merged, i love telegraf's composability of tags and
filtering
2016-04-08 18:34:51 +02:00
..
all Add Serializer plugins, and 'file' output plugin 2016-04-08 18:34:42 +02:00
amon Seems to be a toml parse bug around triple pounds 2016-04-08 18:34:44 +02:00
amqp [amqp output] Allow external auth (cert-based tls auth) 2016-04-08 18:34:49 +02:00
cloudwatch Seems to be a toml parse bug around triple pounds 2016-04-08 18:34:44 +02:00
datadog Seems to be a toml parse bug around triple pounds 2016-04-08 18:34:44 +02:00
file Provide default args: percpu=true and totalcpu=true for cpu plugin 2016-04-08 18:34:44 +02:00
graphite Seems to be a toml parse bug around triple pounds 2016-04-08 18:34:44 +02:00
influxdb github wh: return from eventHandler when err != nil 2016-04-08 18:34:49 +02:00
kafka Seems to be a toml parse bug around triple pounds 2016-04-08 18:34:44 +02:00
kinesis Seems to be a toml parse bug around triple pounds 2016-04-08 18:34:44 +02:00
librato sanitize known issue characters from graphite tag name 2016-04-08 18:34:51 +02:00
mqtt Do not ignore username option for mqtt output 2016-04-08 18:34:47 +02:00
nsq Seems to be a toml parse bug around triple pounds 2016-04-08 18:34:44 +02:00
opentsdb Seems to be a toml parse bug around triple pounds 2016-04-08 18:34:44 +02:00
prometheus_client fix prometheus output 2016-04-08 18:34:51 +02:00
riemann Seems to be a toml parse bug around triple pounds 2016-04-08 18:34:44 +02:00
registry.go Create public models for telegraf metrics, accumlator, plugins 2016-01-27 15:42:50 -07:00