You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Only custom collectors should be able to expose timestamps #177
This makes no sense semantically, and breaks ingestion, timestamps, and staleness on the Prometheus end. All ability to set timestamps with direct instrumentation should be removed, and there should be no timestamps on /metrics in normal circumstances.
Reacted by Christian Nicolai, Boa Ho Man, Peter Achberger, Paul Traylor, Zach Bjornson and andrejs82git
It looks like this client does not support custom collectors as it doesn't support collectors (it's all metric based), so as it stands there's no need for any timestamp-related functionality.
It's causing duplicate timestamp errors at the least. It's also going to be causing quite a few problems when trying to use affected metrics via PromQL due to staleness handling.
Activity
brian-brazil commentedon Mar 26, 2018
It looks like this client does not support custom collectors as it doesn't support collectors (it's all metric based), so as it stands there's no need for any timestamp-related functionality.
SimenB commentedon Mar 26, 2018
Oh, I didn't know that!
What's the role of collectors? Is it something we should support?
brian-brazil commentedon Mar 26, 2018
This is a bug report, this issue is actively causing problems.
They're mainly needed for writing exporters, though they can also come up in applications sometimes. It's up to you if you want to support them.
SimenB commentedon Mar 26, 2018
What issues is it causing? It's possible to strip the timestamp from the textual representation (see https://github.com/siimon/prom-client#register)
Not to say I'm against removing them, but "actively causing problems" should at least be possible to work around until we remove it.
brian-brazil commentedon Mar 26, 2018
It's causing duplicate timestamp errors at the least. It's also going to be causing quite a few problems when trying to use affected metrics via PromQL due to staleness handling.
feature: remove all timestamp support (#333)
SimenB commentedon Feb 22, 2020
#333