add postgresql metrics to telegraf/grafana
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-05-02 13:09:01 +02:00
parent 1bc47fa231
commit 3b1d1f7e94
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 617 additions and 0 deletions

View file

@ -98,6 +98,10 @@ for rnode in repo.nodes:
dashboard['rows'].append(dashboard_row_postfix(panel_id, rnode))
dashboard['tags'].add('postfix')
if rnode.has_bundle('postgresql'):
dashboard['rows'].append(dashboard_row_postgresql(panel_id, rnode))
dashboard['tags'].add('postgresql')
files[f'/var/lib/grafana/dashboards/{rnode.name}.json'] = {
# use metadata_to_json, because this supports sets
'content': metadata_to_json(dashboard),