jakubplichta / grafana-dashboard-builder

Generate Grafana dashboards with YAML
Apache License 2.0
147 stars 42 forks source link

Support for regex in Template query #94

Closed pcerny closed 7 years ago

pcerny commented 7 years ago

Grafana has an regex option to filter out values for given variable. graphite value: site.cluster.node.prefix-value-suffix.subvalue Example setup for prefix-value-suffix:

json output: "type": "query", "datasource": null, "refresh_on_load": false, "name": "var1", "query": "$site.$cluster.$node.prefix-*", "regex": "/prefix-(\w+)-suffix/"

jakubplichta commented 7 years ago

resolved by #96