We can add new static label to static_configs like this:
static_configs:
- targets:
- address1
- address2
labels:
mynewlabel1: value
Now I want to add new label to targets that coming from service discovery.
But seems like it only supports relabel_configs, which allow me to transfer
any existing label, but not create a new label from zero.
Any suggestion how I can achieve that?
BTW my real problem is to add a *cluster* label to all the metrics from
current Kubernetes cluster
--
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/7dd4e648-d06b-487f-94ae-08f34e9f0a0c%40googlegroups.com.