From 331d55b6ff7f43d047f8eb8cf1594c7fb7b37e3f Mon Sep 17 00:00:00 2001 From: Magnus Root Date: Mon, 16 Mar 2026 17:44:09 +0300 Subject: [PATCH] Added error --- dashboard_template.json | 386 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 372 insertions(+), 14 deletions(-) diff --git a/dashboard_template.json b/dashboard_template.json index 10b61f1..6e64bb8 100644 --- a/dashboard_template.json +++ b/dashboard_template.json @@ -131,7 +131,28 @@ } ], "inter_domain_panels": [], - "traffic_domain_panels": [] + "traffic_domain_panels": [], + "error_panels": [ + { + "panel_key": "error_by_host", + "width": 24, + "x_offset": 0, + "title_format": "Errors by Host" + }, + { + "panel_key": "error_by_path", + "width": 24, + "x_offset": 0, + "title_format": "Errors by Upstream Path" + }, + { + "panel_key": "error_by_node", + "width": 24, + "x_offset": 0, + "title_format": "Errors by Node" + } + ], + "error_row_title": "Errors" }, "panels": { "row": { @@ -203,7 +224,8 @@ "alias": "{client_title} Total RPS", "expression": "$A / 60", "expression_ref_id": "RPS" - } + }, + "vl_interval": "1m" }, "status_codes": { "type": "timeseries", @@ -326,7 +348,8 @@ "ref_id": "D" } ] - } + }, + "vl_interval": "1m" }, "response_time": { "type": "timeseries", @@ -405,7 +428,8 @@ } ], "range_field": "upstream_response_time_digital" - } + }, + "vl_interval": "1m" }, "traffic_combined": { "type": "timeseries", @@ -495,7 +519,8 @@ "expression_ref_id": "RequestTraffic" } ] - } + }, + "vl_interval": "1m" }, "traffic": { "type": "timeseries", @@ -780,7 +805,7 @@ "x": 0, "y": 13 }, - "interval": "5m", + "interval": "2m", "fieldConfig": { "defaults": { "color": { @@ -842,14 +867,14 @@ }, "orientation": "vertical", "showValue": "auto", - "stacking": "none", + "stacking": "normal", "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" }, "xTickLabelRotation": 0, - "xTickLabelSpacing": 100 + "xTickLabelSpacing": 0 }, "query_mode": "bucket_logs", "query_config": { @@ -877,7 +902,8 @@ } ], "vl_base_query": "log_type:access TENANT:in(${tenant:csv})" - } + }, + "vl_interval": "2m" }, "overview_tenant_per_node": { "type": "barchart", @@ -889,7 +915,7 @@ "x": 0, "y": 23 }, - "interval": "5m", + "interval": "2m", "fieldConfig": { "defaults": { "color": { @@ -949,14 +975,14 @@ }, "orientation": "vertical", "showValue": "auto", - "stacking": "none", + "stacking": "normal", "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" }, "xTickLabelRotation": 0, - "xTickLabelSpacing": 100 + "xTickLabelSpacing": 0 }, "query_mode": "bucket_logs", "query_config": { @@ -1185,7 +1211,8 @@ "expression_ref_id": "RequestTrafficTotal" } ] - } + }, + "vl_interval": "1m" }, "rps_multi": { "type": "timeseries", @@ -1242,7 +1269,338 @@ "query_config": { "expression": "$A / 60", "expression_ref_id": "RPS_Total" - } + }, + "vl_interval": "1m" + }, + "error_by_host": { + "type": "barchart", + "title": "Errors by Host", + "description": "Количество ошибок по error_host", + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 0 + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": true, + "axisLabel": "", + "axisPlacement": "auto", + "fillOpacity": 80, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineWidth": 2, + "scaleDistribution": { + "type": "linear" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + } + }, + "overrides": [] + }, + "options": { + "barRadius": 0.1, + "barWidth": 0.88, + "fullHighlight": true, + "groupWidth": 0.9, + "legend": { + "calcs": [ + "min", + "max", + "sum", + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Name", + "sortDesc": true + }, + "orientation": "vertical", + "showValue": "auto", + "stacking": "none", + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + }, + "xTickLabelRotation": 0, + "xTickLabelSpacing": 0 + }, + "query_mode": "bucket_logs", + "query_config": { + "vl_base_query": "log_type:angie-error-PTAF SID:~\"${SID:pipe}\"", + "base_query": "log_type:angie-error-PTAF AND SID:${SID:lucene}", + "bucket_aggs": [ + { + "field": "error_host", + "id": "4", + "settings": { + "min_doc_count": "1", + "order": "desc", + "orderBy": "1", + "size": "20" + }, + "type": "terms" + }, + { + "field": "@timestamp", + "id": "2", + "settings": { + "interval": "auto", + "trimEdges": "1" + }, + "type": "date_histogram" + } + ] + }, + "vl_interval": "1m", + "interval": "1m" + }, + "error_by_path": { + "type": "barchart", + "title": "Errors by Upstream Path", + "description": "Количество ошибок по error_upstream_path", + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 0 + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": true, + "axisLabel": "", + "axisPlacement": "auto", + "fillOpacity": 80, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineWidth": 2, + "scaleDistribution": { + "type": "linear" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + } + }, + "overrides": [] + }, + "options": { + "barRadius": 0.1, + "barWidth": 0.88, + "fullHighlight": true, + "groupWidth": 0.9, + "legend": { + "calcs": [ + "min", + "max", + "sum", + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Name", + "sortDesc": true + }, + "orientation": "vertical", + "showValue": "auto", + "stacking": "none", + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + }, + "xTickLabelRotation": 0, + "xTickLabelSpacing": 0 + }, + "query_mode": "bucket_logs", + "query_config": { + "vl_base_query": "log_type:angie-error-PTAF SID:~\"${SID:pipe}\"", + "base_query": "log_type:angie-error-PTAF AND SID:${SID:lucene}", + "bucket_aggs": [ + { + "field": "error_upstream_path", + "id": "4", + "settings": { + "min_doc_count": "1", + "order": "desc", + "orderBy": "1", + "size": "20" + }, + "type": "terms" + }, + { + "field": "@timestamp", + "id": "2", + "settings": { + "interval": "auto", + "trimEdges": "1" + }, + "type": "date_histogram" + } + ] + }, + "vl_interval": "1m", + "interval": "1m" + }, + "error_by_node": { + "type": "barchart", + "title": "Errors by Node", + "description": "Количество ошибок по node_name", + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 0 + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": true, + "axisLabel": "", + "axisPlacement": "auto", + "fillOpacity": 80, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineWidth": 2, + "scaleDistribution": { + "type": "linear" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + } + ] + } + }, + "overrides": [] + }, + "options": { + "barRadius": 0.1, + "barWidth": 0.88, + "fullHighlight": true, + "groupWidth": 0.9, + "legend": { + "calcs": [ + "min", + "max", + "sum", + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Name", + "sortDesc": true + }, + "orientation": "vertical", + "showValue": "auto", + "stacking": "none", + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + }, + "xTickLabelRotation": 0, + "xTickLabelSpacing": 0 + }, + "query_mode": "bucket_logs", + "query_config": { + "vl_base_query": "log_type:angie-error-PTAF SID:~\"${SID:pipe}\"", + "base_query": "log_type:angie-error-PTAF AND SID:${SID:lucene}", + "bucket_aggs": [ + { + "field": "node_name", + "id": "4", + "settings": { + "min_doc_count": "1", + "order": "desc", + "orderBy": "1", + "size": "20" + }, + "type": "terms" + }, + { + "field": "@timestamp", + "id": "2", + "settings": { + "interval": "auto", + "trimEdges": "1" + }, + "type": "date_histogram" + } + ] + }, + "vl_interval": "1m", + "interval": "1m" } }, "queries": {