From 9b3693dc045fcb724a09256b24cbf4e7a579fe85 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Wed, 13 Oct 2021 01:13:32 +0200 Subject: [PATCH] wip --- data/grafana/rows/health.py | 18 ++++++++++++++++++ groups/hardware/raspberry-pi.py | 3 +++ 2 files changed, 21 insertions(+) create mode 100644 data/grafana/rows/health.py diff --git a/data/grafana/rows/health.py b/data/grafana/rows/health.py new file mode 100644 index 0000000..7b94b1e --- /dev/null +++ b/data/grafana/rows/health.py @@ -0,0 +1,18 @@ +{ + 'temperature': { + 'stacked': False, + 'queries': { + 'cpu_temperature': { + 'filters': { + '_measurement': 'cpu_temperature', + '_field': [ + 'value', + ], + }, + 'function': 'mean', + }, + }, + 'unit': 'degrees', + 'display_name': '__field.labels.name' + }, +} diff --git a/groups/hardware/raspberry-pi.py b/groups/hardware/raspberry-pi.py index b9231e9..15cf894 100644 --- a/groups/hardware/raspberry-pi.py +++ b/groups/hardware/raspberry-pi.py @@ -12,5 +12,8 @@ }, }, }, + 'grafana_rows': { + 'health', + }, }, }