Merge / Concatenate / Combine Variables in one Label Prometheus

Hi there,

I am new to Grafana and hope my question is stated clear enough to understand :slight_smile:

I have a similar problem to this stackoverflow question.

I want to combine two different variables (Prometheus Queries) in one label.

E.g. imagine the following variables:

Variable1 = label_values(node_load1{job="node"}, instance) 
Variable2 = label_values(node_cpu_seconds_total, mode)

Variable1 delivers:,
Variable2 delivers: system, user, irq

Is it possible to combine both results into one label? The label would have the following drop down options:,, system, user, irq

Furthermore, is it possible to hide the unused or unchecked panels / rows similarily to the Panel & Rows repeat option?
Thanks in advance!

1 Like

I would like to do the same thing with CloudWatch query variables using dimension_values() to pull all possible values for a number of metrics and combine into a single drop down.