Scrin / RuuviCollector

Utility to collect measurements from RuuviTags and store them in InfluxDB
MIT License
125 stars 62 forks source link

Adds a Prometheus backend #52

Closed joekearney closed 3 years ago

joekearney commented 3 years ago

This adds support to export measurements to Prometheus.

Whereas currently the collector supports writing measurements into a database, this Prometheus exporter pretends to be a database by writing measurements into counters. These are exported over HTTP in the normal pattern, to be scraped by a Prometheus server.

DG12 commented 3 years ago

Can you comment on a comparison of influxDB and Prometheus.

Scrin commented 3 years ago

Thank you for your contribution! This exact feature has actually been on my todo list for a long time already, but never got to implement it yet due to the lack of time. I'll review this more in-depth later today or during the weekend.

@DG12 Prometheus is a monitoring system with a time-series database, while InfluxDB is just a time-series database

joekearney commented 3 years ago

@Scrin all good. I've had it running for a couple of months before finally getting round to the PR, so it's stable. I'm happy to address any review points, but no rush!

Scrin commented 3 years ago

Everything looks good! I might make some minor changes before crafting an official release though, but that'll have to wait