-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PCP Vector top consumers dashboard
- Loading branch information
Showing
3 changed files
with
94 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
src/datasources/vector/dashboards/pcp-vector-top-consumers.jsonnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
local grafana = import 'grafonnet/grafana.libsonnet'; | ||
|
||
grafana.dashboard.new( | ||
'PCP Vector: Top Consumers', | ||
tags=['pcp-vector'], | ||
time_from='now-5m', | ||
time_to='now', | ||
refresh='5s', | ||
) | ||
.addTemplate( | ||
grafana.template.datasource( | ||
'datasource', | ||
'performancecopilot-vector-datasource', | ||
'PCP Vector', | ||
) | ||
) | ||
.addPanel( | ||
grafana.tablePanel.new( | ||
'Top CPU consumers', | ||
datasource='$datasource', | ||
styles=null, | ||
) | ||
.addTargets([ | ||
{ expr: 'proc.hog.cpu', format: 'metrics_table', legendFormat: '$metric' }, | ||
]) + { options+: {sortBy: [{desc: true, displayName: 'proc.hog.cpu'}]}}, gridPos={ | ||
x: 0, | ||
y: 0, | ||
w: 12, | ||
h: 8, | ||
} | ||
) | ||
.addPanel( | ||
grafana.tablePanel.new( | ||
'Top Memory Consumers', | ||
datasource='$datasource', | ||
styles=null, | ||
) | ||
.addTargets([ | ||
{ expr: 'proc.hog.mem', format: 'metrics_table', legendFormat: '$metric' }, | ||
]) + { options+: {sortBy: [{desc: true, displayName: 'proc.hog.mem'}]}}, gridPos={ | ||
x: 12, | ||
y: 0, | ||
w: 12, | ||
h: 8, | ||
} | ||
) | ||
.addPanel( | ||
grafana.tablePanel.new( | ||
'Top Disk Consumers', | ||
datasource='$datasource', | ||
styles=null, | ||
) | ||
.addTargets([ | ||
{ expr: 'proc.hog.disk', format: 'metrics_table', legendFormat: '$metric' }, | ||
]) + { options+: {sortBy: [{desc: true, displayName: 'proc.hog.disk'}]}}, gridPos={ | ||
x: 0, | ||
y: 8, | ||
w: 12, | ||
h: 8, | ||
} | ||
) | ||
.addPanel( | ||
grafana.tablePanel.new( | ||
'Top Network Consumers', | ||
datasource='$datasource', | ||
styles=null, | ||
) | ||
.addTargets([ | ||
{ expr: 'proc.hog.net', format: 'metrics_table', legendFormat: '$metric' }, | ||
]) + { options+: {sortBy: [{desc: true, displayName: 'proc.hog.net'}]}}, gridPos={ | ||
x: 12, | ||
y: 8, | ||
w: 12, | ||
h: 8, | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters