kube-prometheus icon indicating copy to clipboard operation
kube-prometheus copied to clipboard

How to drop metrics for prometheus based on labels

Open runshark opened this issue 8 months ago • 2 comments

Below, when I am remoteWrite, I can drop a useless metric, but how can I drop this metric based on the label? In other words, I only want to delete this metric from a namespace, rather than drop it all.

remoteWrite: - headers: THANOS-TENANT: test url: http://thanos-roumtewrite-URL/api/v1/receive writeRelabelConfigs: - action: drop regex: container_memory_failures_total sourceLabels: - __name__

runshark avatar Oct 26 '23 07:10 runshark

Can someone help answer that? Thank you

runshark avatar Nov 16 '23 10:11 runshark

This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions.

github-actions[bot] avatar Jan 16 '24 03:01 github-actions[bot]

This issue was closed because it has not had any activity in the last 120 days. Please reopen if you feel this is still valid.

github-actions[bot] avatar May 15 '24 03:05 github-actions[bot]