rcrowley / go-metrics

Go port of Coda Hale's Metrics library
Other
3.43k stars 493 forks source link

Add new influxdb metrics reporter #273

Open tehsphinx opened 4 years ago

tehsphinx commented 4 years ago

@rcrowley: I have written a new metrics reporter for influxDB. It uses the same data-layout as the one from @vrischmann but solves a problem I had with vrischmann's data reporter: It needs a new reporter per influxDB measurement. That also means with each new measurement another goroutine and another call to influxDB every x seconds.

With this metrics reporter, one is enough for all metrics and measurements in the entire application.

Unfortunately that meant breaking API changes, so I decided to write my own.