Skip to content

Commit

Permalink
WorkShare propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
Djadih committed Jun 12, 2024
1 parent 102ea4c commit 726898b
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 14 deletions.
126 changes: 113 additions & 13 deletions metrics_config/grafana_metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@
"uid": "${DS_PROMETHEUS}"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "TxpoolGauges{label=~\"slots|local\"}",
"editorMode": "code",
"expr": "rate(TxpoolGauges{label=~\"slots|local\"}[1m])",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
Expand Down Expand Up @@ -984,7 +984,7 @@
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "rate(TxPropagation{label=~\".*\"}[1m])",
"expr": "rate(TxPropagation[1m])",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
Expand All @@ -997,12 +997,112 @@
"title": "Transaction Propagation",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"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": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 25
},
"id": 26,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "right",
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "rate(WorkObjectCounters[1m])",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "{{label}}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Work Propagation",
"type": "timeseries"
},
{
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 25
"y": 33
},
"id": 2,
"title": "System Resources",
Expand Down Expand Up @@ -1071,7 +1171,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 26
"y": 34
},
"id": 3,
"options": {
Expand Down Expand Up @@ -1188,7 +1288,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 26
"y": 34
},
"id": 4,
"options": {
Expand Down Expand Up @@ -1289,7 +1389,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 34
"y": 42
},
"id": 16,
"options": {
Expand Down Expand Up @@ -1317,7 +1417,7 @@
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"legendFormat": "{{label}}",
"range": true,
"refId": "A",
"useBackend": false
Expand Down Expand Up @@ -1390,7 +1490,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 34
"y": 42
},
"id": 5,
"options": {
Expand Down Expand Up @@ -1525,7 +1625,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 42
"y": 50
},
"id": 9,
"options": {
Expand Down Expand Up @@ -1625,7 +1725,7 @@
"h": 8,
"w": 12,
"x": 12,
"y": 42
"y": 50
},
"id": 8,
"options": {
Expand Down Expand Up @@ -1725,7 +1825,7 @@
"h": 8,
"w": 12,
"x": 0,
"y": 50
"y": 58
},
"id": 11,
"options": {
Expand Down Expand Up @@ -1778,6 +1878,6 @@
"timezone": "",
"title": "Go-quai Metrics Under Development",
"uid": "adae3653-aaad-4a59-9c93-5827d20896b9-v3",
"version": 3,
"version": 6,
"weekStart": ""
}
2 changes: 1 addition & 1 deletion quai/p2p_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ var (
txPropagationMetrics = metrics_config.NewCounterVec("TxPropagation", "Transaction propagation counter")
txIngressCounter = txPropagationMetrics.WithLabelValues("ingress")
txEgressCounter = txPropagationMetrics.WithLabelValues("egress")
workObjectMetrics = metrics_config.NewCounterVec("Work Object Counters", "Tracks block statistics")

workObjectMetrics = metrics_config.NewCounterVec("WorkObjectCounters", "Tracks block statistics")
// Block propagation metrics
blockIngressCounter = workObjectMetrics.WithLabelValues("blocks/ingress")
blockKnownCounter = workObjectMetrics.WithLabelValues("blocks/known")
Expand Down

0 comments on commit 726898b

Please sign in to comment.