wip
This commit is contained in:
parent
dea96bf3a6
commit
ddd0175818
2 changed files with 17 additions and 1 deletions
|
@ -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()):
|
for panel_in_row, (panel_name, panel_config) in enumerate(row.items()):
|
||||||
panel = deepcopy(panel_template)
|
panel = deepcopy(panel_template)
|
||||||
panel['id'] = next(panel_id)
|
panel['id'] = next(panel_id)
|
||||||
panel['title'] = panel_name
|
panel['title'] = f'{row_name} {panel_name}'
|
||||||
panel['gridPos']['w'] = 24 // len(row)
|
panel['gridPos']['w'] = 24 // len(row)
|
||||||
panel['gridPos']['x'] = (24 // len(row)) * panel_in_row
|
panel['gridPos']['x'] = (24 // len(row)) * panel_in_row
|
||||||
panel['gridPos']['y'] = (row_id - 1) * panel['gridPos']['h']
|
panel['gridPos']['y'] = (row_id - 1) * panel['gridPos']['h']
|
||||||
|
|
|
@ -17,4 +17,20 @@
|
||||||
},
|
},
|
||||||
'unit': 'decbytes',
|
'unit': 'decbytes',
|
||||||
},
|
},
|
||||||
|
'swp': {
|
||||||
|
'stacked': True,
|
||||||
|
'queries': {
|
||||||
|
'memory': {
|
||||||
|
'filters': {
|
||||||
|
'_measurement': 'mem',
|
||||||
|
'_field': [
|
||||||
|
'swap_cached',
|
||||||
|
'swap_free',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
'function': 'mean',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'unit': 'decbytes',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue