Skip to content

Avoid empty label values for HTTP metrics#893

Open
simonpasquier wants to merge 1 commit intoobservatorium:mainfrom
simonpasquier:avoid-series-with-empty-label-values
Open

Avoid empty label values for HTTP metrics#893
simonpasquier wants to merge 1 commit intoobservatorium:mainfrom
simonpasquier:avoid-series-with-empty-label-values

Conversation

@simonpasquier
Copy link
Copy Markdown
Contributor

This commit prevents the initialization of HTTP metrics with empty values for the code, method and tenant labels. These metrics were set to zero but never incremented.

This commit prevents the initialization of HTTP metrics with empty
values for the `code`, `method` and `tenant` labels. These metrics were
set to zero but never incremented.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
@simonpasquier
Copy link
Copy Markdown
Contributor Author

cc @saswatamcode @philipgough

@philipgough
Copy link
Copy Markdown
Contributor

@simonpasquier just to add context, these change was added in #547 and IIUC it was to provide a solution to SLO alerts that were being generated by https://github.com/pyrra-dev/pyrra in low traffic environments.

Just to clarify, I am not against the change in principle, just wanted to shine some light on it :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants