add postgresql metrics to telegraf/grafana
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
1bc47fa231
commit
3b1d1f7e94
3 changed files with 617 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue