Skip to content

Status Enum reporting both states simultaneously? #770

Answered by csmarchbanks
jca515 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, you are using Enum properly and it is expected to see both states at the same time. You will see that the value of one of the states is 1, and the other values are 0. The series with a value of 1 is the state that is active. The reason for this behavior is that it avoids creating lots of churn in your Prometheus instance where series are deleted and re-created for each state change, and allows easier use of some operations. If you want to query for just the active state you can use arlyn_scales_status == 1.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by jca515
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants