Skip to content

Commit

Permalink
chore: added a new query to k6 dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayg10 committed Aug 4, 2023
1 parent 0ccb5aa commit 25d9de9
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -910,14 +910,21 @@
{
"matcher": {
"id": "byFrameRefID",
"options": "F"
"options": "G"
},
"properties": [
{
"id": "unit",
"value": "ops"
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": ""
},
"properties": []
}
]
},
Expand Down Expand Up @@ -1033,6 +1040,22 @@
"legendFormat": "Iteration Rate - {{testid}} - {{scenario}}",
"range": true,
"refId": "F"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": true,
"expr": "sum by(testid, payerFspId, payeeFspId) (rate(k6_http_reqs_total{testid=~\"$testid\"}[$__rate_interval]))",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "Requests Rate - {{testid}} - {{payerFspId}} -> {{payeeFspId}}",
"range": true,
"refId": "G"
}
],
"type": "timeseries"
Expand Down Expand Up @@ -2002,7 +2025,8 @@
"mode": "absolute",
"steps": [
{
"color": "blue"
"color": "blue",
"value": null
}
]
},
Expand Down Expand Up @@ -2768,7 +2792,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -2963,7 +2988,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -4761,9 +4787,13 @@
{
"allValue": ".*",
"current": {
"selected": false,
"text": "All",
"value": "$__all"
"selected": true,
"text": [
"1691162724495"
],
"value": [
"1691162724495"
]
},
"datasource": {
"type": "prometheus",
Expand Down
3 changes: 2 additions & 1 deletion packages/k6-tests/config/fspiopTransfers.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
},
"startVUs": 1,
"stages": [
{ "duration": "1m", "target": 1 }
{ "duration": "2m", "target": 1 },
{ "duration": "5m", "target": 1 }
]
}
},
Expand Down
3 changes: 2 additions & 1 deletion packages/k6-tests/config/fspiopTransfersUnidirectional.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
},
"startVUs": 1,
"stages": [
{ "duration": "1m", "target": 1 }
{ "duration": "2m", "target": 1 },
{ "duration": "5m", "target": 1 }
]
}
},
Expand Down

0 comments on commit 25d9de9

Please sign in to comment.