Update token dashboard in Grafana (#6148)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Kamil Kisiela 2024-12-19 20:39:08 +01:00 committed by GitHub
parent 2359cb7e63
commit f0629e33b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 13,
"id": 53,
"links": [],
"liveNow": false,
"panels": [
@ -39,6 +39,7 @@
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisGridShow": true,
@ -46,6 +47,7 @@
"axisPlacement": "auto",
"axisSoftMin": 0,
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
@ -54,6 +56,7 @@
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
@ -105,6 +108,7 @@
"sort": "none"
}
},
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
@ -159,14 +163,17 @@
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": ["mean"],
"fields": "",
"values": false
},
"textMode": "auto"
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "9.4.4-2911eec",
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
@ -196,6 +203,7 @@
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisGridShow": true,
@ -203,6 +211,7 @@
"axisPlacement": "auto",
"axisSoftMin": 0,
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
@ -211,6 +220,7 @@
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
@ -262,6 +272,7 @@
"sort": "none"
}
},
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
@ -289,11 +300,13 @@
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
@ -302,6 +315,7 @@
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
@ -353,17 +367,24 @@
"sort": "none"
}
},
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "grafanacloud-prom"
},
"disableTextWrap": false,
"editorMode": "builder",
"exemplar": true,
"expr": "sum(rate(tokens_cache_hits_total[$__rate_interval]))",
"expr": "sum by(status) (rate(tokens_reads_total[$__rate_interval]))",
"fullMetaSearch": false,
"includeNullMetadata": true,
"interval": "",
"legendFormat": "Hits",
"refId": "A"
"legendFormat": "{{status}}",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
@ -378,7 +399,7 @@
"refId": "B"
}
],
"title": "Cache hits",
"title": "Token reads",
"type": "timeseries"
},
{
@ -408,7 +429,7 @@
"overrides": []
},
"gridPos": {
"h": 14,
"h": 7,
"w": 6,
"x": 18,
"y": 13
@ -419,14 +440,17 @@
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": ["mean"],
"fields": "",
"values": false
},
"textMode": "auto"
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "9.4.4-2911eec",
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
@ -435,7 +459,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(rate(tokens_cache_hits_total[$__rate_interval]))/ (sum(rate(tokens_cache_hits_total[$__rate_interval])) + sum(rate(tokens_cache_misses_total[$__rate_interval])))",
"expr": "(sum(rate(tokens_cache_reads_total[$__rate_interval])) - sum(rate(tokens_cache_reads_total{status=\"miss\"}[$__rate_interval]))) / sum(rate(tokens_cache_reads_total[$__rate_interval]))",
"interval": "",
"legendFormat": "Requests",
"range": true,
@ -456,11 +480,13 @@
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
@ -469,6 +495,233 @@
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 2,
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "reqps"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 18,
"x": 0,
"y": 20
},
"id": 14,
"options": {
"legend": {
"calcs": ["last", "min", "max", "mean"],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "grafanacloud-prom"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": true,
"expr": "sum by(status) (rate(tokens_cache_reads_total[$__rate_interval]))",
"fullMetaSearch": false,
"includeNullMetadata": true,
"interval": "",
"legendFormat": "{{status}}",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "grafanacloud-prom"
},
"editorMode": "code",
"expr": "sum(rate(tokens_cache_misses_total[$__rate_interval]))",
"hide": false,
"legendFormat": "Misses",
"range": true,
"refId": "B"
}
],
"title": "Reads from cache",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "grafanacloud-prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 2,
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "reqps"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 6,
"x": 18,
"y": 20
},
"id": 15,
"options": {
"legend": {
"calcs": ["last", "min", "max", "mean"],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "grafanacloud-prom"
},
"disableTextWrap": false,
"editorMode": "builder",
"exemplar": true,
"expr": "sum by(status) (rate(tokens_cache_reads_total{status=\"miss\"}[$__rate_interval]))",
"fullMetaSearch": false,
"includeNullMetadata": true,
"interval": "",
"legendFormat": "{{status}}",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "grafanacloud-prom"
},
"editorMode": "code",
"expr": "sum(rate(tokens_cache_misses_total[$__rate_interval]))",
"hide": false,
"legendFormat": "Misses",
"range": true,
"refId": "B"
}
],
"title": "Cache misses",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "grafanacloud-prom"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
@ -492,7 +745,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
}
]
}
@ -501,9 +755,9 @@
},
"gridPos": {
"h": 7,
"w": 9,
"w": 18,
"x": 0,
"y": 20
"y": 27
},
"id": 9,
"options": {
@ -518,20 +772,27 @@
"sort": "none"
}
},
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "grafanacloud-prom"
},
"disableTextWrap": false,
"editorMode": "builder",
"exemplar": true,
"expr": "sum(rate(tokens_cache_fillups_total[$__rate_interval]))",
"expr": "sum by(source) (rate(tokens_cache_fills_total[$__rate_interval]))",
"fullMetaSearch": false,
"includeNullMetadata": true,
"interval": "",
"legendFormat": "Fill ups",
"refId": "A"
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Cache fill ups",
"title": "In-Memory Cache fill ups",
"type": "timeseries"
},
{
@ -545,11 +806,13 @@
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
@ -558,6 +821,7 @@
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
@ -574,31 +838,33 @@
"mode": "off"
}
},
"decimals": 2,
"mappings": [],
"min": 0,
"noValue": "0",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
}
]
}
},
"unit": "reqps"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 9,
"x": 9,
"y": 20
"w": 6,
"x": 18,
"y": 27
},
"id": 10,
"id": 16,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"calcs": ["last", "min", "max", "mean"],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
@ -607,27 +873,44 @@
"sort": "none"
}
},
"pluginVersion": "11.5.0-80207",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "grafanacloud-prom"
},
"disableTextWrap": false,
"editorMode": "builder",
"exemplar": true,
"expr": "sum(rate(tokens_cache_invalidations_total[$__rate_interval]))",
"expr": "sum by(status) (rate(tokens_cache_reads_total{status=\"stale\"}[$__rate_interval]))",
"fullMetaSearch": false,
"includeNullMetadata": true,
"interval": "",
"legendFormat": "Invalidations",
"refId": "A"
"legendFormat": "{{status}}",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "grafanacloud-prom"
},
"editorMode": "code",
"expr": "sum(rate(tokens_cache_misses_total[$__rate_interval]))",
"hide": false,
"legendFormat": "Misses",
"range": true,
"refId": "B"
}
],
"title": "Cache invalidations",
"title": "Stale cache hits",
"type": "timeseries"
}
],
"refresh": "5s",
"revision": 1,
"schemaVersion": 38,
"style": "dark",
"schemaVersion": 40,
"tags": ["hive", "tokens"],
"templating": {
"list": []
@ -639,7 +922,7 @@
"timepicker": {},
"timezone": "",
"title": "Hive Tokens Metrics",
"uid": "C3iKKyanz",
"version": 17,
"uid": "gvDRS0-Vz",
"version": 9,
"weekStart": ""
}