Skip to content

Commit

Permalink
[dashboards] sync grafana dashboards (aptos-labs#8505)
Browse files Browse the repository at this point in the history
Co-authored-by: rustielin <[email protected]>
  • Loading branch information
github-actions[bot] and rustielin authored Jun 9, 2023
1 parent f49d050 commit 0a777f5
Show file tree
Hide file tree
Showing 12 changed files with 1,356 additions and 420 deletions.
36 changes: 6 additions & 30 deletions dashboards/blockchain-health.json
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@
"refId": "A"
}
],
"title": "(devnet/testnet) PFN-only Per Bucket Avg E2E Txn Commit Latency",
"title": "Aptos PFN-only Per Bucket Avg E2E Txn Commit Latency",
"type": "timeseries"
},
{
Expand Down Expand Up @@ -1459,13 +1459,7 @@
"thresholdsStyle": { "mode": "off" }
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "red", "value": 80 }
]
}
"thresholds": { "mode": "absolute", "steps": [{ "color": "green" }, { "color": "red", "value": 80 }] }
},
"overrides": []
},
Expand Down Expand Up @@ -1523,13 +1517,7 @@
"thresholdsStyle": { "mode": "off" }
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "red", "value": 80 }
]
}
"thresholds": { "mode": "absolute", "steps": [{ "color": "green" }, { "color": "red", "value": 80 }] }
},
"overrides": []
},
Expand Down Expand Up @@ -1578,13 +1566,7 @@
"thresholdsStyle": { "mode": "off" }
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "red", "value": 80 }
]
}
"thresholds": { "mode": "absolute", "steps": [{ "color": "green" }, { "color": "red", "value": 80 }] }
},
"overrides": []
},
Expand Down Expand Up @@ -1633,13 +1615,7 @@
"thresholdsStyle": { "mode": "off" }
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "red", "value": 80 }
]
}
"thresholds": { "mode": "absolute", "steps": [{ "color": "green" }, { "color": "red", "value": 80 }] }
},
"overrides": []
},
Expand Down Expand Up @@ -3252,6 +3228,6 @@
"timezone": "browser",
"title": "blockchain-health",
"uid": "JnOvNs4Vk",
"version": 11,
"version": 12,
"weekStart": ""
}
Binary file modified dashboards/blockchain-health.json.gz
Binary file not shown.
144 changes: 100 additions & 44 deletions dashboards/developer-platform-client-metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"content": "In order to view metrics for:\n- mainnet\n - datasource: VictoriaMetrics Mainnet\n - chain_name: mainnet\n- testnet\n - datasource: VictoriaMetrics Global (Non-mainnet)\n - chain_name: testnet\n- devnet\n - datasource: VictoriaMetrics Global (Non-mainnet)\n - chain_name: devnet",
"mode": "markdown"
},
"pluginVersion": "9.5.3-cloud.2.0cb5a501",
"pluginVersion": "10.0.0-cloud.3.b04cc88b",
"title": "Guide",
"type": "text"
},
Expand All @@ -49,7 +49,7 @@
"content": "This section contains queries that aggregate across all clients. This means the `source_client` variable above doesn't do anything.",
"mode": "markdown"
},
"pluginVersion": "9.5.3-cloud.2.0cb5a501",
"pluginVersion": "10.0.0-cloud.3.b04cc88b",
"title": "Explanation",
"type": "text"
},
Expand Down Expand Up @@ -118,60 +118,116 @@
"type": "piechart"
},
{
"collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 27 },
"id": 4,
"panels": [],
"repeat": "source_client",
"repeatDirection": "h",
"title": "Per client",
"type": "row"
},
{
"datasource": { "type": "prometheus", "uid": "fHo-R604z" },
"gridPos": { "h": 3, "w": 24, "x": 0, "y": 28 },
"id": 6,
"options": {
"code": { "language": "plaintext", "showLineNumbers": false, "showMiniMap": false },
"content": "This section contains queries that show data for a specific client. To select which client to view metrics for, select one in the `source_client` variable dropdown above.",
"mode": "markdown"
},
"pluginVersion": "9.5.3-cloud.2.0cb5a501",
"title": "Explanation",
"type": "text"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"description": "This shows what are the top 5 most common endpoints called by users of this client in the configured time window.",
"datasource": { "type": "grafana-falconlogscale-datasource", "uid": "b4f0e2cd-2eea-4ada-a4c0-261e41369ed5" },
"fieldConfig": {
"defaults": {
"color": { "mode": "palette-classic" },
"custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } },
"mappings": []
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"fillOpacity": 80,
"gradientMode": "none",
"hideFrom": { "legend": false, "tooltip": false, "viz": false },
"lineWidth": 1,
"scaleDistribution": { "type": "linear" },
"thresholdsStyle": { "mode": "off" }
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "red", "value": 80 }
]
}
},
"overrides": []
},
"gridPos": { "h": 15, "w": 12, "x": 0, "y": 31 },
"id": 3,
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 27 },
"id": 10,
"options": {
"legend": { "displayMode": "list", "placement": "bottom", "showLegend": true },
"pieType": "pie",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
"tooltip": { "mode": "single", "sort": "none" }
"barRadius": 0,
"barWidth": 0.97,
"fullHighlight": false,
"groupWidth": 0.7,
"legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true },
"orientation": "auto",
"showValue": "auto",
"stacking": "none",
"tooltip": { "mode": "single", "sort": "none" },
"xTickLabelRotation": 0,
"xTickLabelSpacing": 0
},
"pluginVersion": "9.5.3-cloud.2.0cb5a501",
"pluginVersion": "10.0.0-cloud.3.b04cc88b",
"targets": [
{
"datasource": { "type": "grafana-falconlogscale-datasource", "uid": "b4f0e2cd-2eea-4ada-a4c0-261e41369ed5" },
"lsql": "| #resource.type=cloud_run_revision\n| resource.labels.service_name=indexer-$chain_name \n| jsonPayload.method=* logName=*stdout\n| case {jsonPayload.aptos_client!=* | jsonPayload.aptos_client:=\"unknown\"; *}\n| top(jsonPayload.aptos_client)",
"refId": "A",
"repository": "gcp"
}
],
"title": "Indexer API requests by client",
"type": "barchart"
},
{
"collapsed": true,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 35 },
"id": 4,
"panels": [
{
"datasource": { "type": "prometheus", "uid": "fHo-R604z" },
"gridPos": { "h": 3, "w": 24, "x": 0, "y": 36 },
"id": 6,
"options": {
"code": { "language": "plaintext", "showLineNumbers": false, "showMiniMap": false },
"content": "This section contains queries that show data for a specific client. To select which client to view metrics for, select one in the `source_client` variable dropdown above.",
"mode": "markdown"
},
"pluginVersion": "10.0.0-cloud.3.b04cc88b",
"title": "Explanation",
"type": "text"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"editorMode": "code",
"expr": "topk(5, sum by(operation_id) (increase(aptos_api_request_source_client{request_source_client=\"$source_client\", chain_name=\"$chain_name\"}[$__range])))",
"legendFormat": "__auto",
"range": true,
"refId": "A"
"description": "This shows what are the top 5 most common endpoints called by users of this client in the configured time window.",
"fieldConfig": {
"defaults": {
"color": { "mode": "palette-classic" },
"custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } },
"mappings": []
},
"overrides": []
},
"gridPos": { "h": 15, "w": 12, "x": 0, "y": 39 },
"id": 3,
"options": {
"legend": { "displayMode": "list", "placement": "bottom", "showLegend": true },
"pieType": "pie",
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
"tooltip": { "mode": "single", "sort": "none" }
},
"pluginVersion": "9.5.3-cloud.2.0cb5a501",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"editorMode": "code",
"expr": "topk(5, sum by(operation_id) (increase(aptos_api_request_source_client{request_source_client=\"$source_client\", chain_name=\"$chain_name\"}[$__range])))",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Top 5 endpoints",
"type": "piechart"
}
],
"title": "Top 5 endpoints",
"type": "piechart"
"repeat": "source_client",
"repeatDirection": "h",
"title": "Per client",
"type": "row"
}
],
"refresh": "",
Expand Down Expand Up @@ -244,6 +300,6 @@
"timezone": "",
"title": "Developer Platform Client Metrics",
"uid": "be847ea3-c7cc-4048-b783-eb2fdb4f1abd",
"version": 48,
"version": 53,
"weekStart": ""
}
Binary file modified dashboards/developer-platform-client-metrics.json.gz
Binary file not shown.
Loading

0 comments on commit 0a777f5

Please sign in to comment.