Hi,

I'm monitoring my K8s environment using prometheus-operator chart.
I'm trying to understand how can I drop certain metrics, for example, if I 
do 
kube_pod_info{namespace="monitoring"}
I will have the following output:

kube_pod_info{created_by_kind="DaemonSet",created_by_name="prom-operator-prometheus-node-exporter",endpoint="http",host_ip="192.168.83.60",instance="10.133.86.207:8080",job="kube-state-metrics",namespace="monitoring",node="node2",pod="prom-operator-prometheus-node-exporter-nrck9",pod_ip="192.168.83.60",service="prom-operator-kube-state-metrics",uid="ecd029bf-e998-4b7b-a0dc-7eeefec25668"}

So I'm trying to understand how I can drop from here the UID part.

I've tried creating the following relabel_config:
    relabelings:
    - sourceLabels: [uid]
      action: drop

It did nothing.
Also, I've tried:
- action: drop
regex: 'uid.+'
sourceLabels: [uid]

And this did nothing as well...

Any help to understand it will be very much appreciated.


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/939fe8fe-ff1f-4385-b986-75cc0ef9496ao%40googlegroups.com.

Reply via email to