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