Label_replace / label_join - use as src_label the label of the metric value

  • What Grafana version and what operating system are you using?
    Grafana v9.1.4

Does anyone knows if its possible to use the label that corresponds to the value of the metric as src_label for the label_replace / label_join functions? And if yes, what is the name of that label? I tried “Value”, but doesn’t seem to work.

label_join(file_stat_size_bytes{fqdn=~“$fqdn”,path=~“/var/log/mylog-[0-9].*.log"}, “new_label”, “|”, “role”, "Value”)

Basically i want to add new label based on the value of another label and the value of the metric.