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

Add Unregister method for metrics #32

Open
hagen1778 opened this issue Mar 10, 2022 · 3 comments
Open

Add Unregister method for metrics #32

hagen1778 opened this issue Mar 10, 2022 · 3 comments
Labels
enhancement New feature or request TBD To Be Done

Comments

@hagen1778
Copy link
Contributor

See VictoriaMetrics/VictoriaMetrics#2127 (comment) as example.

@aierui
Copy link
Contributor

aierui commented Aug 5, 2023

Hi @hagen1778
What should be the best practice for removing a metric that contains multiple tags?

eg.

metrics_name1{tag1="v1",tag2="v2"} 1
metrics_name1{tag1="v3",tag2="v4"} 1
metrics_name1{tag1="v5",tag2="v6"} 1
metrics_name1{tag1="v7",tag2="v8"} 1
....

@hagen1778 hagen1778 added the TBD To Be Done label Aug 7, 2023
@hagen1778
Copy link
Contributor Author

Hi @aierui!
So far while this FR isn't completed, the best way to unregister a specific metric would be the following:

metrics.UnregisterMetric('metrics_name1{tag1="v1",tag2="v2"}')

@aierui
Copy link
Contributor

aierui commented Aug 8, 2023

Thank you for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request TBD To Be Done
Projects
None yet
Development

No branches or pull requests

2 participants