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

Remove metrics subset based on partial labels match #438

Open
Antiarchitect opened this issue Mar 29, 2022 · 0 comments
Open

Remove metrics subset based on partial labels match #438

Antiarchitect opened this issue Mar 29, 2022 · 0 comments

Comments

@Antiarchitect
Copy link

Antiarchitect commented Mar 29, 2022

Assume I have a IntCounterVec client_tls_cert_error with labels cname and error with which I track client certificate errors. There can be different error messages which I don't know in advance (certificate expiration mostly).

In case cert goes back to normal is there any way like remove method in order to remove all client_tls_cert_error subset with matching cname and any error labels?

It would be nice to have at least remove method (which takes HashMap as input) analog that doesn't throw cardinality error but deletes all variants of the metric with matched subset of labels.

@Antiarchitect Antiarchitect changed the title remove_label_values and Inconsistent label cardinality Remove metrics subset based on partial labels match Mar 30, 2022
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

No branches or pull requests

1 participant