From d8de90fa5dc4e6f69b2778bce337e77a84c476d3 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Thu, 11 Aug 2022 13:18:30 +0200 Subject: [PATCH] pressure stall grafana --- bundles/telegraf/metadata.py | 1 + data/grafana/rows/pressure_stall.py | 83 +++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 data/grafana/rows/pressure_stall.py diff --git a/bundles/telegraf/metadata.py b/bundles/telegraf/metadata.py index 1a25d11..53da377 100644 --- a/bundles/telegraf/metadata.py +++ b/bundles/telegraf/metadata.py @@ -80,6 +80,7 @@ defaults = { 'proc_cpu', 'proc_ram', 'proc_io', + 'pressure_stall', }, 'sudoers': { 'telegraf': {'/usr/local/share/telegraf/procio'}, diff --git a/data/grafana/rows/pressure_stall.py b/data/grafana/rows/pressure_stall.py new file mode 100644 index 0000000..5e6ed21 --- /dev/null +++ b/data/grafana/rows/pressure_stall.py @@ -0,0 +1,83 @@ +{ + 'avg10 some': { + 'queries': { + 'io': { + 'filters': { + '_measurement': 'pressure_stall', + 'ressource': [ + 'io', + ], + 'type': [ + 'some', + ], + '_field': [ + 'avg10', + ], + }, + }, + 'memory': { + 'filters': { + '_measurement': 'pressure_stall', + 'ressource': [ + 'memory', + ], + 'type': [ + 'some', + ], + '_field': [ + 'avg10', + ], + }, + }, + 'cpu': { + 'filters': { + '_measurement': 'pressure_stall', + 'ressource': [ + 'cpu', + ], + 'type': [ + 'some', + ], + '_field': [ + 'avg10', + ], + }, + }, + }, + 'display_name': '__field.labels.ressource', + 'unit': 'percent', + }, + 'avg10 full': { + 'queries': { + 'io': { + 'filters': { + '_measurement': 'pressure_stall', + 'ressource': [ + 'io', + ], + 'type': [ + 'full', + ], + '_field': [ + 'avg10', + ], + }, + }, + 'memory': { + 'filters': { + '_measurement': 'pressure_stall', + 'ressource': [ + 'memory', + ], + 'type': [ + 'full', + ], + '_field': [ + 'avg10', + ], + }, + }, + }, + 'display_name': '__field.labels.ressource', + 'unit': 'percent', + },}