wip
This commit is contained in:
parent
f12229c3a8
commit
dea96bf3a6
4 changed files with 26 additions and 1 deletions
|
@ -142,7 +142,7 @@ for dashboard_id, monitored_node in enumerate(monitored_nodes, start=1):
|
|||
dashboard['panels'].append(panel)
|
||||
|
||||
files[f'/var/lib/grafana/dashboards/{monitored_node.name}.json'] = {
|
||||
'content': json.dumps(dashboard, sort_keys=True, indent=4),
|
||||
'content': json.dumps(dashboard, indent=4),
|
||||
'triggers': [
|
||||
'svc_systemd:grafana-server:restart',
|
||||
]
|
||||
|
|
4
bundles/telegraf/README.md
Normal file
4
bundles/telegraf/README.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
```
|
||||
setfacl -Rm g:telegraf:rX /var/spool/postfix/
|
||||
setfacl -dm g:telegraf:rX /var/spool/postfix/
|
||||
```
|
|
@ -50,6 +50,7 @@ defaults = {
|
|||
},
|
||||
'grafana_rows': [
|
||||
'cpu',
|
||||
'mem',
|
||||
'disk_io',
|
||||
'net_io',
|
||||
],
|
||||
|
|
20
data/grafana/rows/mem.py
Normal file
20
data/grafana/rows/mem.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
'memory': {
|
||||
'stacked': True,
|
||||
'queries': {
|
||||
'memory': {
|
||||
'filters': {
|
||||
'_measurement': 'mem',
|
||||
'_field': [
|
||||
'used',
|
||||
'cached',
|
||||
'buffered',
|
||||
'free',
|
||||
],
|
||||
},
|
||||
'function': 'mean',
|
||||
},
|
||||
},
|
||||
'unit': 'decbytes',
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue