feat: add long time send msg to grafana

pull/2608/head
icey-yu 1 year ago
parent 573dc3120e
commit 2421669ac4

@ -54,7 +54,7 @@
"liveNow": false,
"panels": [
{
"collapsed": true,
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
@ -62,7 +62,10 @@
"y": 0
},
"id": 35,
"panels": [
"panels": [],
"title": "Server",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
@ -115,7 +118,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -220,7 +224,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -355,7 +360,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -477,7 +483,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -595,7 +602,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -745,7 +753,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -776,8 +785,8 @@
},
"gridPos": {
"h": 11,
"w": 6,
"x": 4,
"w": 8,
"x": 0,
"y": 33
},
"id": 42,
@ -807,7 +816,7 @@
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "failed msgs",
"legendFormat": "addr:{{instance}}",
"range": true,
"refId": "A"
}
@ -867,7 +876,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -898,8 +908,8 @@
},
"gridPos": {
"h": 11,
"w": 6,
"x": 14,
"w": 8,
"x": 8,
"y": 33
},
"id": 43,
@ -929,7 +939,7 @@
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "failed addr: {{instance}}",
"legendFormat": "addr: {{instance}}",
"range": true,
"refId": "A"
}
@ -937,6 +947,129 @@
"title": "Seq Set Failed Num",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"description": "This metric represents the number of messages that take a long time to send.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"fieldMinMax": false,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "failed msgs"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "dark-red",
"mode": "fixed",
"seriesBy": "last"
}
}
]
}
]
},
"gridPos": {
"h": 11,
"w": 8,
"x": 16,
"y": 33
},
"id": 60,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"exemplar": false,
"expr": "msg_long_time_push_total",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "addr:{{instance}}",
"range": true,
"refId": "A"
}
],
"title": "Long Time Send Msg Total",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
@ -989,7 +1122,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -1107,7 +1241,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
@ -1172,10 +1307,6 @@
],
"title": "Msg Failed Insert Num",
"type": "timeseries"
}
],
"title": "Server",
"type": "row"
},
{
"collapsed": true,
@ -1183,7 +1314,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 1
"y": 54
},
"id": 22,
"panels": [
@ -1973,7 +2104,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 2
"y": 55
},
"id": 28,
"panels": [
@ -2827,7 +2958,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 3
"y": 56
},
"id": 25,
"panels": [
@ -3377,18 +3508,15 @@
"type": "row"
},
{
"collapsed": false,
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 4
"y": 57
},
"id": 6,
"panels": [],
"title": "Process",
"type": "row"
},
"panels": [
{
"datasource": {
"type": "prometheus",
@ -4062,8 +4190,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -4166,8 +4293,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -4220,6 +4346,10 @@
],
"title": "Resident Memory bytes",
"type": "timeseries"
}
],
"title": "Process",
"type": "row"
},
{
"collapsed": true,
@ -4227,7 +4357,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 49
"y": 58
},
"id": 3,
"panels": [
@ -5441,6 +5571,6 @@
"timezone": "",
"title": "Demo",
"uid": "a506d250-b606-4702-86a7-ac6aa1d069a1",
"version": 23,
"version": 2,
"weekStart": ""
}
Loading…
Cancel
Save