1340 lines
No EOL
32 KiB
JSON
1340 lines
No EOL
32 KiB
JSON
{
|
||
"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": "rps",
|
||
"title_format": "RPS {client}",
|
||
"width": 12,
|
||
"x_offset": 0,
|
||
"y_offset": 1
|
||
},
|
||
{
|
||
"panel_key": "status_codes",
|
||
"title_format": "Status Codes {client}",
|
||
"width": 12,
|
||
"x_offset": 12,
|
||
"y_offset": 1
|
||
}
|
||
],
|
||
"domain_panels": [
|
||
{
|
||
"panel_key": "status_codes",
|
||
"title_suffix": "{sid} Status Codes",
|
||
"width": 12,
|
||
"x_offset": 0,
|
||
"y_offset": 9
|
||
},
|
||
{
|
||
"panel_key": "response_time",
|
||
"title_suffix": "{sid} Response Time",
|
||
"width": 12,
|
||
"x_offset": 12,
|
||
"y_offset": 9
|
||
}
|
||
],
|
||
"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": [
|
||
{
|
||
"panel_key": "traffic_combined_total",
|
||
"title_format": "Total Traffic {client}",
|
||
"condition": {
|
||
"type": "min_domains",
|
||
"value": 2
|
||
}
|
||
}
|
||
],
|
||
"traffic_domain_panels": [
|
||
{
|
||
"panel_key": "traffic_combined",
|
||
"title_format": "{domain} {sid} Traffic"
|
||
}
|
||
]
|
||
},
|
||
"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"
|
||
}
|
||
},
|
||
"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"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"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"
|
||
}
|
||
},
|
||
"traffic_combined": {
|
||
"type": "timeseries",
|
||
"description": "Response and Request Traffic",
|
||
"gridPos": {
|
||
"h": 8,
|
||
"w": 24,
|
||
"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"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"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"
|
||
},
|
||
{
|
||
"id": "3",
|
||
"settings": {
|
||
"filters": [
|
||
{
|
||
"label": "${SID:raw}",
|
||
"query": "SID:(*)"
|
||
}
|
||
]
|
||
},
|
||
"type": "filters"
|
||
},
|
||
{
|
||
"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": "5m",
|
||
"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": 100
|
||
},
|
||
"query_mode": "bucket_logs",
|
||
"query_config": {
|
||
"base_query": "log_type:access",
|
||
"bucket_aggs": [
|
||
{
|
||
"field": "node_name.keyword",
|
||
"id": "3",
|
||
"settings": {
|
||
"min_doc_count": "1",
|
||
"order": "desc",
|
||
"orderBy": "1",
|
||
"size": "0"
|
||
},
|
||
"type": "terms"
|
||
},
|
||
{
|
||
"id": "4",
|
||
"settings": {
|
||
"filters": [
|
||
{
|
||
"label": "${tenant:raw}",
|
||
"query": "TENANT.keyword:${tenant:lucene}"
|
||
}
|
||
]
|
||
},
|
||
"type": "filters"
|
||
},
|
||
{
|
||
"field": "@timestamp",
|
||
"id": "2",
|
||
"settings": {
|
||
"interval": "auto",
|
||
"trimEdges": "1"
|
||
},
|
||
"type": "date_histogram"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"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": "5m",
|
||
"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": "none",
|
||
"tooltip": {
|
||
"hideZeros": false,
|
||
"mode": "single",
|
||
"sort": "none"
|
||
},
|
||
"xTickLabelRotation": 0,
|
||
"xTickLabelSpacing": 100
|
||
},
|
||
"query_mode": "bucket_logs",
|
||
"query_config": {
|
||
"base_query": "log_type:access",
|
||
"bucket_aggs": [
|
||
{
|
||
"id": "3",
|
||
"settings": {
|
||
"filters": [
|
||
{
|
||
"label": "${node_name}",
|
||
"query": "node_name.keyword:(${node_name:lucene})"
|
||
}
|
||
]
|
||
},
|
||
"type": "filters"
|
||
},
|
||
{
|
||
"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"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"overview_uri_top15": {
|
||
"type": "barchart",
|
||
"title": "URI от SID ${SID: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})",
|
||
"bucket_aggs": [
|
||
{
|
||
"id": "3",
|
||
"settings": {
|
||
"filters": [
|
||
{
|
||
"label": "${SID:raw}",
|
||
"query": "SID:(${SID:lucene})"
|
||
}
|
||
]
|
||
},
|
||
"type": "filters"
|
||
},
|
||
{
|
||
"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": 24,
|
||
"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"
|
||
}
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"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"
|
||
]
|
||
}
|
||
}
|
||
]
|
||
}
|
||
} |