Skip to content

Commit

Permalink
improve dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
fsodre committed Jan 21, 2025
1 parent 9242475 commit 4004a64
Showing 1 changed file with 121 additions and 11 deletions.
132 changes: 121 additions & 11 deletions rs/rosetta-api/local/cluster/rosetta_load_dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"graphTooltip": 1,
"id": 1,
"links": [],
"panels": [
Expand Down Expand Up @@ -90,13 +90,14 @@
"value": 80
}
]
}
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 8,
"w": 6,
"x": 0,
"y": 1
},
Expand All @@ -118,7 +119,8 @@
{
"disableTextWrap": false,
"editorMode": "builder",
"expr": "rosetta_synched_block_height{namespace=\"rosetta-api\"}",
"expr": "max by(app) (rosetta_synched_block_height{namespace=\"rosetta-api\"})",
"format": "time_series",
"fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "Synched ({{app}})",
Expand All @@ -133,7 +135,8 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "rosetta_target_block_height{namespace=\"rosetta-api\"}",
"expr": "max by(app) (rosetta_target_block_height{namespace=\"rosetta-api\"})",
"format": "time_series",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
Expand All @@ -150,7 +153,8 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "rosetta_verified_block_height{namespace=\"rosetta-api\"}",
"expr": "max by(app) (rosetta_verified_block_height{namespace=\"rosetta-api\"})",
"format": "time_series",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
Expand Down Expand Up @@ -227,8 +231,8 @@
},
"gridPos": {
"h": 8,
"w": 8,
"x": 8,
"w": 6,
"x": 6,
"y": 1
},
"id": 10,
Expand Down Expand Up @@ -329,8 +333,8 @@
},
"gridPos": {
"h": 8,
"w": 8,
"x": 16,
"w": 6,
"x": 12,
"y": 1
},
"id": 13,
Expand Down Expand Up @@ -371,6 +375,112 @@
"title": "Total Sync Errors",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "bars",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 18,
"y": 1
},
"id": 14,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.4.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "count_over_time(ledger_sync_blocks_fetched_total[2m])",
"format": "time_series",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"interval": "1",
"legendFormat": "{{app}}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Total blocks fetched from ledger",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
Expand Down Expand Up @@ -1113,7 +1223,7 @@
"list": []
},
"time": {
"from": "now-24h",
"from": "now-5m",
"to": "now"
},
"timepicker": {},
Expand Down

0 comments on commit 4004a64

Please sign in to comment.