https://rancher.com/ logo
#kubernetes
Title
# kubernetes
r

rough-raincoat-93957

09/07/2022, 8:40 PM
Hello, 👋 I would like to drop a label on my metrics despite my configuration the label id is still present
Copy code
- job_name: test-drop
        honor_timestamps: true
        scrape_interval: 10s
        metric_relabel_configs:
          - action: labeldrop 
            regex: id
Copy code
container_memory_usage_bytes{container="alertmanager", endpoint="https-metrics", id="/kubepods/burstable/pod6088fe00-1184-4dd7-99de-31ea8ac2faa6/00b165c3291d6e004f5ce9bdac7c470cba18266ba128ba1c8b4bc19ccff1af21", image="<http://quay.io/prometheus/alertmanager:v0.24.0|quay.io/prometheus/alertmanager:v0.24.0>", instance="10.240.0.18:10250", job="kubelet", metrics_path="/metrics/cadvisor", name="00b165c3291d6e004f5ce9bdac7c470cba18266ba128ba1c8b4bc19ccff1af21", namespace="monitoring", node="aks-main-84901719-vmss000002", pod="alertmanager-prom-operator-alertmanager-0", service="prom-operator-kubelet"}
7 Views