Skip to content

Commit

Permalink
feat(mojaloop/#3565): fix and edit quote harness dashboards (#36)
Browse files Browse the repository at this point in the history
* chore: perf testing

* dash

* automate

* dash

* chore: dash

* chore: dash

* chore: dash

* feat: added single quote scenario

* change

* change

* timing

---------

Co-authored-by: Vijay <[email protected]>
  • Loading branch information
kleyow and vijayg10 authored Oct 10, 2023
1 parent 0385a3a commit c7d6b16
Show file tree
Hide file tree
Showing 8 changed files with 4,689 additions and 476 deletions.
3 changes: 2 additions & 1 deletion automate_perf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ declare -a dashboards=(\
"NodeJS%20Application%20Dashboard" \
"Official%20k6%20Test%20Result" \
"MySQL%20Overview" \
"Supporting%20Services%20-%20Callback%20Hander%20Service"
"Supporting%20Services%20-%20Callback%20Hander%20Service" \
"mojaloop-quoting-service"
)

# # create a directory to store the results with date timestamp in the name, check if the directory exists
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ services:
- mojaloop-net
# ports:
# - "3002:3002"
# - "9229:9229"
depends_on:
mysql-cl:
condition: service_started
Expand Down Expand Up @@ -758,7 +759,6 @@ services:
- all-services
- als-test
- transfers-test
- quotes-test

ttk-provisioning-als:
image: mojaloop/ml-testing-toolkit-client-lib:${TEST_TTK_CLI_VERSION}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 5,
"id": 10,
"links": [
{
"asDropdown": false,
Expand Down Expand Up @@ -59,7 +59,7 @@
"overrides": []
},
"gridPos": {
"h": 8,
"h": 4,
"w": 12,
"x": 0,
"y": 0
Expand Down Expand Up @@ -146,7 +146,7 @@
"overrides": []
},
"gridPos": {
"h": 8,
"h": 4,
"w": 12,
"x": 12,
"y": 0
Expand Down Expand Up @@ -234,7 +234,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 8
"y": 4
},
"id": 3,
"options": {
Expand All @@ -247,7 +247,7 @@
],
"show": false
},
"frameIndex": 1,
"frameIndex": 3,
"showHeader": true
},
"pluginVersion": "10.0.2",
Expand Down Expand Up @@ -281,6 +281,64 @@
"limit": 50
}
},
{
"datasource": {
"type": "mysql",
"uid": "e6f1763f-dc6a-4521-8254-0dbe1515b837"
},
"editorMode": "code",
"format": "table",
"hide": false,
"rawQuery": true,
"rawSql": "ANALYZE TABLE quote;",
"refId": "C",
"sql": {
"columns": [
{
"parameters": [],
"type": "function"
}
],
"groupBy": [
{
"property": {
"type": "string"
},
"type": "groupBy"
}
],
"limit": 50
}
},
{
"datasource": {
"type": "mysql",
"uid": "e6f1763f-dc6a-4521-8254-0dbe1515b837"
},
"editorMode": "code",
"format": "table",
"hide": false,
"rawQuery": true,
"rawSql": "ANALYZE TABLE quoteResponse;",
"refId": "D",
"sql": {
"columns": [
{
"parameters": [],
"type": "function"
}
],
"groupBy": [
{
"property": {
"type": "string"
},
"type": "groupBy"
}
],
"limit": 50
}
},
{
"dataset": "performance_schema",
"datasource": {
Expand Down Expand Up @@ -352,7 +410,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 8
"y": 4
},
"id": 4,
"options": {
Expand Down Expand Up @@ -400,9 +458,165 @@
],
"title": "Last Transfer State Count",
"type": "table"
},
{
"datasource": {
"type": "mysql",
"uid": "e6f1763f-dc6a-4521-8254-0dbe1515b837"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 12,
"x": 0,
"y": 12
},
"id": 5,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "mysql",
"uid": "e6f1763f-dc6a-4521-8254-0dbe1515b837"
},
"editorMode": "code",
"format": "table",
"rawQuery": true,
"rawSql": "SELECT COUNT(quoteId) FROM central_ledger.quote WHERE createdDate between $__timeFrom() AND $__timeTo()",
"refId": "A",
"sql": {
"columns": [
{
"parameters": [],
"type": "function"
}
],
"groupBy": [
{
"property": {
"type": "string"
},
"type": "groupBy"
}
],
"limit": 50
}
}
],
"title": "Quote count between time range",
"type": "stat"
},
{
"datasource": {
"type": "mysql",
"uid": "e6f1763f-dc6a-4521-8254-0dbe1515b837"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 12,
"x": 12,
"y": 12
},
"id": 6,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "mysql",
"uid": "e6f1763f-dc6a-4521-8254-0dbe1515b837"
},
"editorMode": "code",
"format": "table",
"rawQuery": true,
"rawSql": "SELECT COUNT(quoteResponseId) FROM central_ledger.quoteResponse WHERE createdDate between $__timeFrom() AND $__timeTo()",
"refId": "A",
"sql": {
"columns": [
{
"parameters": [],
"type": "function"
}
],
"groupBy": [
{
"property": {
"type": "string"
},
"type": "groupBy"
}
],
"limit": 50
}
}
],
"title": "Quote response count between time range",
"type": "stat"
}
],
"refresh": false,
"refresh": "",
"schemaVersion": 38,
"style": "dark",
"tags": [],
Expand All @@ -416,7 +630,7 @@
"timepicker": {},
"timezone": "",
"title": "Central Ledger DB",
"uid": "d17cf1dd-8fbc-4841-a957-214387249f19",
"uid": "d17cf1dd-8fbc-4841-a957-214387249f18",
"version": 1,
"weekStart": ""
}
Loading

0 comments on commit c7d6b16

Please sign in to comment.