anyone have an example of dropping prometheus labels (i.e. pod name, ip) from some of my custom prometheus metrics with a specific prefix? I can’t tell from the relabeling config whether I can drop it from a subset of metrics
heres the part of my helmfile that i’m attempting to do this:
serviceMonitor:
metricRelabelings:
- targetLabel: pod
replacement: ''
- targetLabel: instance
replacement: ''
- sourceLabels: [__name__]
regex: '(container_tasks_state|container_memory_failures_total)'
action: drop