health in hatdware bundle

This commit is contained in:
mwiegand 2021-11-10 03:48:29 +01:00
parent 806feb9fdd
commit 2becf72559
2 changed files with 9 additions and 17 deletions

View file

@ -1,4 +1,7 @@
defaults = {
'grafana_rows': {
'health',
},
'sudoers': {
'telegraf': {
'/usr/local/share/icinga/plugins/cpu_frequency',
@ -13,6 +16,12 @@ defaults = {
'name_override': "cpu_frequency",
'data_format': "influx",
}),
repo.libs.hashable.hashable({
'commands': ["/bin/bash -c 'expr $(cat /sys/class/thermal/thermal_zone0/temp) / 1000'"],
'name_override': "cpu_temperature",
'data_format': "value",
'data_type': "integer",
}),
},
},
},

View file

@ -1,26 +1,9 @@
h = repo.libs.hashable.hashable
defaults = {
'grafana_rows': {
'health',
},
'systemd-journald': {
'Storage': 'volatile',
},
'telegraf': {
'config': {
'inputs': {
'exec': {
h({
'commands': ["/bin/bash -c 'expr $(cat /sys/class/thermal/thermal_zone0/temp) / 1000'"],
'name_override': "cpu_temperature",
'data_format': "value",
'data_type': "integer",
}),
},
},
},
},
}