tidyup
This commit is contained in:
parent
be4c9ce6f4
commit
a0c588359d
1 changed files with 2 additions and 6 deletions
|
@ -25,10 +25,8 @@ actions['reset_grafana_admin_password'] = {
|
||||||
}
|
}
|
||||||
|
|
||||||
directories = {
|
directories = {
|
||||||
'/etc/grafana': {
|
'/etc/grafana': {},
|
||||||
},
|
'/etc/grafana/provisioning': {},
|
||||||
'/etc/grafana/provisioning': {
|
|
||||||
},
|
|
||||||
'/etc/grafana/provisioning/datasources': {
|
'/etc/grafana/provisioning/datasources': {
|
||||||
'purge': True,
|
'purge': True,
|
||||||
},
|
},
|
||||||
|
@ -160,8 +158,6 @@ for dashboard_id, monitored_node in enumerate(monitored_nodes, start=1):
|
||||||
|
|
||||||
files[f'/var/lib/grafana/dashboards/{monitored_node.name}.json'] = {
|
files[f'/var/lib/grafana/dashboards/{monitored_node.name}.json'] = {
|
||||||
'content': json.dumps(dashboard, indent=4),
|
'content': json.dumps(dashboard, indent=4),
|
||||||
'owner': 'grafana',
|
|
||||||
'group': 'grafana',
|
|
||||||
'triggers': [
|
'triggers': [
|
||||||
'svc_systemd:grafana-server:restart',
|
'svc_systemd:grafana-server:restart',
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue