wip
This commit is contained in:
parent
7eff2aa76e
commit
02ca519489
4 changed files with 5 additions and 4 deletions
|
@ -4,9 +4,9 @@ assert node.has_bundle('postgresql')
|
|||
from mako.template import Template
|
||||
from shlex import quote
|
||||
from copy import deepcopy
|
||||
from itertools import count
|
||||
import yaml
|
||||
import json
|
||||
from itertools import count
|
||||
|
||||
svc_systemd['grafana-server'] = {
|
||||
'needs': [
|
||||
|
@ -94,8 +94,8 @@ for dashboard_id, monitored_node in enumerate(monitored_nodes, start=1):
|
|||
dashboard = deepcopy(dashboard_template)
|
||||
dashboard['id'] = dashboard_id
|
||||
dashboard['title'] = monitored_node.name
|
||||
dashboard['uid'] = monitored_node.metadata.get('id')
|
||||
panel_id = count(start=1)
|
||||
|
||||
|
||||
for row_id, row_name in enumerate(sorted(monitored_node.metadata.get('grafana_rows')), start=1):
|
||||
with open(repo.path.join([f'data/grafana/rows/{row_name}.py'])) as file:
|
||||
|
|
|
@ -10,5 +10,6 @@ files['/etc/telegraf/telegraf.conf'] = {
|
|||
svc_systemd['telegraf'] = {
|
||||
'needs': [
|
||||
'file:/etc/telegraf/telegraf.conf',
|
||||
'pkg_apt:telegraf',
|
||||
],
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
# "id": 1,
|
||||
# "title": "some dashboard",
|
||||
# "uid": "IBPgYBznk",
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
|
@ -17,7 +18,6 @@
|
|||
"editable": True,
|
||||
"gnetId": None,
|
||||
"graphTooltip": 0,
|
||||
"iteration": 1625410820978,
|
||||
"links": [],
|
||||
"panels": [],
|
||||
"refresh": False,
|
||||
|
@ -33,6 +33,5 @@
|
|||
},
|
||||
"timepicker": {},
|
||||
"timezone": "",
|
||||
"uid": "IBPgYBznk",
|
||||
"version": 15
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
'backup',
|
||||
'debian-10',
|
||||
# 'nextcloud',
|
||||
'monitored',
|
||||
],
|
||||
'bundles': [
|
||||
'gitea',
|
||||
|
|
Loading…
Reference in a new issue