python-diamond / Diamond

Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others). It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
http://diamond.readthedocs.org/
MIT License
1.74k stars 600 forks source link

Use valid format for InfluxDBClient.write_points and convert metric path to metric name plus tags #666

Closed TomTheBear closed 7 years ago

TomTheBear commented 7 years ago

In my tests, the InfluxDB handler didn't work because the JSON dict created by the handler wasn't accepted by python-influxdb. I re-checked the implementation in python-influxdb and the problem is definitely on at the handler side. This PR includes:

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.09%) to 24.578% when pulling a0160c0b484f56c560d3bc76e0e5c94f55f616bc on TomTheBear:InfluxDB_handler into f2bece462577a7c557be8a9f90f6b9340c3db571 on python-diamond:master.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.09%) to 24.578% when pulling a0160c0b484f56c560d3bc76e0e5c94f55f616bc on TomTheBear:InfluxDB_handler into f2bece462577a7c557be8a9f90f6b9340c3db571 on python-diamond:master.

TomTheBear commented 7 years ago

There is already the PR #504 doing the same stuff