Skip to content

Commit 220f26f

Browse files
committed
Add PCP Vector top consumers dashboard
1 parent 7819d02 commit 220f26f

File tree

5 files changed

+107
-9
lines changed

5 files changed

+107
-9
lines changed

CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
# Change Log
22

3-
## 5.1.2 (unreleased)
4-
3+
## 5.2.0
4+
5+
* **valkey**: new PCP Valkey datasource (replacement for PCP Redis)
6+
* **redis**: PCP Redis datasource renamed to PCP Valkey due to licensing
7+
* **dashboards**: new PCP Vector Top Consumers dashboard
8+
* **dashboards**: new PCP Vector UWSGI overview dashboard
9+
* **dashboards**: new PCP Prometheus Host Overview dashboard
10+
* **test**: update cypress tests for grafana 10
11+
* **docs**: update donations page link with new fiscal sponsor details
12+
* **docs**: add .readthedocs.yaml file to keep grafana-pcp.readthedocs.io working
13+
* **docs**: fix command in installation doc to allow loading unsigned plugins
514
* **build**: update grafana/plugin-validator and pin nodejs version
15+
* **build**: update Go and node dependencies
16+
* **search**: metric search turned off until Valkey replacement arrives for RediSearch
617

718

819
## 5.1.1 (2022-10-27)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "performancecopilot-pcp-app",
33
"description": "Performance Co-Pilot Grafana Plugin",
4-
"version": "5.1.2",
4+
"version": "5.2.0",
55
"scripts": {
66
"build": "grafana-toolkit plugin:build",
77
"test": "grafana-toolkit plugin:test",
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
local grafana = import 'grafonnet/grafana.libsonnet';
2+
3+
grafana.dashboard.new(
4+
'PCP Vector: Top Consumers',
5+
tags=['pcp-vector'],
6+
time_from='now-5m',
7+
time_to='now',
8+
refresh='5s',
9+
)
10+
.addTemplate(
11+
grafana.template.datasource(
12+
'datasource',
13+
'performancecopilot-vector-datasource',
14+
'PCP Vector',
15+
)
16+
)
17+
.addPanel(
18+
grafana.tablePanel.new(
19+
'Top CPU consumers',
20+
datasource='$datasource',
21+
styles=null,
22+
)
23+
.addTargets([
24+
{ expr: 'proc.hog.cpu', format: 'metrics_table', legendFormat: '$metric' },
25+
]) + { options+: {sortBy: [{desc: true, displayName: 'proc.hog.cpu'}]}}, gridPos={
26+
x: 0,
27+
y: 0,
28+
w: 12,
29+
h: 8,
30+
}
31+
)
32+
.addPanel(
33+
grafana.tablePanel.new(
34+
'Top Memory Consumers',
35+
datasource='$datasource',
36+
styles=null,
37+
)
38+
.addTargets([
39+
{ expr: 'proc.hog.mem', format: 'metrics_table', legendFormat: '$metric' },
40+
]) + { options+: {sortBy: [{desc: true, displayName: 'proc.hog.mem'}]}}, gridPos={
41+
x: 12,
42+
y: 0,
43+
w: 12,
44+
h: 8,
45+
}
46+
)
47+
.addPanel(
48+
grafana.tablePanel.new(
49+
'Top Disk Consumers',
50+
datasource='$datasource',
51+
styles=null,
52+
)
53+
.addTargets([
54+
{ expr: 'proc.hog.disk', format: 'metrics_table', legendFormat: '$metric' },
55+
]) + { options+: {sortBy: [{desc: true, displayName: 'proc.hog.disk'}]}}, gridPos={
56+
x: 0,
57+
y: 8,
58+
w: 12,
59+
h: 8,
60+
}
61+
)
62+
.addPanel(
63+
grafana.tablePanel.new(
64+
'Top Network Consumers',
65+
datasource='$datasource',
66+
styles=null,
67+
)
68+
.addTargets([
69+
{ expr: 'proc.hog.net', format: 'metrics_table', legendFormat: '$metric' },
70+
]) + { options+: {sortBy: [{desc: true, displayName: 'proc.hog.net'}]}}, gridPos={
71+
x: 12,
72+
y: 8,
73+
w: 12,
74+
h: 8,
75+
}
76+
)

src/datasources/vector/plugin.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
"type": "dashboard",
5151
"name": "PCP Vector: UWSGI Overview",
5252
"path": "dashboards/pcp-vector-uwsgi-overview.json"
53+
},
54+
{
55+
"type": "dashboard",
56+
"name": "PCP Vector: Top Consumers",
57+
"path": "dashboards/pcp-vector-top-consumers.json"
5358
}
5459
]
5560
}

src/plugin.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,18 @@
5151
"includes": [
5252
{
5353
"type": "datasource",
54-
"name": "PCP Valkey"
54+
"name": "PCP Valkey",
55+
"path": "datasources/valkey/plugin.json"
5556
},
5657
{
5758
"type": "datasource",
58-
"name": "PCP Vector"
59+
"name": "PCP Vector",
60+
"path": "datasources/vector/plugin.json"
5961
},
6062
{
6163
"type": "datasource",
62-
"name": "PCP bpftrace"
64+
"name": "PCP bpftrace",
65+
"path": "datasources/bpftrace/plugin.json"
6366
},
6467
{
6568
"type": "page",
@@ -70,15 +73,18 @@
7073
},
7174
{
7275
"type": "panel",
73-
"name": "PCP Flame Graph"
76+
"name": "PCP Flame Graph",
77+
"path": "panels/flamegraph/plugin.json"
7478
},
7579
{
7680
"type": "panel",
77-
"name": "PCP Troubleshooting Panel"
81+
"name": "PCP Troubleshooting Panel",
82+
"path": "panels/troubleshooting/plugin.json"
7883
},
7984
{
8085
"type": "panel",
81-
"name": "PCP Breadcrumbs panel"
86+
"name": "PCP Breadcrumbs panel",
87+
"path": "panels/breadcrumbs/plugin.json"
8288
},
8389
{
8490
"type": "dashboard",

0 commit comments

Comments
 (0)