From 0a2bde6990e630d23fb173b727a4c79ec6f2237d Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Tue, 12 Mar 2024 21:28:15 -0400 Subject: [PATCH] dev: Example of the FILTERS placeholder --- examples/example_dashboards.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/example_dashboards.yaml b/examples/example_dashboards.yaml index ff8da83..75728af 100644 --- a/examples/example_dashboards.yaml +++ b/examples/example_dashboards.yaml @@ -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"