changes yandex

This commit is contained in:
2025-11-28 10:10:32 +03:00
parent dfd88a2eee
commit fb16ef584f

View File

@@ -18,32 +18,45 @@
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": 35, "id": 38,
"links": [], "links": [],
"panels": [ "panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 13,
"panels": [],
"title": "Global",
"type": "row"
},
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prom" "uid": "prom"
}, },
"description": "Количество сообщений в очереди",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [], "mappings": [],
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green" "color": "green",
"value": 0
}, },
{ {
"color": "red", "color": "red",
"value": 80 "value": 80
} }
] ]
} },
"unit": "short"
}, },
"overrides": [] "overrides": []
}, },
@@ -51,12 +64,12 @@
"h": 7, "h": 7,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 0 "y": 1
}, },
"id": 1, "id": 1,
"options": { "options": {
"colorMode": "value", "colorMode": "background",
"graphMode": "area", "graphMode": "none",
"justifyMode": "auto", "justifyMode": "auto",
"orientation": "auto", "orientation": "auto",
"percentChangeColorMode": "standard", "percentChangeColorMode": "standard",
@@ -68,10 +81,14 @@
"values": false "values": false
}, },
"showPercentChange": false, "showPercentChange": false,
"text": {
"titleSize": 15,
"valueSize": 20
},
"textMode": "auto", "textMode": "auto",
"wideLayout": true "wideLayout": true
}, },
"pluginVersion": "11.6.0", "pluginVersion": "12.1.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -140,7 +157,8 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green" "color": "green",
"value": 0
}, },
{ {
"color": "red", "color": "red",
@@ -153,9 +171,203 @@
}, },
"gridPos": { "gridPos": {
"h": 8, "h": 8,
"w": 24, "w": 12,
"x": 0, "x": 0,
"y": 7 "y": 8
},
"id": 7,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.1.0",
"targets": [
{
"disableTextWrap": false,
"editorMode": "builder",
"expr": "queue_messages_oldest_age_milliseconds{queue=~\"$queue\"} / 1000",
"fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "New panel",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "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": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 8
},
"id": 4,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.1.0",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"editorMode": "code",
"expr": "sum by (queue) (\r\n rate(queue_messages_empty_receive_attempts_count_per_second{job=\"integrations/yandex\", queue=~\"$queue\"}[10m])\r\n)",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Empty attempts to read from the queue",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "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": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 16
}, },
"id": 2, "id": 2,
"options": { "options": {
@@ -171,7 +383,7 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.6.0", "pluginVersion": "12.1.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -236,7 +448,8 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green" "color": "green",
"value": 0
}, },
{ {
"color": "red", "color": "red",
@@ -250,8 +463,8 @@
"gridPos": { "gridPos": {
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 12,
"y": 15 "y": 16
}, },
"id": 5, "id": 5,
"options": { "options": {
@@ -267,7 +480,7 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.6.0", "pluginVersion": "12.1.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@@ -284,11 +497,25 @@
"title": "Number of deleted messages", "title": "Number of deleted messages",
"type": "timeseries" "type": "timeseries"
}, },
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 24
},
"id": 11,
"panels": [],
"title": "Errors, fails and etc",
"type": "row"
},
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prom" "uid": "prom"
}, },
"description": "показывает холостые запросы",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@@ -332,7 +559,106 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green" "color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 25
},
"id": 8,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.1.0",
"targets": [
{
"disableTextWrap": false,
"editorMode": "builder",
"expr": "queue_messages_empty_receive_attempts_count_per_second{queue=~\"$queue\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "{{queue}}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Empty receive attempts / sec",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"description": "Таймауты в очередях",
"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": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
}, },
{ {
"color": "red", "color": "red",
@@ -347,9 +673,9 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 15 "y": 25
}, },
"id": 4, "id": 9,
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [],
@@ -363,21 +689,136 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.6.0", "pluginVersion": "12.1.0",
"targets": [ "targets": [
{
"disableTextWrap": false,
"editorMode": "builder",
"expr": "queue_messages_request_timeouts_count_per_second{queue=~\"$queue\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "timeout per {{queue}}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Request timeouts / sec",
"type": "timeseries"
},
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "prom" "uid": "prom"
}, },
"editorMode": "code", "description": "удаленные пользователем или очередь чистится через purge",
"expr": "sum by (queue) (\r\n rate(queue_messages_empty_receive_attempts_count_per_second{job=\"integrations/yandex\", queue=~\"$queue\"}[10m])\r\n)", "fieldConfig": {
"legendFormat": "__auto", "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": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 33
},
"id": 12,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.1.0",
"targets": [
{
"disableTextWrap": false,
"editorMode": "builder",
"expr": "queue_messages_deleted_count_per_second{queue=~\"$queue\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "deleted messages in {{queue}}",
"range": true, "range": true,
"refId": "A" "refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "prom"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "queue_messages_purged_count_per_second{queue=~\"$queue\"}",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "purged messages in {{queue}}",
"range": true,
"refId": "B",
"useBackend": false
} }
], ],
"title": "Empty attempts to read from the queue", "title": "Deleted vs Purged (stacked)",
"type": "timeseries" "type": "timeseries"
} }
], ],
@@ -388,9 +829,7 @@
"list": [ "list": [
{ {
"current": { "current": {
"text": [ "text": "All",
"All"
],
"value": [ "value": [
"$__all" "$__all"
] ]
@@ -419,12 +858,12 @@
] ]
}, },
"time": { "time": {
"from": "now-30m", "from": "now-5m",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},
"timezone": "browser", "timezone": "browser",
"title": "Yandex", "title": "Yandex queues",
"uid": "dentq6r94ui9sa", "uid": "yandex-queue-dashboard-new",
"version": 17 "version": 14
} }