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