Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upselective metric drop with relabel config #3092
Comments
lastsky
changed the title
relabel_config
selective metric drop with relabel config
Aug 20, 2017
This comment has been minimized.
This comment has been minimized.
|
another 4 hours of googling examples.
this works for drop labels like:
ok. but any types of |
This comment has been minimized.
This comment has been minimized.
|
so temporary solution is how to:
read |
lastsky
closed this
Aug 20, 2017
lastsky
reopened this
Aug 21, 2017
This comment has been minimized.
This comment has been minimized.
|
this is NOT urgent. but please provide an example. thanks. |
This comment has been minimized.
This comment has been minimized.
|
It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided. |
brian-brazil
closed this
Oct 18, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lastsky commentedAug 20, 2017
•
edited
node_systemd_unit_state is expensive_metric so I spent about 4h for googling and testing different configs and trying to create rule:
keep:
drop all others:
version 1.7.1not working strings:
target sources for selective label drop:
I'd tested about ~20 examples, and after
time curl -XDELETE -g 'http://localhost:9090/api/v1/series?match[]=node_systemd_unit_state'I see them in prometheus again. If prometheus starts, of course.Would you like to explain where I should insert metric_relabel_config? to prometheus.yml or to static configs? Please add working example to docs.
Tired. Thanks.