Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store timestamp of last pushed metric #5

Open
elecnix opened this issue Nov 16, 2016 · 2 comments
Open

Store timestamp of last pushed metric #5

elecnix opened this issue Nov 16, 2016 · 2 comments

Comments

@elecnix
Copy link

elecnix commented Nov 16, 2016

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
Copy link
Contributor

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: prometheus/client_golang#143

@marcelcorso
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants