What Grafana version and what operating system are you using?
- Oracle Linux Server 8.8
- Grafana 10.1.1
I want to query multiple service statuses from a Zabbix data source.
To make it a bit easier, I’ve set up a constant variable with the following regex value:
all_services = /^Service1$|^Service2$|^Service3$|^ServiceN$/
Actual service names are very different and have no clear pattern.
I would like to use this variable in some queries.
When I use the variable like this, the query returns no data
.
When I use the regex directly, it returns all service states.
How can I use variables with regex, or maybe use a string array?