Skip to content

Commit 65febda

Browse files
NikolaySDementii Priadko
authored andcommitted
Dashboard 3: Show detailed wait events in Active session history panel
1 parent 176441c commit 65febda

File tree

1 file changed

+9
-40
lines changed

1 file changed

+9
-40
lines changed

config/grafana/dashboards/Dashboard_3_Single_query_analysis.json

Lines changed: 9 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@
120120
"axisPlacement": "auto",
121121
"barAlignment": 0,
122122
"axisSoftMin": 0,
123-
"barWidthFactor": 0.5,
123+
"barWidthFactor": 1,
124124
"drawStyle": "bars",
125-
"fillOpacity": 40,
125+
"fillOpacity": 100,
126126
"gradientMode": "none",
127127
"hideFrom": {
128128
"legend": false,
@@ -168,7 +168,7 @@
168168
{
169169
"matcher": {
170170
"id": "byRegexp",
171-
"options": "Timeout"
171+
"options": "Timeout.*"
172172
},
173173
"properties": [
174174
{
@@ -198,7 +198,7 @@
198198
{
199199
"matcher": {
200200
"id": "byRegexp",
201-
"options": "Lock"
201+
"options": "Lock.*"
202202
},
203203
"properties": [
204204
{
@@ -213,7 +213,7 @@
213213
{
214214
"matcher": {
215215
"id": "byRegexp",
216-
"options": "LWLock"
216+
"options": "LWLock.*"
217217
},
218218
"properties": [
219219
{
@@ -228,7 +228,7 @@
228228
{
229229
"matcher": {
230230
"id": "byRegexp",
231-
"options": "IO"
231+
"options": "IO.*"
232232
},
233233
"properties": [
234234
{
@@ -243,7 +243,7 @@
243243
{
244244
"matcher": {
245245
"id": "byRegexp",
246-
"options": "Client"
246+
"options": "Client.*"
247247
},
248248
"properties": [
249249
{
@@ -254,37 +254,6 @@
254254
}
255255
}
256256
]
257-
},
258-
{
259-
"__systemRef": "hideSeriesFrom",
260-
"matcher": {
261-
"id": "byNames",
262-
"options": {
263-
"mode": "exclude",
264-
"names": [
265-
"CPU*",
266-
"Lock",
267-
"LWLock",
268-
"IO",
269-
"Timeout",
270-
"BufferPin",
271-
"Extension",
272-
"IPC"
273-
],
274-
"prefix": "All except:",
275-
"readOnly": true
276-
}
277-
},
278-
"properties": [
279-
{
280-
"id": "custom.hideFrom",
281-
"value": {
282-
"legend": false,
283-
"tooltip": false,
284-
"viz": true
285-
}
286-
}
287-
]
288257
}
289258
]
290259
},
@@ -316,9 +285,9 @@
316285
"targets": [
317286
{
318287
"editorMode": "code",
319-
"expr": "sum by (wait_event_type) (pgwatch_wait_events_total{query_id=\"$query_id\"})",
288+
"expr": "sum by (wait_event_type, wait_event) (pgwatch_wait_events_total{query_id=\"$query_id\"})",
320289
"hide": false,
321-
"legendFormat": "__auto",
290+
"legendFormat": "{{wait_event_type}}:{{wait_event}}",
322291
"range": true,
323292
"refId": "A"
324293
},

0 commit comments

Comments
 (0)