{ "version": "3.1.0", "description": "Data-driven template - panels fully describe their query logic", "datasource": { "type": "grafana-opensearch-datasource", "uid": "af84zsvlp9blsa" }, "dashboard_meta": { "uid": "pt-af-requests-auto", "tags": [ "auto-generated", "waf-monitoring" ], "version": 0 }, "dashboard": { "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, "links": [], "schemaVersion": 39, "timezone": "browser", "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "weekStart": "" }, "layout": { "use_collapsed_rows": true, "tenant_panels": [ { "panel_key": "status_codes", "title_format": "Status Codes {client}", "width": 8, "x_offset": 0 }, { "panel_key": "rps", "title_format": "RPS {client}", "condition": { "type": "max_domains", "value": 1 }, "width": 8, "x_offset": 8 }, { "panel_key": "rps_multi", "title_format": "RPS {client}", "condition": { "type": "min_domains", "value": 2 }, "width": 8, "x_offset": 8 }, { "panel_key": "traffic_combined_total", "title_format": "Total Traffic {client}", "condition": { "type": "min_domains", "value": 1 }, "width": 8, "x_offset": 16 } ], "domain_panels": [ { "panel_key": "status_codes", "title_suffix": "{sid} Status Codes", "width": 8, "x_offset": 0 }, { "panel_key": "response_time", "title_suffix": "{sid} Response Time", "width": 8, "x_offset": 8 }, { "panel_key": "traffic_combined", "title_format": "{domain} {sid} Traffic", "width": 8, "x_offset": 16 } ], "overview_row_title": "Обзор", "overview_panels": [ { "panel_key": "overview_status_codes", "width": 24, "x_offset": 0, "y_offset": 1 }, { "panel_key": "overview_tenant_per_nodes", "width": 24, "x_offset": 0, "y_offset": 13 }, { "panel_key": "overview_tenant_per_node", "width": 24, "x_offset": 0, "y_offset": 23 }, { "panel_key": "overview_uri_top15", "width": 24, "x_offset": 0, "y_offset": 34 } ], "inter_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": { "type": "row", "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "panels": [] }, "rps": { "type": "timeseries", "description": "Requests per second", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 1 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 1, "showPoints": "never", "thresholdsStyle": { "mode": "line" } }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "dark-red", "value": 1800 } ] } } }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single" } }, "query_mode": "rps", "query_config": { "base_query": "SID:({sids})", "metric": "count", "alias": "{client_title} Total RPS", "expression": "$A / 60", "expression_ref_id": "RPS" }, "vl_interval": "1m" }, "status_codes": { "type": "timeseries", "description": "HTTP status codes", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 1 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "drawStyle": "line", "fillOpacity": 10, "lineInterpolation": "smooth", "lineWidth": 1, "showPoints": "never" } }, "overrides": [ { "matcher": { "id": "byName", "options": "2**" }, "properties": [ { "id": "color", "value": { "fixedColor": "green", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "3**" }, "properties": [ { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "4**" }, "properties": [ { "id": "color", "value": { "fixedColor": "yellow", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "5**" }, "properties": [ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } } ] } ] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single" } }, "query_mode": "multi_target", "query_config": { "base_query": "SID:{sid}", "metric": "count", "targets": [ { "alias": "2**", "query_suffix": "AND response_status_code:[200 TO 299]", "ref_id": "A" }, { "alias": "3**", "query_suffix": "AND response_status_code:[300 TO 399]", "ref_id": "B" }, { "alias": "4**", "query_suffix": "AND response_status_code:[400 TO 499]", "ref_id": "C" }, { "alias": "5**", "query_suffix": "AND response_status_code:[500 TO 599]", "ref_id": "D" } ] }, "vl_interval": "1m" }, "response_time": { "type": "timeseries", "description": "Response time distribution", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 1 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "drawStyle": "line", "fillOpacity": 30, "lineWidth": 0, "showPoints": "never", "stacking": { "mode": "normal" } }, "max": 100, "min": 0, "unit": "percent" } }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single" } }, "query_mode": "range_percent", "query_config": { "base_query": "SID:{sid}", "field_filter": "upstream_response_time_digital:[0 TO *]", "metric": "count", "total_ref_id": "F", "ranges": [ { "label": "0-0.3s", "from": "0", "to": "0.3", "ref_id": "A" }, { "label": "0.3-1s", "from": "0.3", "to": "1", "ref_id": "B" }, { "label": "1-3s", "from": "1", "to": "3", "ref_id": "C" }, { "label": "3-10s", "from": "3", "to": "10", "ref_id": "D" }, { "label": "10s+", "from": "10", "to": "*", "ref_id": "E" } ], "range_field": "upstream_response_time_digital" }, "vl_interval": "1m" }, "traffic_combined": { "type": "timeseries", "description": "Response and Request Traffic", "gridPos": { "h": 8, "w": 8, "x": 0, "y": 17 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "drawStyle": "line", "fillOpacity": 10, "lineInterpolation": "smooth", "lineWidth": 1, "showPoints": "never", "spanNulls": 180000 }, "unit": "Kbits" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/.*Response.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "green", "mode": "fixed" } } ] }, { "matcher": { "id": "byRegexp", "options": "/.*Request.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } } ] } ] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single" } }, "query_mode": "multi_sum_expression", "query_config": { "base_query": "SID:{sid}", "targets": [ { "alias": "Response Traffic", "metric": "sum", "field": "upstream_response_length_digital", "ref_id": "A", "expression": "$A * 8 / 1000 / 60", "expression_ref_id": "ResponseTraffic" }, { "alias": "Request Traffic", "metric": "sum", "field": "upstream_bytes_sent_digital", "ref_id": "B", "expression": "$B * 8 / 1000 / 60", "expression_ref_id": "RequestTraffic" } ] }, "vl_interval": "1m" }, "traffic": { "type": "timeseries", "description": "Traffic", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 9 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "drawStyle": "line", "fillOpacity": 10, "lineInterpolation": "smooth", "lineWidth": 1, "showPoints": "never", "spanNulls": 180000 }, "unit": "Kbits" } }, "query_mode": "sum_expression", "query_config": { "base_query": "SID:{sid}", "metric": "sum", "field": "upstream_response_length_digital", "ref_id": "A", "expression": "($A * 8 / 1000 / 60)", "expression_ref_id": "Traffic" } }, "status_codes_barchart": { "type": "barchart", "description": "Status codes distribution", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 9 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" } } }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true } }, "query_mode": "bucket_logs", "query_config": { "base_query": "log_type:access AND SID:{sid}", "metric": "count", "bucket_aggs": [ { "field": "response_status_code", "id": "3", "settings": { "min_doc_count": "1", "order": "desc", "orderBy": "_count", "size": "10" }, "type": "terms" }, { "field": "@timestamp", "id": "2", "settings": { "interval": "1m", "trimEdges": "1" }, "type": "date_histogram" } ] } }, "overview_status_codes": { "type": "barchart", "title": "response_status_code SID: ${SID:raw}", "description": "Коды ответов по выбранным SID за период", "transparent": true, "gridPos": { "h": 12, "w": 24, "x": 0, "y": 1 }, "interval": "1m", "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": 1, "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/^2\\d\\d.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "green", "mode": "fixed" } } ] }, { "matcher": { "id": "byRegexp", "options": "/^3\\d\\d.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } } ] }, { "matcher": { "id": "byRegexp", "options": "/^4\\d\\d.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "orange", "mode": "fixed" } } ] }, { "matcher": { "id": "byRegexp", "options": "/^499.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "dark-orange", "mode": "fixed" } } ] }, { "matcher": { "id": "byRegexp", "options": "/^5\\d\\d.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } } ] } ] }, "options": { "barRadius": 0.1, "barWidth": 0.8, "fullHighlight": false, "groupWidth": 0.7, "legend": { "calcs": [ "mean", "max", "sum" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Name", "sortDesc": true }, "orientation": "auto", "showValue": "auto", "stacking": "normal", "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" }, "xTickLabelRotation": 0, "xTickLabelSpacing": 100 }, "query_mode": "bucket_logs", "query_config": { "base_query": "log_type:access AND SID:${SID:lucene} AND response_status_code:${response_status_code:lucene}", "bucket_aggs": [ { "field": "response_status_code", "id": "4", "settings": { "min_doc_count": "1", "order": "desc", "orderBy": "1", "size": "0" }, "type": "terms" }, { "field": "@timestamp", "id": "2", "settings": { "interval": "auto", "trimEdges": "1" }, "type": "date_histogram" } ] } }, "overview_tenant_per_nodes": { "type": "barchart", "title": "Request Count by TENANT (${tenant:raw}) per nodes", "description": "Количество запросов по каждому тенанту для каждой фильтрующей ноды", "gridPos": { "h": 10, "w": 24, "x": 0, "y": 13 }, "interval": "2m", "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": "normal", "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" }, "xTickLabelRotation": 0, "xTickLabelSpacing": 0 }, "query_mode": "bucket_logs", "query_config": { "base_query": "log_type:access AND TENANT:${tenant:lucene}", "bucket_aggs": [ { "field": "node_name.keyword", "id": "3", "settings": { "min_doc_count": "1", "order": "desc", "orderBy": "1", "size": "0" }, "type": "terms" }, { "field": "@timestamp", "id": "2", "settings": { "interval": "auto", "trimEdges": "1" }, "type": "date_histogram" } ], "vl_base_query": "log_type:access TENANT:in(${tenant:csv})" }, "vl_interval": "2m" }, "overview_tenant_per_node": { "type": "barchart", "title": "Request Count by TENANT per node ${node_name:raw}", "description": "Количество запросов по тенантам с разбивкой по выбранной ноде", "gridPos": { "h": 11, "w": 24, "x": 0, "y": 23 }, "interval": "2m", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "fillOpacity": 80, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineWidth": 4, "scaleDistribution": { "log": 2, "type": "log" }, "thresholdsStyle": { "mode": "off" } }, "fieldMinMax": false, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 } ] } }, "overrides": [] }, "options": { "barRadius": 0.5, "barWidth": 0.9, "fullHighlight": true, "groupWidth": 0.9, "legend": { "calcs": [ "min", "max", "sum", "mean" ], "displayMode": "table", "placement": "right", "showLegend": true }, "orientation": "vertical", "showValue": "auto", "stacking": "normal", "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" }, "xTickLabelRotation": 0, "xTickLabelSpacing": 0 }, "query_mode": "bucket_logs", "query_config": { "base_query": "log_type:access AND node_name:${node_name:lucene}", "bucket_aggs": [ { "field": "TENANT.keyword", "id": "4", "settings": { "min_doc_count": "1", "order": "desc", "orderBy": "_term", "size": "0" }, "type": "terms" }, { "field": "@timestamp", "id": "2", "settings": { "interval": "auto", "offset": "0" }, "type": "date_histogram" } ], "vl_base_query": "log_type:access node_name:in(${node_name:csv})" } }, "overview_uri_top15": { "type": "barchart", "title": "URI от SID ${SID:raw} / app_name ${app_name:raw} / status ${response_status_code:raw} (top 15)", "description": "Топ 15 URI по выбранным SID", "transparent": true, "gridPos": { "h": 12, "w": 24, "x": 0, "y": 34 }, "interval": "1m", "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": 1, "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "options": { "barRadius": 0.1, "barWidth": 0.9, "fullHighlight": false, "groupWidth": 0.7, "legend": { "calcs": [ "mean", "max", "sum" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Total", "sortDesc": true }, "orientation": "auto", "showValue": "auto", "stacking": "normal", "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" }, "xTickLabelRotation": 0, "xTickLabelSpacing": 100 }, "query_mode": "bucket_logs", "query_config": { "base_query": "log_type:access AND SID:(${SID:lucene}) AND app_name:${app_name:lucene} AND response_status_code:${response_status_code:lucene}", "bucket_aggs": [ { "field": "uri.keyword", "id": "4", "settings": { "min_doc_count": "1", "order": "desc", "orderBy": "1", "size": "15" }, "type": "terms" }, { "field": "@timestamp", "id": "2", "settings": { "interval": "auto", "trimEdges": "1" }, "type": "date_histogram" } ] } }, "traffic_combined_total": { "type": "timeseries", "description": "Total Response and Request Traffic (all resources)", "gridPos": { "h": 8, "w": 8, "x": 0, "y": 17 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "drawStyle": "line", "fillOpacity": 10, "lineInterpolation": "smooth", "lineWidth": 1, "showPoints": "never", "spanNulls": 180000 }, "unit": "Kbits" }, "overrides": [ { "matcher": { "id": "byRegexp", "options": "/.*Response.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "green", "mode": "fixed" } } ] }, { "matcher": { "id": "byRegexp", "options": "/.*Request.*/" }, "properties": [ { "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } } ] } ] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single" } }, "query_mode": "multi_sum_expression", "query_config": { "base_query": "SID:{sid}", "targets": [ { "alias": "Response Traffic", "metric": "sum", "field": "upstream_response_length_digital", "ref_id": "A", "expression": "$A * 8 / 1000 / 60", "expression_ref_id": "ResponseTrafficTotal" }, { "alias": "Request Traffic", "metric": "sum", "field": "upstream_bytes_sent_digital", "ref_id": "B", "expression": "$B * 8 / 1000 / 60", "expression_ref_id": "RequestTrafficTotal" } ] }, "vl_interval": "1m" }, "rps_multi": { "type": "timeseries", "description": "Requests per second", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 1 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "opacity", "lineInterpolation": "smooth", "lineWidth": 1, "showPoints": "never", "thresholdsStyle": { "mode": "line" } }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "dark-red", "value": 1800 } ] } } }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single" } }, "query_mode": "rps_multi", "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": { "bucket_agg": { "field": "@timestamp", "id": "2", "settings": { "interval": "1m", "trimEdges": "1" }, "type": "date_histogram" } }, "templating": { "list": [ { "name": "tenant", "label": "tenant", "description": "Тенант — все ресурсы клиента", "type": "query", "datasource": { "type": "grafana-opensearch-datasource", "uid": "af84zsvlp9blsa" }, "definition": "{\"find\": \"terms\", \"field\": \"TENANT.keyword\"}", "query": "{\"find\": \"terms\", \"field\": \"TENANT.keyword\"}", "refresh": 1, "includeAll": true, "multi": true, "allValue": "*", "sort": 1, "regex": "", "allowCustomValue": false, "current": { "text": "All", "value": [ "$__all" ] } }, { "name": "SID", "label": "SID", "description": "ID ресурса клиента", "type": "query", "datasource": { "type": "grafana-opensearch-datasource", "uid": "af84zsvlp9blsa" }, "definition": "{\"find\": \"terms\", \"field\": \"SID\"}", "query": "{\"find\": \"terms\", \"field\": \"SID\"}", "refresh": 1, "includeAll": true, "multi": true, "allValue": "*", "sort": 1, "regex": "", "allowCustomValue": false, "current": { "text": "All", "value": [ "$__all" ] } }, { "name": "node_name", "label": "node_name", "description": "hostname фильтрующей ноды", "type": "query", "datasource": { "type": "grafana-opensearch-datasource", "uid": "af84zsvlp9blsa" }, "definition": "{\"find\": \"terms\", \"field\": \"node_name.keyword\"}", "query": "{\"find\": \"terms\", \"field\": \"node_name.keyword\"}", "refresh": 1, "includeAll": true, "multi": true, "allValue": "*", "sort": 1, "regex": "", "allowCustomValue": false, "current": { "text": "All", "value": [ "$__all" ] } }, { "name": "response_status_code", "label": "Status Code", "description": "Конкретный код ответа", "type": "query", "datasource": { "type": "grafana-opensearch-datasource", "uid": "af84zsvlp9blsa" }, "definition": "{\"find\": \"terms\", \"field\": \"response_status_code\"}", "query": "{\"find\": \"terms\", \"field\": \"response_status_code\"}", "refresh": 1, "includeAll": true, "multi": true, "allValue": "*", "sort": 1, "regex": "", "allowCustomValue": false, "current": { "text": "All", "value": [ "$__all" ] } }, { "name": "app_name", "label": "App Name", "description": "Приложение (app_name)", "type": "query", "datasource": { "type": "grafana-opensearch-datasource", "uid": "af84zsvlp9blsa" }, "definition": "{\"find\": \"terms\", \"field\": \"app_name.keyword\"}", "query": "{\"find\": \"terms\", \"field\": \"app_name.keyword\"}", "refresh": 1, "includeAll": true, "multi": true, "allValue": "*", "sort": 1, "regex": "", "allowCustomValue": false, "current": { "text": "All", "value": [ "$__all" ] } } ] } }