That looks OK to me. I think it should drop all metrics with name "container_processes".
Can you show a wider context of the entire scrape job config? metric_relabel_configs is configured under a specific scrape job. and only applies to metrics collected by that scrape job. There are simple things to check, like did you send prometheus a HUP or reload signal after changing the config? And if you check prometheus output (typically "journalctl -eu prometheus") did it say the reload was successful, with no syntax errors in the new config? Are you deploying prometheus via some higher-level wrapper, like a helm chart? If so, the issue is likely somewhere around that. On Tuesday 3 September 2024 at 07:11:12 UTC+1 anwer shahith wrote: > Hi Team, > I have find unsed metrics from my promethues i want to drop them > I tried various relabel_configs configs but looks like non of them are > working > > eg: > > > *metric_relabel_configs*: > > - *source_labels*: [__name__] > > *regex*: container_processes > > *action*: drop > > > please help me to fix this > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/38382070-7317-4374-beba-ffd9396bdfa9n%40googlegroups.com.