paregupt / ucs_traffic_monitor

Cisco UCS traffic monitoring using Grafana, InfluxDB and Telegraf
MIT License
80 stars 25 forks source link

When using variables in regex searches in dashboards, use ${varname:regex} #79

Open wgjhstt247 opened 2 years ago

wgjhstt247 commented 2 years ago

For influxql queries, grafana automatically makes a result set called by variable name in regex searches, regex compatible. For example, when a list of values is returned, grafana automatically makes the set like this and escapes regex meta characters: (result_1|result_2|port_1\/2)

Grafana doesn't automatically do this for flux queries. In order to tell grafana to do this for flux queries, the variables must be called like this ${varname:regex} in regex searches Source: https://grafana.com/docs/grafana/latest/variables/advanced-variable-format-options/#regex

Please update the variable usage in the dashboard files to be influxql or flux compatible in order to make the transition to flux easier.