[#38] grafana: Fix units

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-08-04 13:59:12 +03:00
parent 8218440525
commit 1408558631

View file

@ -227,7 +227,7 @@
"type": "gauge"
},
{
"collapsed": false,
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
@ -235,338 +235,339 @@
"y": 7
},
"id": 2,
"panels": [],
"title": "Server",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Requests per second by gRPC method",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 100,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 3,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "reqps"
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 8
},
"id": 1,
"options": {
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "9.5.6",
"targets": [
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (instance, grpc_service, grpc_method) (\n rate(grpc_server_started_total{instance=\"$instance\"}[$__rate_interval])\n)\n",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "{{grpc_service}}.{{grpc_method}}",
"range": true,
"refId": "A"
}
],
"title": "RPS",
"transformations": [],
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Percentage of the failed requests",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 3,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"max": 100,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"description": "Requests per second by gRPC method",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": [
{
"__systemRef": "hideSeriesFrom",
"matcher": {
"id": "byNames",
"options": {
"mode": "exclude",
"names": [
"neo.fs.v2.object.ObjectService.Search"
],
"prefix": "All except:",
"readOnly": true
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 100,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": true
"viz": false
},
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 3,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
}
]
}
]
},
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 18
},
"id": 3,
"options": {
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "9.5.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "reqps"
},
"overrides": []
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(grpc_server_handled_total{instance=\"$instance\",grpc_code!=\"OK\"}[$__rate_interval])) by (grpc_service, grpc_method)\n / \nsum(rate(grpc_server_started_total{instance=\"$instance\"}[$__rate_interval])) by (grpc_service, grpc_method)\n * 100.0\n",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "{{grpc_service}}.{{grpc_method}}",
"range": true,
"refId": "A"
}
],
"title": "Error rate",
"transformations": [],
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Latency of the requests for selected quantile",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 8
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
"id": 1,
"options": {
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 3,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"pluginVersion": "9.5.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "ms"
"editorMode": "code",
"exemplar": false,
"expr": "sum by (instance, grpc_service, grpc_method) (\n rate(grpc_server_started_total{instance=\"$instance\"}[$__rate_interval])\n)\n",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "{{grpc_service}}.{{grpc_method}}",
"range": true,
"refId": "A"
}
],
"title": "RPS",
"transformations": [],
"type": "timeseries"
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 28
},
"id": 4,
"options": {
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "9.5.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"exemplar": false,
"expr": "histogram_quantile($quantile, \n sum(rate(grpc_server_handling_seconds_bucket{job=\"node\", instance=\"$instance\"}[$__rate_interval])) by (grpc_service,grpc_method,le)\n)\n",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "{{grpc_service}}.{{grpc_method}}",
"range": true,
"refId": "A"
"description": "Percentage of the failed requests",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 3,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"max": 100,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": [
{
"__systemRef": "hideSeriesFrom",
"matcher": {
"id": "byNames",
"options": {
"mode": "exclude",
"names": [
"neo.fs.v2.object.ObjectService.Search"
],
"prefix": "All except:",
"readOnly": true
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": false,
"tooltip": false,
"viz": true
}
}
]
}
]
},
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 18
},
"id": 3,
"options": {
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "9.5.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(grpc_server_handled_total{instance=\"$instance\",grpc_code!=\"OK\"}[$__rate_interval])) by (grpc_service, grpc_method)\n / \nsum(rate(grpc_server_started_total{instance=\"$instance\"}[$__rate_interval])) by (grpc_service, grpc_method)\n * 100.0\n",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "{{grpc_service}}.{{grpc_method}}",
"range": true,
"refId": "A"
}
],
"title": "Error rate",
"transformations": [],
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Latency of the requests for selected quantile",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 3,
"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
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 28
},
"id": 4,
"options": {
"legend": {
"calcs": [],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "9.5.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"exemplar": false,
"expr": "histogram_quantile($quantile, \n sum(rate(grpc_server_handling_seconds_bucket{job=\"node\", instance=\"$instance\"}[$__rate_interval])) by (grpc_service,grpc_method,le)\n)\n",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "{{grpc_service}}.{{grpc_method}}",
"range": true,
"refId": "A"
}
],
"title": "Latency",
"transformations": [],
"type": "timeseries"
}
],
"title": "Latency",
"transformations": [],
"type": "timeseries"
"title": "Server",
"type": "row"
},
{
"collapsed": true,
@ -574,7 +575,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 38
"y": 8
},
"id": 27,
"panels": [
@ -644,7 +645,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 120
"y": 9
},
"id": 28,
"options": {
@ -745,7 +746,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 130
"y": 19
},
"id": 29,
"options": {
@ -837,7 +838,7 @@
}
]
},
"unit": "ms"
"unit": "s"
},
"overrides": []
},
@ -845,7 +846,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 140
"y": 29
},
"id": 30,
"options": {
@ -940,7 +941,7 @@
}
]
},
"unit": "Bps"
"unit": "binBps"
},
"overrides": []
},
@ -948,7 +949,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 150
"y": 39
},
"id": 31,
"options": {
@ -995,7 +996,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 39
"y": 9
},
"id": 33,
"panels": [
@ -1065,7 +1066,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 1
"y": 10
},
"id": 35,
"options": {
@ -1166,7 +1167,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 11
"y": 20
},
"id": 37,
"options": {
@ -1258,7 +1259,7 @@
}
]
},
"unit": "ms"
"unit": "s"
},
"overrides": []
},
@ -1266,7 +1267,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 21
"y": 30
},
"id": 36,
"options": {
@ -1368,7 +1369,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 31
"y": 40
},
"id": 34,
"options": {
@ -1415,7 +1416,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 40
"y": 10
},
"id": 12,
"panels": [
@ -1485,7 +1486,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 41
"y": 11
},
"id": 13,
"options": {
@ -1586,7 +1587,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 51
"y": 21
},
"id": 15,
"options": {
@ -1678,7 +1679,7 @@
}
]
},
"unit": "ms"
"unit": "s"
},
"overrides": []
},
@ -1686,7 +1687,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 61
"y": 31
},
"id": 14,
"options": {
@ -1786,7 +1787,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 71
"y": 41
},
"id": 16,
"options": {
@ -1878,7 +1879,7 @@
}
]
},
"unit": "decbytes"
"unit": "bytes"
},
"overrides": []
},
@ -1886,7 +1887,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 81
"y": 51
},
"id": 17,
"options": {
@ -1986,7 +1987,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 91
"y": 61
},
"id": 18,
"options": {
@ -2088,7 +2089,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 101
"y": 71
},
"id": 19,
"options": {
@ -2135,7 +2136,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 41
"y": 11
},
"id": 23,
"panels": [
@ -2202,7 +2203,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 83
"y": 12
},
"id": 24,
"options": {
@ -2302,7 +2303,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 93
"y": 22
},
"id": 25,
"options": {
@ -2394,7 +2395,7 @@
}
]
},
"unit": "Bps"
"unit": "binBps"
},
"overrides": []
},
@ -2402,7 +2403,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 103
"y": 32
},
"id": 26,
"options": {
@ -2449,7 +2450,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 42
"y": 12
},
"id": 6,
"panels": [
@ -2999,7 +3000,7 @@
"list": [
{
"current": {
"selected": true,
"selected": false,
"text": "s01.frostfs.devenv:9090",
"value": "s01.frostfs.devenv:9090"
},