diff --git a/dashboard_template.json b/dashboard_template.json index 22a9c51..dbbc2d0 100644 --- a/dashboard_template.json +++ b/dashboard_template.json @@ -161,6 +161,12 @@ "width": 24, "x_offset": 0, "title_format": "Errors by Node" + }, + { + "panel_key": "angie_rps_by_node", + "width": 24, + "x_offset": 0, + "title_format": "Angie RPS by Node" } ], "error_row_title": "Angie" @@ -1989,6 +1995,64 @@ }, "vl_interval": "1m", "title": "Nginx vs Angie Status Codes SID: ${SID:raw} / app: ${app_name:raw}" + }, + "angie_rps_by_node": { + "type": "timeseries", + "title": "Angie RPS by Node", + "description": "RPS запросов через Angie по нодам (log_type:angie-access-PTAF)", + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 0 + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "lineWidth": 1, + "fillOpacity": 0, + "spanNulls": 180000, + "showPoints": "never" + }, + "unit": "reqps" + } + }, + "options": { + "tooltip": { + "mode": "multi", + "sort": "desc" + }, + "legend": { + "displayMode": "table", + "placement": "right", + "calcs": [ + "mean", + "max" + ] + } + }, + "query_mode": "bucket_logs", + "vl_interval": "1m", + "query_config": { + "base_query": "log_type:angie-access-PTAF AND SID:${SID:lucene}", + "vl_base_query": "log_type:angie-access-PTAF", + "terms_field": "node_name", + "metric": "count", + "vl_metric": "rps" + }, + "timeShift": "1m", + "transformations": [ + { + "id": "renameByRegex", + "options": { + "regex": ".*node_name=\"([^\"]+)\".*", + "renamePattern": "$1" + } + } + ] } }, "queries": {