{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 42, "links": [], "panels": [ { "datasource": { "type": "loki", "uid": "loki" }, "description": "оставшиеся баланс по провайдеру", "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "mappings": [], "noValue": "There are no TgProvider calls in the selected range", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 12, "w": 6, "x": 0, "y": 0 }, "id": 2, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "/^\\{\\}$/", "values": false }, "showPercentChange": false, "text": {}, "textMode": "value", "wideLayout": true }, "pluginVersion": "12.1.0", "targets": [ { "datasource": { "type": "loki", "uid": "loki" }, "direction": "backward", "editorMode": "code", "expr": "min(\r\n last_over_time(\r\n {cluster=\"yandex-prod\", job=\"prod/backend-sms-service\"}\r\n |= \"TgProvider.send_code.success\"\r\n | json\r\n | unwrap extra_result_remaining_balance\r\n [5m])\r\n)", "queryType": "range", "refId": "A" } ], "title": "Remaining balance TgProvider", "type": "stat" }, { "datasource": { "type": "loki", "uid": "loki" }, "description": "Ошибки TgProvider \n(номер / ошибка / request_id)", "fieldConfig": { "defaults": {}, "overrides": [] }, "gridPos": { "h": 12, "w": 10, "x": 6, "y": 0 }, "id": 6, "options": { "dedupStrategy": "none", "enableInfiniteScrolling": false, "enableLogDetails": true, "prettifyLogMessage": false, "showCommonLabels": false, "showLabels": false, "showTime": false, "sortOrder": "Descending", "wrapLogMessage": false }, "pluginVersion": "12.1.0", "targets": [ { "datasource": { "type": "loki", "uid": "loki" }, "direction": "backward", "editorMode": "code", "expr": "{cluster=\"yandex-prod\", job=\"prod/backend-sms-service\"}\r\n|= \"TgProvider.send_code.error\"\r\n| json\r\n| line_format \"{{.phone}} | {{.error_error}} | req={{.x_request_id}}\"\r\n", "queryType": "range", "refId": "A" } ], "title": "TgProvider errors", "transformations": [ { "id": "organize", "options": { "excludeByName": {}, "includeByName": {}, "indexByName": { "Line": 0, "Time": 2, "id": 5, "labelTypes": 4, "labels": 1, "tsNs": 3 }, "orderByMode": "manual", "renameByName": { "Time": "", "labels": "vvf", "tsNs": "" } } } ], "type": "logs" }, { "datasource": { "type": "loki", "uid": "loki" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "auto", "cellOptions": { "type": "auto" }, "inspect": false }, "mappings": [], "noValue": "No flashcall errors for now", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "Time" }, "properties": [ { "id": "custom.width", "value": 181 } ] } ] }, "gridPos": { "h": 12, "w": 8, "x": 16, "y": 0 }, "id": 3, "options": { "cellHeight": "sm", "footer": { "countRows": false, "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [ { "desc": false, "displayName": "Flashcalls errors" } ] }, "pluginVersion": "12.1.0", "targets": [ { "datasource": { "type": "loki", "uid": "loki" }, "direction": "backward", "editorMode": "code", "expr": "{cluster=\"yandex-prod\", job=\"prod/backend-sms-service\"}\r\n|= \"PlusofonProvider.send_code.raw_response\"\r\n| json\r\n|= \"Flashcall is blocked. Please top up your balance\"\r\n| line_format \"{{.message}} | {{.response_text}} | {{.request_url}}\"", "queryType": "range", "refId": "A" } ], "title": "Flashcall is blocked", "transformations": [ { "id": "organize", "options": { "excludeByName": { "Line": false, "id": true, "labelTypes": true, "labels": true, "tsNs": true }, "includeByName": {}, "indexByName": {}, "renameByName": { "Line": "Flashcalls errors" } } } ], "type": "table" }, { "datasource": { "type": "loki", "uid": "loki" }, "fieldConfig": { "defaults": {}, "overrides": [] }, "gridPos": { "h": 16, "w": 6, "x": 0, "y": 12 }, "id": 1, "options": { "dedupStrategy": "none", "enableInfiniteScrolling": false, "enableLogDetails": true, "prettifyLogMessage": false, "showCommonLabels": false, "showLabels": false, "showTime": false, "sortOrder": "Descending", "wrapLogMessage": false }, "pluginVersion": "12.1.0", "targets": [ { "datasource": { "type": "loki", "uid": "loki" }, "direction": "backward", "editorMode": "code", "expr": "{cluster=\"yandex-prod\", job=\"prod/backend-sms-service\"}\r\n|= \"TgProvider.send_code.success\"\r\n| json\r\n| line_format \"phone={{.phone}} remaining_balance={{.extra_result_remaining_balance}}\"", "queryType": "range", "refId": "A" } ], "title": "Users of TgProvider", "type": "logs" }, { "datasource": { "type": "loki", "uid": "loki" }, "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", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 18, "x": 6, "y": 12 }, "id": 5, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "datasource": { "type": "loki", "uid": "loki" }, "direction": "backward", "editorMode": "code", "expr": "sum by (method, requested_method) (\r\n count_over_time(\r\n {cluster=\"yandex-prod\", job=\"prod/backend-sms-service\"}\r\n |= \"AuthService.send_auth_code.method\"\r\n | json\r\n [5m])\r\n)\r\n", "legendFormat": "{{method}}:{{requested_method}}", "queryType": "range", "refId": "A" } ], "title": "AuthService.send_auth_code.method", "type": "timeseries" }, { "datasource": { "type": "loki", "uid": "loki" }, "description": "Проценты успешных завершений у \nAuthService.send_auth_code\n(finish / start)", "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 } ] }, "unit": "percent" }, "overrides": [ { "__systemRef": "hideSeriesFrom", "matcher": { "id": "byNames", "options": { "mode": "exclude", "names": [ "C" ], "prefix": "All except:", "readOnly": true } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": false, "tooltip": false, "viz": true } } ] } ] }, "gridPos": { "h": 8, "w": 10, "x": 6, "y": 20 }, "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": "loki", "uid": "loki" }, "direction": "backward", "editorMode": "code", "expr": "sum by () (\r\n count_over_time(\r\n {cluster=\"yandex-prod\", job=\"prod/backend-sms-service\"}\r\n |= \"AuthService.send_auth_code.start\"\r\n [1m])\r\n)", "hide": true, "queryType": "range", "refId": "A" }, { "datasource": { "type": "loki", "uid": "loki" }, "direction": "backward", "editorMode": "code", "expr": "sum by () (\r\n count_over_time(\r\n {cluster=\"yandex-prod\", job=\"prod/backend-sms-service\"}\r\n |= \"AuthService.send_auth_code.finish\"\r\n [1m])\r\n)", "hide": true, "queryType": "range", "refId": "B" }, { "datasource": { "name": "Expression", "type": "__expr__", "uid": "__expr__" }, "expression": "$B / $A * 100", "hide": false, "refId": "C", "type": "math" } ], "title": "Succes AuthService.send_auth_code ( in Percent)", "type": "timeseries" }, { "datasource": { "type": "loki", "uid": "loki" }, "description": "полная динамика начала/конца AuthService.send_auth_code", "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": 8, "x": 16, "y": 20 }, "id": 8, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "datasource": { "type": "loki", "uid": "loki" }, "direction": "backward", "editorMode": "code", "expr": "sum by () (\r\n count_over_time(\r\n {cluster=\"yandex-prod\", job=\"prod/backend-sms-service\"}\r\n |= \"AuthService.send_auth_code.start\"\r\n [1m])\r\n)", "legendFormat": "send_auth_code.start\"", "queryType": "range", "refId": "A" }, { "datasource": { "type": "loki", "uid": "loki" }, "direction": "backward", "editorMode": "code", "expr": "sum by () (\r\n count_over_time(\r\n {cluster=\"yandex-prod\", job=\"prod/backend-sms-service\"}\r\n |= \"AuthService.send_auth_code.finish\"\r\n [1m])\r\n)", "hide": false, "legendFormat": "send_auth_code.finish", "queryType": "range", "refId": "B" } ], "title": "AuthService.send_auth_code (real dynamic)", "type": "timeseries" } ], "preload": false, "schemaVersion": 41, "tags": [], "templating": { "list": [] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Auth-dashboard", "uid": "8c0c0b3b-46fe-472c-9e07-af507f2bcba5", "version": 2 }