Varken icon indicating copy to clipboard operation
Varken copied to clipboard

[Feature Request] Prometheus endpoint

Open MaartenMol opened this issue 6 years ago • 4 comments

Add an /metrics endpoint so that Prometheus can scrape from it. This way we can choose what TSDB to use.

MaartenMol avatar Dec 19 '18 09:12 MaartenMol

adding an endpoint would require hosting a flask app and defining a port. This was not the design choice for us and was designed to pull information only, not be pulled from. I suggest you looking into the already existing integration built for this between prometheus_read and influxdb. https://docs.influxdata.com/influxdb/v1.7/supported_protocols/prometheus/

dirtycajunrice avatar Dec 19 '18 20:12 dirtycajunrice

Further knowledge has shown that the prometheus python module is fully capable of doing this. Re-opening and leaving for when either i have time or someone would like to attempt :D

dirtycajunrice avatar Sep 19 '19 20:09 dirtycajunrice

https://github.com/Boerderij/Varken/tree/prometheus-exporter WIP

dirtycajunrice avatar Jan 08 '20 20:01 dirtycajunrice

Slight addition: Someone informed me InfluxDB 2.0 also supports pulling Prometheus datasources, which means implementing this also de-facto solves #159

PrivatePuffin avatar Nov 02 '20 18:11 PrivatePuffin