So the idea would be that the custom one is the main, that the user sees. Based on the selection it would select corresponding influxDB and graphite site variable and display metrics.
Thanks, but the case sensitivity is not the case always. Like when the InfluxDB variable is “THIS-IS-SITE1” and corresponding graphite site is “tis1” What is the idea then?
i thought that, if I have third custom variable, with values SITE1-tis1. How can I use this in regex? So it would check only part of the value. Currently it checks all and does not match.
Trying to sum up. There are 2 list of variables(datasources)
Influx graphite
SITE1-OS ste1
SITE2-EL site2el
SITE3 stge
My idea was that I will create custom variable, where the value is combined from both, like this:
SITE1-OS|ste1
SITE2-EL|site2el
SITE3|stge
User would select from that list. And based on the selection grafana would match influx and graphite variables.
Is is possible? How I should do it?
How is filtering done if I influx query value is SITE1-OS and corresponding value in the custom one is SITE1-OS|ste1. It currently compares the whole string, but can I get it to check part of the string?