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

New prometheus metric storing information about series age #2988

Closed
bkupidura opened this Issue Jul 25, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@bkupidura
Copy link

bkupidura commented Jul 25, 2017

Suggested scenario for Prometheus HA is to have multiple instances of Prometheus scraping same targets. But there is no way to distinguish which instance is oldest.

This can be problem for ex. graphing tools (grafana).

  1. Spawn 2 instances of prometheus (A, B)
  2. Instance A is down
  3. Spawn new instance (C)
  4. Grafana should use 'B' to serve graphs, till 'C' will catch up with series

Prometheus process_start_time_seconds can't be treated as reliable for this purpose.

We can use load-balancer to disable 'fresh' instances, but to make this more autonomous (no operator intervention needed) we need metric which gives us information which Prometheus stores oldest series.

We can expose a few additional metrics:

  1. oldest_metric timestamp
  2. local storage size
  3. number of series in storage

Option 2) sounds ridiculous and not reliable
Option 3) based on @brian-brazil opinion will not be easy to implement in Prometheus 2.X

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Jul 25, 2017

We will want to know when the DB was created later for use when querying long term storage (don't need to query what we already have locally).

@gouthamve

This comment has been minimized.

Copy link
Member

gouthamve commented Jul 26, 2017

Yes, oldest_timestamp is a good metric to have. I am not sure how this would work in 1.x but it is trivial to implement in 2.0.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 22, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 22, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.