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

query: Inconsistent "thanos_status" metric naming #2315

Closed
MacroPower opened this issue Mar 24, 2020 · 2 comments · Fixed by #2319
Closed

query: Inconsistent "thanos_status" metric naming #2315

MacroPower opened this issue Mar 24, 2020 · 2 comments · Fixed by #2319

Comments

@MacroPower
Copy link
Contributor

Thanos, Prometheus and Golang version used:

Thanos: 0.11
Promethus: 2.16
Golang: 1.13.6

What happened:

I was exploring some of the internal Thanos metrics, and noticed some inconsistencies with the query component.

Each component has a thanos_status metric, except query, where it is called status.

Results from http://<query>/metrics:

# HELP status Represents status (0 indicates success, 1 indicates failure) of the component.
# TYPE status gauge
status{check="healthy",component="query"} 1
status{check="ready",component="query"} 1

Results from http://<compact/bucket/sidecar/store>/metrics:

# HELP thanos_status Represents status (0 indicates success, 1 indicates failure) of the component.
# TYPE thanos_status gauge
thanos_status{check="healthy",component="sidecar"} 1
thanos_status{check="ready",component="sidecar"} 1

What you expected to happen:

Metric naming should be consistent across all components.

@MacroPower
Copy link
Contributor Author

0 indicates success, 1 indicates failure

Additionally, this #HELP is the inverse of what it should be.

@jojohappy
Copy link
Member

jojohappy commented Mar 25, 2020

Hi, sorry for the inconsistent metrics, we will fix soon.

0 indicates success, 1 indicates failure

Additionally, this #HELP is the inverse of what it should be.

This HELP message has been changed in this PR #2216 .

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

Successfully merging a pull request may close this issue.

2 participants