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: "~%"
plots:
- source: http://heimdall:9001
# You can use the FILTERS placeholder to indicate where user selected filters should be placed.
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:
name_format: "`${labels.instance} system`"
yaxis: "y"