ES cluster apps logs

ES cluster apps logs

{ “__inputs”: [ { “name”: “DS_ELASTICSEARCH”, “label”: “Elasticsearch”, “description”: “”, “type”: “datasource”, “pluginId”: “elasticsearch”, “pluginName”: “Elasticsearch” } ], “__elements”: {}, “__requires”: [ { “type”: “panel”, “id”: “barchart”, “name”: “Bar chart”, “version”: "" }, { “type”: “datasource”, “id”: “elasticsearch”, “name”: “Elasticsearch”, “version”: “1.0.0” }, { “type”: “grafana”, “id”: “grafana”, “name”: “Grafana”, “version”: “9.5.21” }, { “type”: “panel”, “id”: “piechart”, “name”: “Pie chart”, “version”: "" }, { “type”: “panel”, “id”: “stat”, “name”: “Stat”, “version”: "" }, { “type”: “panel”, “id”: “table”, “name”: “Table”, “version”: "" }, { “type”: “panel”, “id”: “timeseries”, “name”: “Time series”, “version”: "" } ], “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”: null, “links”: [], “liveNow”: false, “panels”: [ { “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “fieldConfig”: { “defaults”: { “color”: { “mode”: “thresholds” }, “mappings”: [], “thresholds”: { “mode”: “absolute”, “steps”: [ { “color”: “green”, “value”: null }, { “color”: “red”, “value”: 80 } ] } }, “overrides”: [] }, “gridPos”: { “h”: 7, “w”: 5, “x”: 0, “y”: 0 }, “id”: 1, “options”: { “colorMode”: “value”, “graphMode”: “none”, “justifyMode”: “auto”, “orientation”: “auto”, “reduceOptions”: { “calcs”: [ “sum” ], “fields”: “”, “values”: false }, “textMode”: “value” }, “pluginVersion”: “9.5.21”, “targets”: [ { “alias”: “”, “bucketAggs”: [ { “field”: “@timestamp”, “id”: “2”, “settings”: { “interval”: “auto” }, “type”: “date_histogram” } ], “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “metrics”: [ { “id”: “1”, “type”: “count” } ], “query”: “”, “refId”: “A”, “timeField”: “@timestamp” } ], “title”: “请求总访问量 PV”, “type”: “stat” }, { “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “fieldConfig”: { “defaults”: { “color”: { “mode”: “thresholds” }, “mappings”: [], “thresholds”: { “mode”: “absolute”, “steps”: [ { “color”: “green”, “value”: null }, { “color”: “red”, “value”: 80 } ] } }, “overrides”: [ { “matcher”: { “id”: “byName”, “options”: “Sum” }, “properties”: [ { “id”: “unit”, “value”: “currencyUSD” } ] } ] }, “gridPos”: { “h”: 7, “w”: 5, “x”: 5, “y”: 0 }, “id”: 6, “options”: { “colorMode”: “value”, “graphMode”: “area”, “justifyMode”: “auto”, “orientation”: “auto”, “reduceOptions”: { “calcs”: [ “lastNotNull” ], “fields”: “”, “values”: false }, “textMode”: “auto” }, “pluginVersion”: “9.5.21”, “targets”: [ { “alias”: “”, “bucketAggs”: [ { “field”: “action.keyword”, “id”: “2”, “settings”: { “min_doc_count”: “1”, “order”: “desc”, “orderBy”: “_term”, “size”: “10” }, “type”: “terms” } ], “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “hide”: false, “metrics”: [ { “field”: “price”, “id”: “1”, “type”: “sum” } ], “query”: “”, “refId”: “A”, “timeField”: “@timestamp” } ], “title”: “销售额”, “type”: “stat” }, { “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “fieldConfig”: { “defaults”: { “color”: { “mode”: “palette-classic” }, “custom”: { “axisCenteredZero”: false, “axisColorMode”: “text”, “axisLabel”: “”, “axisPlacement”: “auto”, “barAlignment”: 0, “drawStyle”: “line”, “fillOpacity”: 0, “gradientMode”: “none”, “hideFrom”: { “legend”: false, “tooltip”: false, “viz”: false }, “lineInterpolation”: “linear”, “lineWidth”: 1, “pointSize”: 5, “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 } ] } }, “overrides”: [] }, “gridPos”: { “h”: 10, “w”: 9, “x”: 10, “y”: 0 }, “id”: 3, “options”: { “legend”: { “calcs”: [], “displayMode”: “list”, “placement”: “bottom”, “showLegend”: true }, “tooltip”: { “mode”: “single”, “sort”: “none” } }, “targets”: [ { “alias”: “”, “bucketAggs”: [ { “field”: “action.keyword”, “id”: “2”, “settings”: { “min_doc_count”: “1”, “order”: “desc”, “orderBy”: “_term”, “size”: “0” }, “type”: “terms” }, { “field”: “@timestamp”, “id”: “3”, “settings”: { “interval”: “auto”, “min_doc_count”: “0”, “timeZone”: “utc”, “trimEdges”: “0” }, “type”: “date_histogram” } ], “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “metrics”: [ { “id”: “1”, “type”: “count” } ], “query”: “”, “refId”: “A”, “timeField”: “@timestamp” } ], “title”: “各应用的访问流量”, “type”: “timeseries” }, { “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “fieldConfig”: { “defaults”: { “color”: { “mode”: “palette-classic” }, “custom”: { “hideFrom”: { “legend”: false, “tooltip”: false, “viz”: false } }, “mappings”: [] }, “overrides”: [] }, “gridPos”: { “h”: 19, “w”: 5, “x”: 19, “y”: 0 }, “id”: 8, “options”: { “legend”: { “displayMode”: “list”, “placement”: “bottom”, “showLegend”: true }, “pieType”: “pie”, “reduceOptions”: { “calcs”: [ “lastNotNull” ], “fields”: “”, “values”: false }, “tooltip”: { “mode”: “single”, “sort”: “none” } }, “pluginVersion”: “9.5.21”, “targets”: [ { “alias”: “”, “bucketAggs”: [ { “field”: “svip”, “id”: “2”, “settings”: { “min_doc_count”: “1”, “order”: “desc”, “orderBy”: “_term”, “size”: “10” }, “type”: “terms” } ], “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “metrics”: [ { “id”: “1”, “type”: “count” } ], “query”: “svip : "2"”, “refId”: “A”, “timeField”: “@timestamp” }, { “alias”: “”, “bucketAggs”: [ { “field”: “svip”, “id”: “2”, “settings”: { “min_doc_count”: “1”, “order”: “desc”, “orderBy”: “_term”, “size”: “10” }, “type”: “terms” } ], “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “hide”: false, “metrics”: [ { “id”: “1”, “type”: “count” } ], “query”: “svip : "1"”, “refId”: “B”, “timeField”: “@timestamp” }, { “alias”: “”, “bucketAggs”: [ { “field”: “svip”, “id”: “2”, “settings”: { “min_doc_count”: “1”, “order”: “desc”, “orderBy”: “_term”, “size”: “10” }, “type”: “terms” } ], “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “hide”: false, “metrics”: [ { “id”: “1”, “type”: “count” } ], “query”: “svip : "0"”, “refId”: “C”, “timeField”: “@timestamp” } ], “title”: “vip用户占比图”, “transformations”: [ { “id”: “filterFieldsByName”, “options”: { “include”: { “names”: [ “Count”, “svip” ] } } } ], “type”: “piechart” }, { “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “fieldConfig”: { “defaults”: { “color”: { “mode”: “palette-classic” }, “custom”: { “axisCenteredZero”: false, “axisColorMode”: “text”, “axisLabel”: “”, “axisPlacement”: “auto”, “barAlignment”: 0, “drawStyle”: “line”, “fillOpacity”: 0, “gradientMode”: “none”, “hideFrom”: { “legend”: false, “tooltip”: false, “viz”: false }, “lineInterpolation”: “linear”, “lineWidth”: 1, “pointSize”: 5, “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 } ] } }, “overrides”: [] }, “gridPos”: { “h”: 12, “w”: 10, “x”: 0, “y”: 7 }, “id”: 2, “options”: { “legend”: { “calcs”: [ “max”, “min”, “mean” ], “displayMode”: “list”, “placement”: “bottom”, “showLegend”: true }, “tooltip”: { “mode”: “single”, “sort”: “none” } }, “targets”: [ { “alias”: “”, “bucketAggs”: [ { “field”: “@timestamp”, “id”: “2”, “settings”: { “interval”: “auto” }, “type”: “date_histogram” } ], “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “metrics”: [ { “id”: “1”, “type”: “logs” } ], “query”: “”, “refId”: “A”, “timeField”: “@timestamp” } ], “title”: “请求访问流量”, “type”: “timeseries” }, { “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “fieldConfig”: { “defaults”: { “color”: { “mode”: “palette-classic” }, “custom”: { “axisCenteredZero”: false, “axisColorMode”: “text”, “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”: null }, { “color”: “red”, “value”: 80 } ] } }, “overrides”: [] }, “gridPos”: { “h”: 9, “w”: 9, “x”: 10, “y”: 10 }, “id”: 4, “options”: { “barRadius”: 0, “barWidth”: 0.97, “fullHighlight”: false, “groupWidth”: 0.7, “legend”: { “calcs”: [], “displayMode”: “list”, “placement”: “bottom”, “showLegend”: true }, “orientation”: “auto”, “showValue”: “auto”, “stacking”: “none”, “tooltip”: { “mode”: “single”, “sort”: “none” }, “xTickLabelRotation”: 0, “xTickLabelSpacing”: 0 }, “targets”: [ { “alias”: “”, “bucketAggs”: [ { “field”: “action.keyword”, “id”: “2”, “settings”: { “min_doc_count”: “1”, “order”: “desc”, “orderBy”: “_term”, “size”: “0” }, “type”: “terms” } ], “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “metrics”: [ { “id”: “1”, “type”: “count” } ], “query”: “”, “refId”: “A”, “timeField”: “@timestamp” } ], “title”: “各应用访问请求数量”, “transformations”: [ { “id”: “organize”, “options”: { “excludeByName”: {}, “indexByName”: {}, “renameByName”: { “Count”: “所选时间段内的请求访问数量”, “action.keyword”: “应用ID” } } }, { “id”: “sortBy”, “options”: { “fields”: {}, “sort”: [ { “field”: “所选时间段内的请求访问数量” } ] } }, { “id”: “filterByValue”, “options”: { “filters”: [ { “config”: { “id”: “greater”, “options”: { “value”: 0 } }, “fieldName”: “所选时间段内的请求访问数量” } ], “match”: “all”, “type”: “include” } } ], “type”: “barchart” }, { “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “fieldConfig”: { “defaults”: { “color”: { “mode”: “thresholds” }, “custom”: { “align”: “auto”, “cellOptions”: { “type”: “auto” }, “inspect”: false }, “mappings”: [], “thresholds”: { “mode”: “absolute”, “steps”: [ { “color”: “green”, “value”: null }, { “color”: “red”, “value”: 80 } ] } }, “overrides”: [] }, “gridPos”: { “h”: 17, “w”: 24, “x”: 0, “y”: 19 }, “id”: 7, “options”: { “cellHeight”: “sm”, “footer”: { “countRows”: false, “fields”: “”, “reducer”: [ “sum” ], “show”: false }, “showHeader”: true }, “pluginVersion”: “9.5.21”, “targets”: [ { “alias”: “”, “bucketAggs”: [], “datasource”: { “type”: “elasticsearch”, “uid”: “${DS_ELASTICSEARCH}” }, “metrics”: [ { “id”: “1”, “settings”: { “size”: “1000” }, “type”: “raw_data” } ], “query”: “”, “refId”: “A”, “timeField”: “@timestamp” } ], “title”: “ES原始数据”, “transformations”: [ { “id”: “filterFieldsByName”, “options”: { “include”: { “names”: [ “action”, “datetime”, “price”, “svip”, “uid”, “_index” ] } } } ], “type”: “table” } ], “refresh”: “”, “schemaVersion”: 38, “style”: “dark”, “tags”: [], “templating”: { “list”: [] }, “time”: { “from”: “now-1y”, “to”: “now” }, “timepicker”: {}, “timezone”: “”, “title”: “ES集群数据(apps)”, “uid”: “ea1257b9-716a-4d2d-9727-c47c11da2bd3”, “version”: 10, “weekStart”: "" }

Revisions
RevisionDescriptionCreated
Grafana Loki (self-hosted)

Grafana Loki (self-hosted)

by Grafana Labs
Grafana Labs solution

Easily monitor Grafana Loki (self-hosted), a horizontally scalable, highly available, multi-tenant log aggregation system inspired by Prometheus, with Grafana Cloud's out-of-the-box monitoring solution.

Learn more

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies