Skip to content

toolkit: Reconciliation status as Prometheus metrics #170

Discussion options

You must be logged in to vote

This is a misuse of gauges, which are to record a quantity. The things you'd expect to do with a gauge are:

  • aggregate it over several metrics (permutations of labels)
  • chart its value over time;

Neither of these yields anything useful when the gauge value represents a discrete state. (OK, you could make a chart of the state transitions of a single object, provided you could select a single object with labels. But there are better ways to get that information, like events).

A lesser misuse might be to give an aggregate count of the number of items in each state, which (since this can fall as well as rise) would need to be a gauge.

gitops_toolkit_ready_state{kind, name, namespace, status} …

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@stefanprodan
Comment options

Comment options

You must be logged in to vote
2 replies
@stefanprodan
Comment options

@squaremo
Comment options

Answer selected by stefanprodan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants