This commit is contained in:
Magnus Root 2026-02-27 16:11:53 +03:00
parent cacff8c1aa
commit 94fa9e823f

View file

@ -1010,7 +1010,7 @@
}, },
"overview_uri_top15": { "overview_uri_top15": {
"type": "barchart", "type": "barchart",
"title": "URI от SID ${SID:raw} (top 15)", "title": "URI от SID ${SID:raw} / app_name ${app_name:raw} / status ${response_status_code:raw} (top 15)",
"description": "Топ 15 URI по выбранным SID", "description": "Топ 15 URI по выбранным SID",
"transparent": true, "transparent": true,
"gridPos": { "gridPos": {
@ -1094,14 +1094,14 @@
}, },
"query_mode": "bucket_logs", "query_mode": "bucket_logs",
"query_config": { "query_config": {
"base_query": "log_type:access AND SID:(${SID:lucene})", "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": [ "bucket_aggs": [
{ {
"id": "3", "id": "3",
"settings": { "settings": {
"filters": [ "filters": [
{ {
"label": "${SID:raw}", "label": "SID:${SID:raw} app:${app_name:raw} status:${response_status_code:raw}",
"query": "SID:(${SID:lucene})" "query": "SID:(${SID:lucene})"
} }
] ]
@ -1334,6 +1334,31 @@
"$__all" "$__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"
]
}
} }
] ]
} }