Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to combine list of labels in grafana dashboard

I have labels coming from two resources

label_values(aws_lambda_info{a="a", b="b"}, a)

and

label_values(s3{a="a", b="b"}, a)

How can I combine these two label sources into one.

like image 355
Hello lad Avatar asked Dec 18 '25 06:12

Hello lad


1 Answers

You must use a query and extract the label values with a regex

I would be something like

Query: query_result(aws_lambda_info OR s3)
Regex: /a="([^"]+)"/

Have look at Grafana documentation for Prometheus source, it is rather well written.

like image 126
Michael Doubez Avatar answered Dec 20 '25 16:12

Michael Doubez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!