hi , I encounter the same problem . I use grafana + prometheus monitor metrics from etcd .
in template I define a variable like this:
$cluster label_values(etcd_server_has_leader,job)
and I select in prometheus the result shows:
etcd_server_has_leader{instance="192.168.81.49:4001",job="ch-etcd-global"}
etcd_server_has_leader{instance="192.168.81.49:4001",job="th-etcd-global"}
also the variables shows “ch-etcd-global” and “th-etcd-global”,
I want to make “ch-etcd-global” showed as “china” and “th-etcd-global” showed as "thailand "
, at the same time I do not want the other variable which dependent on it invalid.
what should I do ?
thanks in advance !