Multi value variables with prometheus + sperator value

I am trying to draw >1 time series in a graph using promethues and query variables in grafana.
I want something like this(this is an OR seperator):
("host1" OR "host2" OR "host3")
but grafana is giving me something like this
("host1" + "host2" + "host3")

Can I control this seperator using the prometheus source?

reading the docs here

  • What Grafana version and what operating system are you using?

  • What are you trying to achieve?

  • How are you trying to achieve it?

  • What happened?

  • What did you expect to happen?

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

i think this is what I want

servers = ['test1', 'test2']
String to interpolate: '${servers:lucene}'
Interpolation result: '("test1" OR "test2")'

but that format does not work for prometheus.

This topic was automatically closed after 365 days. New replies are no longer allowed.