dev: Example of the FILTERS placeholder

This commit is contained in:
Jeremy Wall 2024-03-12 21:28:15 -04:00
parent a620cd2b1b
commit 0a2bde6990

View File

@ -37,8 +37,9 @@
tickformat: "~%" tickformat: "~%"
plots: plots:
- source: http://heimdall:9001 - source: http://heimdall:9001
# You can use the FILTERS placeholder to indicate where user selected filters should be placed.
query: | query: |
sum by (instance)(irate(node_cpu_seconds_total{mode="system",job="nodestats"}[5m])) / sum by (instance)(irate(node_cpu_seconds_total{job="nodestats"}[5m])) sum by (instance)(irate(node_cpu_seconds_total{FILTERS mode="system",job="nodestats"}[5m])) / sum by (instance)(irate(node_cpu_seconds_total{FILTERS job="nodestats"}[5m]))
meta: meta:
name_format: "`${labels.instance} system`" name_format: "`${labels.instance} system`"
yaxis: "y" yaxis: "y"