pushprom icon indicating copy to clipboard operation
pushprom copied to clipboard

Store timestamp of last pushed metric

Open elecnix opened this issue 8 years ago • 2 comments

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/

elecnix avatar Nov 16 '16 21:11 elecnix

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

samwierema avatar Nov 18 '16 12:11 samwierema

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

marcelcorso avatar Nov 18 '16 12:11 marcelcorso