Skip to content

Commit

Permalink
Fix rates to work with metrics gauges
Browse files Browse the repository at this point in the history
  • Loading branch information
Djadih committed Oct 1, 2024
1 parent 0804e2b commit f15dc37
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions metrics_config/grafana_metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "11.1.1"
"version": "11.2.0"
},
{
"type": "panel",
Expand Down Expand Up @@ -95,6 +95,7 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
Expand Down Expand Up @@ -169,7 +170,7 @@
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "rate(StateTimes{label=~\".*\"}[1m])",
"expr": "deriv(StateTimes{label=~\".*\"}[1m])",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
Expand Down Expand Up @@ -234,7 +235,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.1.1",
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -307,7 +308,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.1.1",
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -346,6 +347,7 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
Expand Down Expand Up @@ -418,7 +420,7 @@
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "rate(TxpoolGauges{label=~\"slots|local\"}[1m])",
"expr": "deriv(TxpoolGauges{label=~\"slots|local\"}[1m])",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
Expand Down Expand Up @@ -482,7 +484,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.1.1",
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -555,7 +557,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.1.1",
"pluginVersion": "11.2.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -594,6 +596,7 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
Expand Down Expand Up @@ -668,7 +671,7 @@
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "rate(MessageCounters{label=~\".*\"}[1m])",
"expr": "deriv(MessageCounters{label=~\".*\"}[1m])",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
Expand Down Expand Up @@ -698,6 +701,7 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
Expand Down Expand Up @@ -775,7 +779,7 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "rate(TxpoolGauges{label!~\"queued|pending|slots|local\"}[1m])",
"expr": "deriv(TxpoolGauges{label!~\"queued|pending|slots|local\"}[1m])",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
Expand Down Expand Up @@ -807,6 +811,7 @@
"axisPlacement": "auto",
"axisSoftMin": 0,
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
Expand Down Expand Up @@ -924,6 +929,7 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
Expand Down Expand Up @@ -993,7 +999,7 @@
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "rate(TxCount{label=~\".*\"}[1m])",
"expr": "deriv(TxCount{label=~\".*\"}[1m])",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
Expand Down Expand Up @@ -1023,6 +1029,7 @@
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
Expand Down Expand Up @@ -1093,7 +1100,7 @@
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "rate(WorkObjectCounters[1m])",
"expr": "deriv(WorkObjectCounters[1m])",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
Expand Down Expand Up @@ -1166,8 +1173,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1283,8 +1289,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1383,8 +1388,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1484,8 +1488,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1619,8 +1622,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1720,8 +1722,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1820,8 +1821,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2217,6 +2217,6 @@
"timezone": "",
"title": "Go-quai Metrics Under Development",
"uid": "adae3653-aaad-4a59-9c93-5827d20896b9-v3",
"version": 1,
"version": 2,
"weekStart": ""
}

0 comments on commit f15dc37

Please sign in to comment.