Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 1190621

Browse files
authored
Dashboard: Use instant query for counters (#89)
* Use instant query for counters
1 parent a2569a4 commit 1190621

File tree

1 file changed

+29
-35
lines changed

1 file changed

+29
-35
lines changed

grafana/dashboards/dashboard-results.json

Lines changed: 29 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@
9696
"orientation": "auto",
9797
"reduceOptions": {
9898
"calcs": [
99-
"max"
99+
"last"
100100
],
101101
"fields": "",
102102
"values": false
103103
},
104104
"text": {},
105105
"textMode": "auto"
106106
},
107-
"pluginVersion": "9.2.4",
107+
"pluginVersion": "9.3.2",
108108
"targets": [
109109
{
110110
"datasource": {
@@ -116,10 +116,10 @@
116116
"expr": "sum(k6_http_reqs_total{testid=~\"$testid\"})",
117117
"format": "time_series",
118118
"hide": false,
119-
"instant": false,
119+
"instant": true,
120120
"interval": "",
121121
"legendFormat": "__auto",
122-
"range": true,
122+
"range": false,
123123
"refId": "A"
124124
}
125125
],
@@ -187,7 +187,7 @@
187187
"text": {},
188188
"textMode": "auto"
189189
},
190-
"pluginVersion": "9.2.4",
190+
"pluginVersion": "9.3.2",
191191
"targets": [
192192
{
193193
"datasource": {
@@ -273,7 +273,7 @@
273273
"text": {},
274274
"textMode": "auto"
275275
},
276-
"pluginVersion": "9.2.4",
276+
"pluginVersion": "9.3.2",
277277
"targets": [
278278
{
279279
"datasource": {
@@ -359,7 +359,7 @@
359359
"text": {},
360360
"textMode": "auto"
361361
},
362-
"pluginVersion": "9.2.4",
362+
"pluginVersion": "9.3.2",
363363
"targets": [
364364
{
365365
"datasource": {
@@ -445,7 +445,7 @@
445445
"text": {},
446446
"textMode": "auto"
447447
},
448-
"pluginVersion": "9.2.4",
448+
"pluginVersion": "9.3.2",
449449
"targets": [
450450
{
451451
"datasource": {
@@ -530,7 +530,7 @@
530530
"text": {},
531531
"textMode": "auto"
532532
},
533-
"pluginVersion": "9.2.4",
533+
"pluginVersion": "9.3.2",
534534
"targets": [
535535
{
536536
"datasource": {
@@ -892,7 +892,7 @@
892892
},
893893
"editorMode": "code",
894894
"exemplar": true,
895-
"expr": "avg(sum(irate(k6_http_reqs_total{testid=~\"$testid\"}[$__range])))",
895+
"expr": "sum(rate(k6_http_reqs_total{testid=~\"$testid\"}[$__rate_interval]))",
896896
"format": "time_series",
897897
"hide": false,
898898
"instant": false,
@@ -908,7 +908,7 @@
908908
},
909909
"editorMode": "code",
910910
"exemplar": false,
911-
"expr": "avg(sum(irate(k6_http_reqs_total{testid=~\"$testid\", expected_response=\"false\"}[$__range])))",
911+
"expr": "avg(sum(rate(k6_http_reqs_total{testid=~\"$testid\", expected_response=\"false\"}[$__rate_interval])))",
912912
"hide": false,
913913
"instant": false,
914914
"legendFormat": "Failed Requests Rate",
@@ -922,9 +922,9 @@
922922
},
923923
"editorMode": "code",
924924
"exemplar": false,
925-
"expr": "avg(histogram_sum(rate(k6_http_req_duration_seconds{testid=~\"$testid\"}[$__range]))\n/\nhistogram_count(rate(k6_http_req_duration_seconds{testid=~\"$testid\"}[$__range])))",
925+
"expr": "avg(histogram_sum(rate(k6_http_req_duration_seconds{testid=~\"$testid\"}[$__rate_interval]))\n/\nhistogram_count(rate(k6_http_req_duration_seconds{testid=~\"$testid\"}[$__rate_interval])))",
926926
"hide": false,
927-
"legendFormat": "Response Time",
927+
"legendFormat": "Response Time (avg)",
928928
"range": true,
929929
"refId": "C"
930930
}
@@ -994,7 +994,7 @@
994994
"text": {},
995995
"textMode": "auto"
996996
},
997-
"pluginVersion": "9.2.4",
997+
"pluginVersion": "9.3.2",
998998
"targets": [
999999
{
10001000
"datasource": {
@@ -1006,10 +1006,10 @@
10061006
"expr": "sum(k6_iterations_total{testid=~\"$testid\"})",
10071007
"format": "time_series",
10081008
"hide": false,
1009-
"instant": false,
1009+
"instant": true,
10101010
"interval": "",
10111011
"legendFormat": "__auto",
1012-
"range": true,
1012+
"range": false,
10131013
"refId": "A"
10141014
}
10151015
],
@@ -1181,7 +1181,7 @@
11811181
},
11821182
"textMode": "auto"
11831183
},
1184-
"pluginVersion": "9.2.4",
1184+
"pluginVersion": "9.3.2",
11851185
"targets": [
11861186
{
11871187
"datasource": {
@@ -1259,7 +1259,7 @@
12591259
"text": {},
12601260
"textMode": "auto"
12611261
},
1262-
"pluginVersion": "9.2.4",
1262+
"pluginVersion": "9.3.2",
12631263
"targets": [
12641264
{
12651265
"datasource": {
@@ -1371,7 +1371,7 @@
13711371
"showHeader": true,
13721372
"sortBy": []
13731373
},
1374-
"pluginVersion": "9.2.4",
1374+
"pluginVersion": "9.3.2",
13751375
"targets": [
13761376
{
13771377
"datasource": {
@@ -1598,7 +1598,7 @@
15981598
}
15991599
]
16001600
},
1601-
"pluginVersion": "9.2.4",
1601+
"pluginVersion": "9.3.2",
16021602
"title": "Thresholds WIP",
16031603
"transformations": [
16041604
{
@@ -1922,7 +1922,7 @@
19221922
"showHeader": true,
19231923
"sortBy": []
19241924
},
1925-
"pluginVersion": "9.2.4",
1925+
"pluginVersion": "9.3.2",
19261926
"targets": [
19271927
{
19281928
"datasource": {
@@ -2388,7 +2388,7 @@
23882388
"frameIndex": 1,
23892389
"showHeader": true
23902390
},
2391-
"pluginVersion": "9.2.4",
2391+
"pluginVersion": "9.3.2",
23922392
"targets": [
23932393
{
23942394
"datasource": {
@@ -2596,8 +2596,7 @@
25962596
"mode": "absolute",
25972597
"steps": [
25982598
{
2599-
"color": "green",
2600-
"value": null
2599+
"color": "green"
26012600
},
26022601
{
26032602
"color": "red",
@@ -2891,8 +2890,7 @@
28912890
"mode": "absolute",
28922891
"steps": [
28932892
{
2894-
"color": "green",
2895-
"value": null
2893+
"color": "green"
28962894
}
28972895
]
28982896
}
@@ -3257,8 +3255,7 @@
32573255
"mode": "absolute",
32583256
"steps": [
32593257
{
3260-
"color": "green",
3261-
"value": null
3258+
"color": "green"
32623259
}
32633260
]
32643261
},
@@ -3346,8 +3343,7 @@
33463343
"mode": "absolute",
33473344
"steps": [
33483345
{
3349-
"color": "green",
3350-
"value": null
3346+
"color": "green"
33513347
},
33523348
{
33533349
"color": "red",
@@ -3413,8 +3409,7 @@
34133409
"mode": "percentage",
34143410
"steps": [
34153411
{
3416-
"color": "red",
3417-
"value": null
3412+
"color": "red"
34183413
}
34193414
]
34203415
},
@@ -3504,8 +3499,7 @@
35043499
"mode": "absolute",
35053500
"steps": [
35063501
{
3507-
"color": "green",
3508-
"value": null
3502+
"color": "green"
35093503
},
35103504
{
35113505
"color": "red",
@@ -3719,4 +3713,4 @@
37193713
"uid": "01npcT44k",
37203714
"version": 1,
37213715
"weekStart": ""
3722-
}
3716+
}

0 commit comments

Comments
 (0)