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', + }, }, }