kube-prometheus
kube-prometheus copied to clipboard
How to drop metrics for prometheus based on labels
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__
Can someone help answer that? Thank you
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.
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.