move lm-sensors to its own bundle, add to hardware systems

This commit is contained in:
Franzi 2021-06-05 12:23:09 +02:00
parent 5dde5d1642
commit 91cf6cd1e5
Signed by: kunsi
GPG key ID: 12E3D2136B818350
10 changed files with 27 additions and 13 deletions

View file

@ -3,7 +3,7 @@ def dashboard_row_sensors(panel_id, node):
'title': 'sensors',
'collapse': False,
'editable': False,
'height': '200px',
'height': '250px',
'panels': [
{
'aliasColors': {},
@ -13,11 +13,11 @@ def dashboard_row_sensors(panel_id, node):
'datasource': None,
'fieldConfig': {
'defaults': {
'displayName': '${__field.labels.feature}'
'displayName': '${__field.labels.chip} ${__field.labels.feature}'
},
'overrides': []
},
'fill': 1,
'fill': 0,
'fillGradient': 0,
'hiddenSeries': False,
'id': next(panel_id),
@ -33,7 +33,7 @@ def dashboard_row_sensors(panel_id, node):
'values': False
},
'lines': True,
'linewidth': 1,
'linewidth': 2,
'NonePointMode': 'None',
'options': {
'alertThreshold': True
@ -60,7 +60,6 @@ def dashboard_row_sensors(panel_id, node):
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) =>
r["_measurement"] == "sensors" and
r["chip"] == "coretemp-isa-0000" and
r["_field"] == "temp_input" and
r["host"] == "{node.name}"
)
@ -76,7 +75,7 @@ def dashboard_row_sensors(panel_id, node):
],
'thresholds': [],
'timeRegions': [],
'title': 'CPU Temperature',
'title': 'temperatures',
'tooltip': {
'shared': True,
'sort': 0,
@ -121,11 +120,11 @@ def dashboard_row_sensors(panel_id, node):
'datasource': None,
'fieldConfig': {
'defaults': {
'displayName': '${__field.labels.feature}'
'displayName': '${__field.labels.chip} ${__field.labels.feature}'
},
'overrides': []
},
'fill': 1,
'fill': 0,
'fillGradient': 0,
'hiddenSeries': False,
'id': next(panel_id),
@ -141,7 +140,7 @@ def dashboard_row_sensors(panel_id, node):
'values': False
},
'lines': True,
'linewidth': 1,
'linewidth': 2,
'NonePointMode': 'None',
'options': {
'alertThreshold': True
@ -183,7 +182,7 @@ def dashboard_row_sensors(panel_id, node):
],
'thresholds': [],
'timeRegions': [],
'title': 'Fan speed',
'title': 'fans',
'tooltip': {
'shared': True,
'sort': 0,

View file

@ -101,9 +101,9 @@ for rnode in repo.nodes:
],
}
if rnode.has_bundle('pacman'):
if rnode.has_bundle('lm-sensors'):
dashboard['rows'].append(dashboard_row_sensors(panel_id, rnode))
dashboard['tags'].add('lm_sensors')
dashboard['tags'].add('lm-sensors')
dashboard['rows'].append(dashboard_row_disk_space(panel_id, rnode))
dashboard['rows'].append(dashboard_row_disk_iops(panel_id, rnode))

View file

@ -1,4 +1,14 @@
defaults = {
'apt': {
'packages': {
'lm-sensors': {},
},
},
'pacman': {
'packages': {
'lm_sensors': {},
},
},
'telegraf': {
'input_plugins': {
'builtin': {

View file

@ -77,7 +77,6 @@ if node.metadata.get('pacman/install_gui', False):
'rfkill': {},
'wpa_supplicant': {},
'wpa_actiond': {},
'lm_sensors': {},
}
for pkg, config in node.metadata.get('pacman/packages', {}).items():

View file

@ -1,6 +1,7 @@
nodes['home.kodi-wohnzimmer'] = {
'hostname': '172.19.138.24',
'bundles': {
'lm-sensors',
'kodi',
'nfs-client',
'smartd',

View file

@ -4,6 +4,7 @@ nodes['home.nas'] = {
'hostname': '172.19.138.20',
'bundles': {
'backup-server',
'lm-sensors',
'mosquitto',
'netdata',
'nfs-server',

View file

@ -4,6 +4,7 @@ nodes['htz.ex42-1048908'] = {
'element-web',
'gitea',
'jenkins-ci',
'lm-sensors',
'matrix-media-repo',
'matrix-synapse',
'mautrix-telegram',

View file

@ -5,6 +5,7 @@ nodes['kunsi-seibert-x1'] = {
'bundles': {
'basic',
'lldp',
'lm-sensors',
'nfs-client',
'pacman',
'openssh',

View file

@ -4,6 +4,7 @@ nodes['kunsi-t470'] = {
'hostname': 'localhost',
'bundles': {
'lldp',
'lm-sensors',
'nfs-client',
},
'groups': {

View file

@ -10,6 +10,7 @@ nodes['rx300'] = {
'hostname': '172.19.138.26',
'bundles': {
'lldp', # TODO remove once this is no longer at home
'lm-sensors',
'smartd',
'vmhost',
'zfs',