messagebird / pushprom

Pushprom is a proxy to the Prometheus Go client.
https://www.messagebird.com
BSD 2-Clause "Simplified" License
80 stars 13 forks source link

Store timestamp of last pushed metric #5

Open elecnix opened 7 years ago

elecnix commented 7 years ago

Scraping pushprom returns no timestamp for metrics, which may be very old. No staleness check is possible unless one metric contains a timestamp as a value.

Instead, pushprom could provide the timestamp when the metric was received.

The wire format allows it: https://prometheus.io/docs/instrumenting/exposition_formats/

samwierema commented 7 years ago

We can't currently do this at this time, the Go client for Prometheus explicitly doesn't allow it. See this issue for more information: https://github.com/prometheus/client_golang/issues/143

marcelcorso commented 7 years ago

If you want to check for the "health" of a metric an idea is to look at rate it's changing... Not sure.