This commit is contained in:
mwiegand 2021-07-05 01:13:20 +02:00
parent dea96bf3a6
commit ddd0175818
2 changed files with 17 additions and 1 deletions

View file

@ -104,7 +104,7 @@ for dashboard_id, monitored_node in enumerate(monitored_nodes, start=1):
for panel_in_row, (panel_name, panel_config) in enumerate(row.items()):
panel = deepcopy(panel_template)
panel['id'] = next(panel_id)
panel['title'] = panel_name
panel['title'] = f'{row_name} {panel_name}'
panel['gridPos']['w'] = 24 // len(row)
panel['gridPos']['x'] = (24 // len(row)) * panel_in_row
panel['gridPos']['y'] = (row_id - 1) * panel['gridPos']['h']

View file

@ -17,4 +17,20 @@
},
'unit': 'decbytes',
},
'swp': {
'stacked': True,
'queries': {
'memory': {
'filters': {
'_measurement': 'mem',
'_field': [
'swap_cached',
'swap_free',
],
},
'function': 'mean',
},
},
'unit': 'decbytes',
},
}