Skip to content

Commit 781d49b

Browse files
committed
Add configuration instructions to new dashboard
1 parent 1a318ba commit 781d49b

File tree

4 files changed

+29
-8
lines changed

4 files changed

+29
-8
lines changed

CHANGELOG.md

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

3+
## 5.2.2 (2024-11-26)
4+
5+
* **dashboards**: add configuration instructions to PCP Vector Top Consumers dashboard
6+
* **build**: update node dependencies
7+
8+
39
## 5.2.1 (2024-11-12)
10+
411
* **build**: update Go and node dependencies
512

13+
614
## 5.2.0 (2024-11-08)
715

816
* **valkey**: new PCP Valkey datasource (replacement for PCP Redis)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"redux-thunk": "^2.3.0"
6565
},
6666
"resolutions": {
67+
"cross-spawn": "^7.0.5",
6768
"moment": "^2.29.4",
6869
"moment-timezone": "^0.5.35",
6970
"d3-color": "^3.1.0",

src/datasources/vector/dashboards/pcp-vector-top-consumers.jsonnet

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ grafana.dashboard.new(
1414
'PCP Vector',
1515
)
1616
)
17+
.addPanel(
18+
grafana.text.new(
19+
'Configuration Instructions',
20+
mode='markdown',
21+
content='This dashboard requires [authentication](https://grafana-pcp.readthedocs.io/en/latest/datasources/authentication.html) to be set up for the PCP Vector datasource. The "Top Network Consumers" table requires the [bcc PMDA](https://man7.org/linux/man-pages/man1/pmdabcc.1.html) to be installed and configured with the netproc module.',
22+
), gridPos={
23+
x: 0,
24+
y: 0,
25+
w: 24,
26+
h: 2,
27+
}
28+
)
1729
.addPanel(
1830
grafana.tablePanel.new(
1931
'Top CPU consumers',
@@ -24,7 +36,7 @@ grafana.dashboard.new(
2436
{ expr: 'proc.hog.cpu', format: 'metrics_table', legendFormat: '$metric' },
2537
]) + { options+: {sortBy: [{desc: true, displayName: 'proc.hog.cpu'}]}}, gridPos={
2638
x: 0,
27-
y: 0,
39+
y: 2,
2840
w: 12,
2941
h: 8,
3042
}
@@ -39,7 +51,7 @@ grafana.dashboard.new(
3951
{ expr: 'proc.hog.mem', format: 'metrics_table', legendFormat: '$metric' },
4052
]) + { options+: {sortBy: [{desc: true, displayName: 'proc.hog.mem'}]}}, gridPos={
4153
x: 12,
42-
y: 0,
54+
y: 2,
4355
w: 12,
4456
h: 8,
4557
}
@@ -54,7 +66,7 @@ grafana.dashboard.new(
5466
{ expr: 'proc.hog.disk', format: 'metrics_table', legendFormat: '$metric' },
5567
]) + { options+: {sortBy: [{desc: true, displayName: 'proc.hog.disk'}]}}, gridPos={
5668
x: 0,
57-
y: 8,
69+
y: 10,
5870
w: 12,
5971
h: 8,
6072
}
@@ -69,7 +81,7 @@ grafana.dashboard.new(
6981
{ expr: 'proc.hog.net', format: 'metrics_table', legendFormat: '$metric' },
7082
]) + { options+: {sortBy: [{desc: true, displayName: 'proc.hog.net'}]}}, gridPos={
7183
x: 12,
72-
y: 8,
84+
y: 10,
7385
w: 12,
7486
h: 8,
7587
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4998,10 +4998,10 @@ create-require@^1.1.0:
49984998
resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333"
49994999
integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==
50005000

5001-
cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
5002-
version "7.0.3"
5003-
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
5004-
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
5001+
cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3, cross-spawn@^7.0.5:
5002+
version "7.0.6"
5003+
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f"
5004+
integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==
50055005
dependencies:
50065006
path-key "^3.1.0"
50075007
shebang-command "^2.0.0"

0 commit comments

Comments
 (0)