代码拉取完成,页面将自动刷新
{
"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,
"id": 1,
"links": [],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 10,
"panels": [],
"title": "数据汇总",
"type": "row"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 4,
"x": 0,
"y": 1
},
"id": 8,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "value"
},
"pluginVersion": "10.0.2",
"targets": [
{
"alias": "",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "access_status:$status",
"refId": "A",
"timeField": "@timestamp"
}
],
"title": "请求总数(最近$interval)",
"type": "stat"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 4,
"x": 4,
"y": 1
},
"id": 14,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "value"
},
"pluginVersion": "10.0.2",
"targets": [
{
"alias": "",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "request_method: GET AND access_status:$status",
"refId": "A",
"timeField": "@timestamp"
}
],
"title": "GET请求总数(最近$interval)",
"type": "stat"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 4,
"x": 8,
"y": 1
},
"id": 12,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "value"
},
"pluginVersion": "10.0.2",
"targets": [
{
"alias": "",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"field": "remote_address",
"id": "1",
"type": "cardinality"
}
],
"query": "access_status:$status",
"refId": "A",
"timeField": "@timestamp"
}
],
"title": "请求IP数(最近$interval)",
"type": "stat"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 1000
},
{
"color": "red",
"value": 2000
}
]
},
"unit": "ms"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 4,
"x": 12,
"y": 1
},
"id": 3,
"options": {
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "10.0.2",
"targets": [
{
"alias": "",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"field": "request_time",
"id": "1",
"type": "avg"
}
],
"query": "access_status:$status",
"refId": "A",
"timeField": "@timestamp"
}
],
"title": "平均请求时长(最近$interval)",
"type": "gauge"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 4,
"x": 16,
"y": 1
},
"id": 13,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.0.2",
"targets": [
{
"alias": "",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "access_status:400 or access_status:403 or access_status:404",
"refId": "A",
"timeField": "@timestamp"
}
],
"title": "4XX错误码数量(最近$interval)",
"type": "stat"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 4,
"x": 20,
"y": 1
},
"id": 1,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.0.2",
"targets": [
{
"alias": "",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "access_status:500 or access_status:502 or access_status:503",
"refId": "A",
"timeField": "@timestamp"
}
],
"title": "5XX错误码数量(最近$interval)",
"type": "stat"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 8
},
"id": 15,
"panels": [],
"title": "访问趋势",
"type": "row"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"description": "这是描述信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "数值",
"axisPlacement": "left",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 21,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 1,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 9
},
"id": 2,
"options": {
"legend": {
"calcs": [
"max",
"min",
"mean"
],
"displayMode": "table",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"alias": "访问量",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "access_status:\"$status\"",
"refId": "A",
"timeField": "@timestamp"
},
{
"alias": "访问IP",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"hide": false,
"metrics": [
{
"field": "remote_address",
"id": "1",
"type": "cardinality"
}
],
"query": "access_status:\"$status\"",
"refId": "B",
"timeField": "@timestamp"
}
],
"title": "访问量与访问IP",
"type": "timeseries"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 4,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "ms"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 9
},
"id": 11,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"alias": "平均请求时长",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"field": "request_time",
"id": "1",
"type": "avg"
}
],
"query": "access_status:$status",
"refId": "A",
"timeField": "@timestamp"
}
],
"title": "请求时长",
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 17
},
"id": 16,
"panels": [],
"title": "请求数据分析",
"type": "row"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": []
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 8,
"x": 0,
"y": 18
},
"id": 17,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"alias": "Windows",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "http_user_agent: Windows",
"refId": "A",
"timeField": "@timestamp"
},
{
"alias": "Mac",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"hide": false,
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "http_user_agent: Mac",
"refId": "B",
"timeField": "@timestamp"
},
{
"alias": "Android",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"hide": false,
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "http_user_agent: Android",
"refId": "C",
"timeField": "@timestamp"
},
{
"alias": "iPhone",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"hide": false,
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "http_user_agent: iPhone",
"refId": "D",
"timeField": "@timestamp"
},
{
"alias": "Linux",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"hide": false,
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "http_user_agent: Linux x86_64",
"refId": "E",
"timeField": "@timestamp"
}
],
"title": "访客设备",
"type": "piechart"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": []
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 8,
"x": 8,
"y": 18
},
"id": 18,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"alias": "Chrome",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "http_user_agent: Chrome ",
"refId": "A",
"timeField": "@timestamp"
},
{
"alias": "Safari ",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"hide": false,
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "http_user_agent: Safari ",
"refId": "B",
"timeField": "@timestamp"
},
{
"alias": "Firefox",
"bucketAggs": [
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"hide": false,
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "http_user_agent: Firefox ",
"refId": "C",
"timeField": "@timestamp"
}
],
"title": "访客浏览器",
"type": "piechart"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": []
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 8,
"x": 16,
"y": 18
},
"id": 5,
"options": {
"displayLabels": [
"value"
],
"legend": {
"displayMode": "list",
"placement": "right",
"showLegend": true,
"values": [
"value",
"percent"
]
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"alias": "",
"bucketAggs": [
{
"field": "request_method",
"id": "3",
"settings": {
"min_doc_count": "1",
"order": "desc",
"orderBy": "_term",
"size": "10"
},
"type": "terms"
},
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "access_status:$status",
"refId": "A",
"timeField": "@timestamp"
}
],
"title": "请求方式占比",
"type": "piechart"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-GrYlRd"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 26
},
"id": 4,
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "vertical",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": false,
"valueMode": "color"
},
"pluginVersion": "10.0.2",
"targets": [
{
"alias": "",
"bucketAggs": [
{
"field": "access_status",
"id": "3",
"settings": {
"min_doc_count": "1",
"order": "desc",
"orderBy": "1",
"size": "10"
},
"type": "terms"
},
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "",
"refId": "A",
"timeField": "@timestamp"
}
],
"title": "返回状态码",
"type": "bargauge"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 26
},
"id": 6,
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true,
"valueMode": "color"
},
"pluginVersion": "10.0.2",
"targets": [
{
"alias": "",
"bucketAggs": [
{
"field": "request_uri",
"id": "3",
"settings": {
"min_doc_count": "1",
"order": "desc",
"orderBy": "_term",
"size": "10"
},
"type": "terms"
},
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "",
"refId": "A",
"timeField": "@timestamp"
}
],
"title": "请求地址",
"type": "bargauge"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"scaleDistribution": {
"type": "linear"
}
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 34
},
"id": 7,
"options": {
"calculate": false,
"cellGap": 2,
"color": {
"exponent": 0.5,
"fill": "dark-orange",
"mode": "scheme",
"reverse": false,
"scale": "exponential",
"scheme": "RdYlGn",
"steps": 64
},
"exemplars": {
"color": "rgba(255,0,255,0.7)"
},
"filterValues": {
"le": 1e-9
},
"legend": {
"show": true
},
"rowsFrame": {
"layout": "auto"
},
"tooltip": {
"show": true,
"yHistogram": false
},
"yAxis": {
"axisPlacement": "left",
"reverse": false
}
},
"pluginVersion": "10.0.2",
"targets": [
{
"alias": "",
"bucketAggs": [
{
"field": "server_name.keyword",
"id": "3",
"settings": {
"min_doc_count": "1",
"order": "desc",
"orderBy": "_term",
"size": "10"
},
"type": "terms"
},
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval",
"min_doc_count": "0",
"timeZone": "utc",
"trimEdges": "0"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "access_status:$status",
"refId": "A",
"timeField": "@timestamp"
}
],
"title": "请求主机统计(前10)",
"type": "heatmap"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 43
},
"id": 19,
"panels": [],
"title": "来源地理信息分析",
"type": "row"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": []
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 6,
"x": 0,
"y": 44
},
"id": 20,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"pieType": "donut",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"alias": "",
"bucketAggs": [
{
"field": "geoip.country_name",
"id": "3",
"settings": {
"min_doc_count": "1",
"order": "desc",
"orderBy": "_term",
"size": "10"
},
"type": "terms"
},
{
"field": "@timestamp",
"id": "2",
"settings": {
"interval": "$interval"
},
"type": "date_histogram"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "",
"refId": "A",
"timeField": "@timestamp"
}
],
"title": "访客国家(前10)",
"type": "piechart"
},
{
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "purple",
"value": 10
},
{
"color": "blue",
"value": 20
},
{
"color": "yellow",
"value": 30
},
{
"color": "orange",
"value": 40
},
{
"color": "red",
"value": 50
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 18,
"x": 6,
"y": 44
},
"id": 9,
"options": {
"basemap": {
"config": {},
"name": "Layer 0",
"type": "default"
},
"controls": {
"mouseWheelZoom": true,
"showAttribution": true,
"showDebug": false,
"showMeasure": false,
"showScale": false,
"showZoom": true
},
"layers": [
{
"config": {
"showLegend": true,
"style": {
"color": {
"field": "Count",
"fixed": "dark-green"
},
"opacity": 0.5,
"rotation": {
"field": "Count",
"fixed": 0,
"max": 360,
"min": -360,
"mode": "mod"
},
"size": {
"field": "Count",
"fixed": 5,
"max": 100,
"min": 1
},
"symbol": {
"fixed": "img/icons/marker/circle.svg",
"mode": "fixed"
},
"text": {
"fixed": "",
"mode": "fixed"
},
"textConfig": {
"fontSize": 12,
"offsetX": 0,
"offsetY": 0,
"textAlign": "center",
"textBaseline": "middle"
}
}
},
"filterData": {
"id": "byRefId",
"options": "A"
},
"location": {
"gazetteer": "public/gazetteer/countries.json",
"lookup": "geoip.location",
"mode": "lookup"
},
"name": "访问量",
"tooltip": true,
"type": "markers"
}
],
"tooltip": {
"mode": "details"
},
"view": {
"allLayers": true,
"id": "zero",
"lat": 0,
"lon": 0,
"zoom": 1
}
},
"pluginVersion": "10.0.2",
"targets": [
{
"alias": "",
"bucketAggs": [
{
"field": "geoip.location",
"id": "2",
"settings": {
"precision": "2"
},
"type": "geohash_grid"
}
],
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"metrics": [
{
"id": "1",
"type": "count"
}
],
"query": "",
"refId": "A",
"timeField": "@timestamp"
}
],
"title": "访客来源",
"type": "geomap"
}
],
"refresh": "",
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"auto": true,
"auto_count": 30,
"auto_min": "10s",
"current": {
"selected": false,
"text": "1m",
"value": "1m"
},
"hide": 0,
"label": "周期",
"name": "interval",
"options": [
{
"selected": false,
"text": "auto",
"value": "$__auto_interval_interval"
},
{
"selected": false,
"text": "10s",
"value": "10s"
},
{
"selected": false,
"text": "30s",
"value": "30s"
},
{
"selected": true,
"text": "1m",
"value": "1m"
},
{
"selected": false,
"text": "5m",
"value": "5m"
},
{
"selected": false,
"text": "10m",
"value": "10m"
},
{
"selected": false,
"text": "30m",
"value": "30m"
},
{
"selected": false,
"text": "1d",
"value": "1d"
},
{
"selected": false,
"text": "7d",
"value": "7d"
},
{
"selected": false,
"text": "30d",
"value": "30d"
}
],
"query": "10s,30s,1m,5m,10m,30m,1d,7d,30d",
"queryValue": "",
"refresh": 2,
"skipUrlSync": false,
"type": "interval"
},
{
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "elasticsearch",
"uid": "b0d4226c-ba0d-4a23-9b2d-febf1ab93408"
},
"definition": "{\"find\":\"terms\",\"field\":\"access_status\"}",
"hide": 0,
"includeAll": true,
"label": "状态码",
"multi": true,
"name": "status",
"options": [],
"query": "{\"find\":\"terms\",\"field\":\"access_status\"}",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-15m",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "myapp",
"uid": "e43c1232-8f9f-4735-8e9b-578858acd9c2",
"version": 89,
"weekStart": ""
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。