external_labels from prometheus not able to use as filter in Grafana Dashboard variables

22 views
Skip to first unread message

Pavan Vasisht

unread,
Aug 4, 2020, 12:52:03 AM8/4/20
to Prometheus Users
Hi,

Using the helm(Version:"v3.2.4", GitCommit:"0ad800ef43d3b826f31a5ad8dfbb4fe05d143688") - stable/prometheus was configuring external_label so that this can be used as parameter(drop-down value) to filter in grafana dashbaord. The external_label is getting propagated across all the metrics. Manually setting the label and fetching metrics works, but the label when tried to set as variable, no luck.
Please refer the github issue which I had raised for Grafana, as per the suggestion asking here.

Some backgroud -
Using thanos side car within prometheus server to push the metrics to s3 bucket and fetching the stored metrics into grafana via thanos querier.

Thanks
Pavan

Ben Kochie

unread,
Aug 4, 2020, 7:43:20 AM8/4/20
to Pavan Vasisht, Prometheus Users
This sounds like a `label="$var"` vs `label=~"$var"` issue. Grafana sometimes formats the variable as a regexp, so you need to use `=~` for it to work.

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/be329a82-8681-4450-989d-402126f2bf97o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages