Monitoring Prometheus

Using the label_replace function in PromQL

do something like the following: Then put {{short_hostname}} in the legend field in Grafana

Share