iits-consulting / otc-prometheus-exporter

GNU General Public License v3.0
8 stars 1 forks source link

Configure the legend to only display the ressource_id #49

Open zeljkobekcic opened 6 months ago

zeljkobekcic commented 6 months ago

Currently the entire vector of a field is shown in the legend of the Grafana dashboards. This is not readable at all. To improve this we want to show only the ressource_id.

Then from this:

{__name__="evs_disk_device_write_bytes_rate", container="otc-prometheus-exporter", endpoint="metrics", instance="172.16.0.74:39100", job="otc-prometheus-exporter", namespace="monitoring", pod="otc-prometheus-exporter-7f785fd7f-d67ms", resource_id="02df4114-d437-400f-bdd4-244889d09afe-vda", service="otc-prometheus-exporter", unit="B/s"}

to 02df4114-d437-400f-bdd4-244889d09afe-vda with this template {{ resource_id }}