Skip to content

Commit

Permalink
update the grafana dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
nibty committed Jan 25, 2024
1 parent 3d1234d commit 8c4d0ad
Showing 1 changed file with 137 additions and 28 deletions.
165 changes: 137 additions & 28 deletions docker/networksimulator/grafana/var/lib/grafana/dashboards/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@
},
"editorMode": "code",
"expr": "rate(rpc_requests{instance=~\"$instance\"}[$__rate_interval])",
"legendFormat": "{{host}}",
"legendFormat": "{{instance}}",
"range": true,
"refId": "A"
}
Expand Down Expand Up @@ -496,7 +496,7 @@
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum(p2p_peers{instance=~\"$instance\"})",
"expr": "max(p2p_peers{instance=~\"$instance\"})",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand All @@ -510,7 +510,7 @@
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum(rate(p2p_dials{instance=~\"$instance\"}[$__rate_interval]))",
"expr": "max(rate(p2p_dials{instance=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand All @@ -524,7 +524,7 @@
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum(rate(p2p_serves{instance=~\"$instance\"}[$__rate_interval]))",
"expr": "max(rate(p2p_serves{instance=~\"$instance\"}[$__rate_interval]))",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand Down Expand Up @@ -589,7 +589,7 @@
"overrides": []
},
"gridPos": {
"h": 11,
"h": 5,
"w": 4,
"x": 0,
"y": 16
Expand Down Expand Up @@ -623,7 +623,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "chain_head_block{instance=~\"$instance\"}",
"expr": "max(chain_head_block{instance=~\"$instance\"})",
"format": "time_series",
"instant": true,
"interval": "",
Expand Down Expand Up @@ -672,7 +672,7 @@
"overrides": []
},
"gridPos": {
"h": 11,
"h": 5,
"w": 4,
"x": 4,
"y": 16
Expand Down Expand Up @@ -706,7 +706,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "chain_head_receipt{instance=~\"$instance\"}",
"expr": "max(chain_head_receipt{instance=~\"$instance\"})",
"format": "time_series",
"instant": true,
"interval": "",
Expand Down Expand Up @@ -755,7 +755,7 @@
"overrides": []
},
"gridPos": {
"h": 11,
"h": 5,
"w": 4,
"x": 8,
"y": 16
Expand Down Expand Up @@ -789,7 +789,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "chain_head_block{instance=~\"$instance\"}",
"expr": "max(chain_head_block{instance=~\"$instance\"})",
"format": "time_series",
"instant": true,
"interval": "",
Expand Down Expand Up @@ -838,7 +838,7 @@
"overrides": []
},
"gridPos": {
"h": 11,
"h": 5,
"w": 4,
"x": 12,
"y": 16
Expand Down Expand Up @@ -866,11 +866,17 @@
"pluginVersion": "10.3.1",
"targets": [
{
"expr": "txpool_pending{instance=~\"$instance\"}",
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "max(txpool_pending{instance=~\"$instance\"})",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{ instance }}",
"range": true,
"refId": "A"
}
],
Expand Down Expand Up @@ -913,7 +919,7 @@
"overrides": []
},
"gridPos": {
"h": 11,
"h": 5,
"w": 4,
"x": 16,
"y": 16
Expand Down Expand Up @@ -947,7 +953,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "txpool_queued{instance=~\"$instance\"}",
"expr": "max(txpool_queued{instance=~\"$instance\"})",
"format": "time_series",
"instant": true,
"interval": "",
Expand Down Expand Up @@ -996,7 +1002,7 @@
"overrides": []
},
"gridPos": {
"h": 11,
"h": 5,
"w": 4,
"x": 20,
"y": 16
Expand Down Expand Up @@ -1030,7 +1036,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "txpool_local{instance=~\"$instance\"}",
"expr": "max(txpool_local{instance=~\"$instance\"})",
"format": "time_series",
"instant": true,
"interval": "",
Expand Down Expand Up @@ -1106,9 +1112,9 @@
},
"gridPos": {
"h": 6,
"w": 12,
"w": 8,
"x": 0,
"y": 27
"y": 21
},
"id": 110,
"links": [],
Expand Down Expand Up @@ -1235,9 +1241,9 @@
},
"gridPos": {
"h": 6,
"w": 12,
"x": 12,
"y": 27
"w": 8,
"x": 8,
"y": 21
},
"id": 116,
"links": [],
Expand Down Expand Up @@ -1301,6 +1307,107 @@
"title": "Transaction pool",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "dtdurationms",
"unitScale": true
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 8,
"x": 16,
"y": 21
},
"id": 127,
"links": [],
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "8.4.7",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "avg(chain_block_age / 1000000)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "age",
"range": true,
"refId": "A"
}
],
"title": "Block Age",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
Expand Down Expand Up @@ -1366,7 +1473,7 @@
"h": 9,
"w": 24,
"x": 0,
"y": 33
"y": 27
},
"id": 112,
"links": [],
Expand Down Expand Up @@ -1613,7 +1720,7 @@
"h": 9,
"w": 24,
"x": 0,
"y": 42
"y": 36
},
"id": 117,
"links": [],
Expand Down Expand Up @@ -1809,7 +1916,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 51
"y": 45
},
"id": 37,
"panels": [],
Expand Down Expand Up @@ -1863,7 +1970,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand All @@ -1880,7 +1988,7 @@
"h": 6,
"w": 12,
"x": 0,
"y": 52
"y": 46
},
"id": 120,
"links": [],
Expand Down Expand Up @@ -1979,7 +2087,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand All @@ -1996,7 +2105,7 @@
"h": 6,
"w": 12,
"x": 12,
"y": 52
"y": 46
},
"id": 56,
"links": [],
Expand Down

0 comments on commit 8c4d0ad

Please sign in to comment.