From 768585efab3b278f6cf9e6534e8d402f1d0c427c Mon Sep 17 00:00:00 2001 From: liurui Date: Wed, 23 Oct 2024 15:53:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0kafka=20=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E5=92=8C=E7=9B=91=E6=8E=A7=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../export/dashboard/kafka/kafka__en.json | 1 + .../kafka/{kafka.json => kafka__zh.json} | 4004 +++++++++++------ internal/export/monitor/kafka/kafka.json | 140 - internal/export/monitor/kafka/kafka__en.json | 1010 +++++ internal/export/monitor/kafka/kafka__zh.json | 996 ++++ 5 files changed, 4581 insertions(+), 1570 deletions(-) create mode 100644 internal/export/dashboard/kafka/kafka__en.json rename internal/export/dashboard/kafka/{kafka.json => kafka__zh.json} (57%) delete mode 100644 internal/export/monitor/kafka/kafka.json create mode 100644 internal/export/monitor/kafka/kafka__en.json create mode 100644 internal/export/monitor/kafka/kafka__zh.json diff --git a/internal/export/dashboard/kafka/kafka__en.json b/internal/export/dashboard/kafka/kafka__en.json new file mode 100644 index 0000000000..bf019c2ff4 --- /dev/null +++ b/internal/export/dashboard/kafka/kafka__en.json @@ -0,0 +1 @@ +{"title": "Kafka \u76d1\u63a7\u89c6\u56fe", "dashboardType": "CUSTOM", "dashboardExtend": {"groupUnfoldStatus": {"Topic": true, "\u6982\u89c8": true, "\u7b80\u4ecb": false, "\u526f\u672c\u7ba1\u7406": true}}, "dashboardMapping": [], "dashboardOwnerType": "node", "iconSet": {"url": "https://static-res.guance.com/dataflux-template/dashboard/zh/kafka/kafka.png", "icon": "https://static-res.guance.com/dataflux-template/dashboard/zh/kafka/icon.svg"}, "dashboardBindSet": [], "thumbnail": "", "tagInfo": [], "summary": "", "main": {"vars": [{"name": "host", "seq": 0, "datasource": "dataflux", "code": "host", "type": "QUERY", "definition": {"tag": "", "field": "", "value": "show_tag_value(from=['kafka_controller'], keyin=['host'])", "metric": "", "object": "", "defaultVal": {"label": "*", "value": "*"}}, "valueSort": "asc", "hide": 0, "isHiddenAsterisk": 0, "multiple": true, "includeStar": true}], "charts": [{"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "bgColor": "#00B2CE", "mappings": [], "pageSize": 50, "showLine": false, "unitType": "global", "fixedTime": "", "fontColor": "", "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", "showTitle": true, "titleDesc": "", "downsample": "last", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "compareTitle": "", "showLineAxis": false, "timeInterval": "auto", "isTimeInterval": false, "changeWorkspace": false, "currentChartType": "singlestat", "showFieldMapping": false, "sequenceChartType": "line", "openThousandsSeparator": true}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Overview"}, "name": "GlobalPartitionCount", "pos": {"h": 8, "w": 3, "x": 6, "y": 0}, "type": "singlestat", "queries": [{"name": "", "type": "singlestat", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_controller`:(avg(`GlobalPartitionCount.Value`)) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "", "field": "GlobalPartitionCount.Value", "density": "medium", "filters": [{"id": "1b0cdc70-c380-11eb-8967-fb1050d86707", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": ["last"], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_controller", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [{"key": "\u603b\u8ba1\u65f6\u95f4", "name": "\u603b\u8ba1\u65f6\u95f4", "unit": "", "units": ["time", "ms"]}, {"key": "\u6d88\u606f\u8f6c\u6362\u65f6\u95f4", "name": "\u6d88\u606f\u8f6c\u6362\u65f6\u95f4", "unit": "", "units": ["time", "ms"]}, {"key": "\u8bf7\u6c42\u961f\u5217\u65f6\u95f4", "name": "\u8bf7\u6c42\u961f\u5217\u65f6\u95f4", "unit": "", "units": ["time", "ms"]}, {"key": "\u54cd\u5e94\u961f\u5217\u65f6\u95f4", "name": "\u54cd\u5e94\u961f\u5217\u65f6\u95f4", "unit": "", "units": ["time", "ms"]}], "colors": [], "levels": [], "slimit": 20, "density": "low", "showLine": false, "unitType": "custom", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "compareTitle": "", "connectNulls": true, "legendValues": "", "timeInterval": "default", "legendPostion": "none", "maxPointCount": 180, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "last(MessageConversionsTimeMs.Count)", "openThousandsSeparator": true, "mainMeasurementQueryCode": "D"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Overview"}, "name": "performance", "pos": {"h": 10, "w": 7, "x": 0, "y": 8}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_request`:(AVG(`TotalTimeMs.Count`) AS `\u603b\u8ba1\u65f6\u95f4`) { `host` = '#{host}' }", "code": "D", "fill": null, "type": "dql", "alias": "\u603b\u8ba1\u65f6\u95f4", "field": "TotalTimeMs.Count", "fillNum": null, "filters": [{"op": "=", "name": "host", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_request", "queryFuncs": [], "withLabels": [], "groupByTime": ""}, "datasource": "dataflux"}, {"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_request`:(AVG(`MessageConversionsTimeMs.Count`) AS `\u6d88\u606f\u8f6c\u6362\u65f6\u95f4`) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "dql", "alias": "\u6d88\u606f\u8f6c\u6362\u65f6\u95f4", "field": "MessageConversionsTimeMs.Count", "fillNum": null, "filters": [{"op": "=", "name": "host", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_request", "queryFuncs": [], "withLabels": [], "groupByTime": ""}, "datasource": "dataflux"}, {"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_request`:(AVG(`RequestQueueTimeMs.Count`) AS `\u8bf7\u6c42\u961f\u5217\u65f6\u95f4`) { `host` = '#{host}' }", "code": "B", "fill": null, "type": "dql", "alias": "\u8bf7\u6c42\u961f\u5217\u65f6\u95f4", "field": "RequestQueueTimeMs.Count", "fillNum": null, "filters": [{"op": "=", "name": "host", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_request", "queryFuncs": [], "withLabels": [], "groupByTime": ""}, "datasource": "dataflux"}, {"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_request`:(AVG(`ResponseSendTimeMs.Count`) AS `\u54cd\u5e94\u961f\u5217\u65f6\u95f4`) { `host` = '#{host}' }", "code": "C", "fill": null, "type": "dql", "alias": "\u54cd\u5e94\u961f\u5217\u65f6\u95f4", "field": "ResponseSendTimeMs.Count", "fillNum": null, "filters": [{"op": "=", "name": "host", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_request", "queryFuncs": [], "withLabels": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"mark": {"axis": "x", "data": [], "type": "area"}, "alias": [], "units": [], "colors": [], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "global", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "compareTitle": "", "connectNulls": true, "legendValues": "", "timeInterval": "default", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "kafka_topics_FetchMessageConversionsPerSec.Count", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Topic"}, "name": "MessageConversionsPerSe", "pos": {"h": 9, "w": 8, "x": 16, "y": 0}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`FetchMessageConversionsPerSec.Count`) AS `\u6bcf\u79d2 Fetch \u6d88\u606f\u8f6c\u6362`) { `host` = '#{host}' }\")", "code": "A", "fill": null, "type": "dql", "alias": "\u6bcf\u79d2 Fetch \u6d88\u606f\u8f6c\u6362", "field": "FetchMessageConversionsPerSec.Count", "index": "", "fillNum": null, "filters": [{"op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}", "values": []}], "groupBy": [], "indexes": [], "labelOp": "", "funcList": [], "interval": "", "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_topics", "queryFuncs": [{"args": [], "name": "non_negative_derivative"}], "withLabels": [], "groupByTime": "", "dataSourceFunc": ""}, "datasource": "dataflux"}, {"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`ProduceMessageConversionsPerSec.Count`) AS `\u6bcf\u79d2 Produce \u6d88\u606f\u8f6c\u6362`) { `host` = '#{host}' }\")", "code": "B", "fill": null, "type": "dql", "alias": "\u6bcf\u79d2 Produce \u6d88\u606f\u8f6c\u6362", "field": "ProduceMessageConversionsPerSec.Count", "fillNum": null, "filters": [{"op": "=", "name": "host", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_topics", "queryFuncs": [{"args": [], "name": "non_negative_derivative"}], "withLabels": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"mark": {"axis": "x", "data": [], "type": "area"}, "alias": [], "units": [{"key": "\u5165\u6d41\u91cf", "name": "\u5165\u6d41\u91cf", "unit": "", "units": ["traffic", "B/S"]}, {"key": "\u51fa\u6d41\u91cf", "name": "\u51fa\u6d41\u91cf", "unit": "", "units": ["traffic", "B/S"]}], "colors": [], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "custom", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": [], "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "connectNulls": true, "legendValues": "", "timeInterval": "auto", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "kafka_topics_BytesInPerSec.Count", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Topic"}, "name": "network traffic", "pos": {"h": 9, "w": 8, "x": 16, "y": 9}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "non_negative_derivative(\"M::`kafka_topics`:(avg(`BytesInPerSec.Count`) AS `\u5165\u6d41\u91cf`) { `host` = '#{host}' }\")", "code": "A", "fill": null, "type": "simple", "alias": "\u5165\u6d41\u91cf", "field": "BytesInPerSec.Count", "filters": [{"id": "109bf340-c383-11eb-b98e-df59d31b9dd6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_topics", "queryFuncs": [{"args": [], "name": "non_negative_derivative"}], "groupByTime": ""}, "datasource": "dataflux"}, {"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "non_negative_derivative(\"M::`kafka_topics`:(avg(`BytesOutPerSec.Count`) AS `\u51fa\u6d41\u91cf`) { `host` = '#{host}' }\")", "code": "B", "fill": null, "type": "simple", "alias": "\u51fa\u6d41\u91cf", "field": "BytesOutPerSec.Count", "filters": [{"id": "2206b890-c383-11eb-b98e-df59d31b9dd6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_topics", "queryFuncs": [{"args": [], "name": "non_negative_derivative"}], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "global", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "compareTitle": "", "connectNulls": true, "legendValues": "", "timeInterval": "default", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "\u6bcf\u79d2 Fetch \u8bf7\u6c42\u603b\u8ba1", "openThousandsSeparator": true, "mainMeasurementQueryCode": "B"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Topic"}, "name": "TotalRequestsPerSec", "pos": {"h": 9, "w": 8, "x": 0, "y": 0}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`TotalProduceRequestsPerSec.Count`) AS `\u6bcf\u79d2 Produce \u8bf7\u6c42\u603b\u8ba1`) { `host` = '#{host}' }\")", "code": "B", "fill": null, "type": "dql", "alias": "\u6bcf\u79d2 Produce \u8bf7\u6c42\u603b\u8ba1", "field": "TotalProduceRequestsPerSec.Count", "index": "", "fillNum": null, "filters": [{"op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}", "values": []}], "groupBy": [], "indexes": [], "labelOp": "", "funcList": [], "interval": "", "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_topics", "queryFuncs": [{"args": [], "name": "non_negative_derivative"}], "withLabels": [], "groupByTime": "", "dataSourceFunc": ""}, "datasource": "dataflux"}, {"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`TotalFetchRequestsPerSec.Count`) AS `\u6bcf\u79d2 Fetch \u8bf7\u6c42\u603b\u8ba1`) { `host` = '#{host}' }\")", "code": "A", "fill": null, "type": "dql", "alias": "\u6bcf\u79d2 Fetch \u8bf7\u6c42\u603b\u8ba1", "field": "TotalFetchRequestsPerSec.Count", "fillNum": null, "filters": [{"op": "=", "name": "host", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_topics", "queryFuncs": [{"args": [], "name": "non_negative_derivative"}], "withLabels": [], "groupByTime": ""}, "disabled": true, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "global", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "compareTitle": "", "connectNulls": true, "legendValues": "", "timeInterval": "default", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "\u6bcf\u79d2 Fetch \u8bf7\u6c42\u5931\u8d25\u6570", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Topic"}, "name": "FailedRequestsPerSec", "pos": {"h": 9, "w": 8, "x": 8, "y": 0}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`FailedFetchRequestsPerSec.Count`) AS ``) { `host` = '#{host}' }\")", "code": "A", "fill": null, "type": "dql", "alias": "", "field": "FailedFetchRequestsPerSec.Count", "index": "", "fillNum": null, "filters": [{"op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}", "values": []}], "groupBy": [], "indexes": [], "labelOp": "", "funcList": [], "interval": "", "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_topics", "queryFuncs": [{"args": [], "name": "non_negative_derivative"}], "withLabels": [], "groupByTime": "", "dataSourceFunc": ""}, "datasource": "dataflux"}, {"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`FailedProduceRequestsPerSec.Count`) AS `\u6bcf\u79d2 Produce \u8bf7\u6c42\u5931\u8d25\u6570`) { `host` = '#{host}' }\")", "code": "B", "fill": null, "type": "dql", "alias": "\u6bcf\u79d2 Produce \u8bf7\u6c42\u5931\u8d25\u6570", "field": "FailedProduceRequestsPerSec.Count", "fillNum": null, "filters": [{"op": "=", "name": "host", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_topics", "queryFuncs": [{"args": [], "name": "non_negative_derivative"}], "withLabels": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [{"key": "\u5e73\u5747\u6bcf\u79d2\u6269\u5bb9\u6570", "name": "\u5e73\u5747\u6bcf\u79d2\u6269\u5bb9\u6570", "color": "rgba(65,206,199,1)"}], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "global", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "compareTitle": "", "connectNulls": true, "legendValues": "", "timeInterval": "default", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "\u5e73\u5747\u6bcf\u79d2\u6269\u5bb9\u6570", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Replica Management"}, "name": "IsrExpands&IsrShrinksPerSec", "pos": {"h": 9, "w": 6, "x": 6, "y": 0}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_replica_manager`:(avg(`IsrExpandsPerSec.Count`) AS `\u5e73\u5747\u6bcf\u79d2\u6269\u5bb9\u6570`) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "\u5e73\u5747\u6bcf\u79d2\u6269\u5bb9\u6570", "field": "IsrExpandsPerSec.Count", "filters": [{"id": "89d55110-c384-11eb-9426-db66bc5d22f6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_replica_manager", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}, {"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_replica_manager`:(avg(`IsrShrinksPerSec.Count`) AS `\u5e73\u5747\u6bcf\u79d2\u7f29\u5bb9\u6570`) { `host` = '#{host}' }", "code": "B", "fill": null, "type": "simple", "alias": "\u5e73\u5747\u6bcf\u79d2\u7f29\u5bb9\u6570", "field": "IsrShrinksPerSec.Count", "filters": [{"id": "8c73a2a0-c384-11eb-9426-db66bc5d22f6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_replica_manager", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [{"key": "\u6700\u5c0f\u5931\u8d25 ISR \u5206\u533a\u6570", "name": "\u6700\u5c0f\u5931\u8d25 ISR \u5206\u533a\u6570", "color": "rgba(65,206,199,1)"}], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "global", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "compareTitle": "", "connectNulls": true, "legendValues": "", "timeInterval": "default", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "kafka_replica_manager_UnderMinIsrPartitionCount.Value", "openThousandsSeparator": true, "mainMeasurementQueryCode": "B"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Replica Management"}, "name": "UnderReplicatedPartitions&UnderMinIsrPartitionCount", "pos": {"h": 9, "w": 6, "x": 12, "y": 0}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_replica_manager`:(AVG(`UnderReplicatedPartitions.Value`) AS `UnderReplicatedPartitions`) { `host` = '#{host}' }", "code": "B", "fill": null, "type": "dql", "alias": "UnderReplicatedPartitions", "field": "UnderReplicatedPartitions.Value", "index": "", "fillNum": null, "filters": [{"op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}", "values": []}], "groupBy": [], "indexes": [], "labelOp": "", "funcList": [], "interval": "", "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_replica_manager", "queryFuncs": [], "withLabels": [], "groupByTime": "", "dataSourceFunc": ""}, "datasource": "dataflux"}, {"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_replica_manager`:(AVG(`UnderMinIsrPartitionCount.Value`) AS `UnderMinIsrPartitionCount`) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "dql", "alias": "UnderMinIsrPartitionCount", "field": "UnderMinIsrPartitionCount.Value", "index": "", "fillNum": null, "filters": [{"op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}", "values": []}], "groupBy": [], "indexes": [], "labelOp": "", "funcList": [], "interval": "", "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_replica_manager", "queryFuncs": [], "withLabels": [], "groupByTime": "", "dataSourceFunc": ""}, "datasource": "dataflux"}, {"type": "sequence", "unit": "", "color": "#db632b", "qtype": "http", "query": {"fill": "none", "fields": [{"args": [{"name": "UnderMinIsrPartitionCount.Value"}], "alias": "\u6700\u5c0f\u5931\u8d25 ISR \u5206\u533a\u6570", "funcName": "Last"}, {"fx": "$$value", "args": [{"name": "UnderReplicatedPartitions.Value"}], "alias": "\u5931\u6548\u526f\u672c\u5206\u533a\u6570", "funcName": "last"}], "filter": {"tags": [{"name": "host", "value": "#{host}", "condition": "and", "operation": "="}]}, "groupBy": ["time(#{defaultInterval})"], "measurements": ["kafka_replica_manager"], "transformFuncs": []}, "extend": {}, "datasource": "ftinfluxdb"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "global", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": [], "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "connectNulls": true, "legendValues": "", "timeInterval": "auto", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "\u79bb\u7ebf\u526f\u672c\u6570", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Replica Management"}, "name": "OfflineReplicaCount", "pos": {"h": 9, "w": 6, "x": 18, "y": 0}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_replica_manager`:(avg(`OfflineReplicaCount.Value`) AS `OfflineReplicaCount`) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "OfflineReplicaCount", "field": "OfflineReplicaCount.Value", "filters": [{"id": "f59e0c80-c383-11eb-b98e-df59d31b9dd6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_replica_manager", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [{"key": "Broker \u5206\u533a\u6570", "name": "Broker \u5206\u533a\u6570", "color": "rgba(65,206,199,1)"}], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "global", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "compareTitle": "", "connectNulls": true, "legendValues": "", "timeInterval": "default", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "Broker \u5206\u533a\u6570", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Replica Management"}, "name": "Partition&LeaderCount", "pos": {"h": 9, "w": 6, "x": 0, "y": 0}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_replica_manager`:(AVG(`PartitionCount.Value`) AS `\u5206\u533a\u6570`) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "dql", "alias": "\u5206\u533a\u6570", "field": "PartitionCount.Value", "index": "", "fillNum": null, "filters": [{"op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}", "values": []}], "groupBy": [], "indexes": [], "labelOp": "", "funcList": [], "interval": "", "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_replica_manager", "queryFuncs": [], "withLabels": [], "groupByTime": "", "dataSourceFunc": ""}, "datasource": "dataflux"}, {"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_replica_manager`:(avg(`LeaderCount.Value`) AS `Leader count`) { `host` = '#{host}' }", "code": "B", "fill": null, "type": "simple", "alias": "Leader count", "field": "LeaderCount.Value", "filters": [{"id": "63de1410-c384-11eb-9426-db66bc5d22f6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_replica_manager", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "bgColor": "#00B2CE", "mappings": [], "showLine": false, "unitType": "global", "fixedTime": "", "fontColor": "", "lineColor": "#c23531", "precision": "2", "showTitle": true, "titleDesc": "", "downsample": "last", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "compareTitle": "", "showLineAxis": false, "timeInterval": "auto", "isTimeInterval": false, "changeWorkspace": false, "currentChartType": "singlestat", "showFieldMapping": false, "sequenceChartType": "line", "openThousandsSeparator": true}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Purgatory"}, "name": "DeleteRecords", "pos": {"h": 8, "w": 6, "x": 0, "y": 0}, "type": "singlestat", "queries": [{"name": "", "type": "singlestat", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_purgatory`:(AVG(`DeleteRecords.NumDelayedOperations`)) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "dql", "alias": "", "field": "DeleteRecords.NumDelayedOperations", "index": "", "fillNum": null, "filters": [{"op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}", "values": []}], "groupBy": [], "indexes": [], "labelOp": "", "funcList": ["last"], "interval": "", "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_purgatory", "queryFuncs": [], "withLabels": [], "groupByTime": "", "dataSourceFunc": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "bgColor": "#FF77AA", "mappings": [], "showLine": false, "unitType": "global", "fixedTime": "", "fontColor": "", "lineColor": "#3AB8FF", "precision": "2", "showTitle": true, "titleDesc": "", "downsample": "last", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "compareTitle": "", "showLineAxis": false, "timeInterval": "auto", "isTimeInterval": false, "changeWorkspace": false, "currentChartType": "singlestat", "showFieldMapping": false, "sequenceChartType": "line", "openThousandsSeparator": true}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Purgatory"}, "name": "Heartbeat", "pos": {"h": 8, "w": 6, "x": 6, "y": 0}, "type": "singlestat", "queries": [{"name": "", "type": "singlestat", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_purgatory`:(avg(`Heartbeat.NumDelayedOperations`))", "code": "A", "fill": null, "type": "simple", "alias": "", "field": "Heartbeat.NumDelayedOperations", "density": "medium", "filters": [], "groupBy": [], "funcList": ["last"], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_purgatory", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "bgColor": "#A0DD86", "mappings": [], "showLine": false, "fixedTime": "", "fontColor": "", "lineColor": "#c23531", "precision": "2", "showTitle": true, "titleDesc": "", "downsample": "last", "compareType": "", "openCompare": false, "compareTitle": "", "showLineAxis": false, "timeInterval": "default", "isTimeInterval": false, "currentChartType": "singlestat", "showFieldMapping": false}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Purgatory"}, "name": "Topic", "pos": {"h": 8, "w": 6, "x": 12, "y": 0}, "type": "singlestat", "queries": [{"name": "", "type": "singlestat", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_purgatory`:(AVG(`topic.PurgatorySize`)) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "dql", "field": "topic.PurgatorySize", "fillNum": null, "filters": [{"op": "=", "name": "host", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": ["last"], "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_purgatory", "queryFuncs": [], "withLabels": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "bgColor": "#737AE2", "mappings": [], "showLine": false, "unitType": "global", "fixedTime": "", "fontColor": "", "lineColor": "#3AB8FF", "precision": "2", "showTitle": true, "titleDesc": "", "downsample": "last", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "compareTitle": "", "showLineAxis": false, "timeInterval": "auto", "isTimeInterval": false, "changeWorkspace": false, "currentChartType": "singlestat", "showFieldMapping": false, "sequenceChartType": "line", "openThousandsSeparator": true}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Purgatory"}, "name": "Produce.PurgatorySize", "pos": {"h": 8, "w": 6, "x": 18, "y": 0}, "type": "singlestat", "queries": [{"name": "", "type": "singlestat", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_purgatory`:(AVG(`Produce.PurgatorySize`)) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "dql", "alias": "", "field": "Produce.PurgatorySize", "index": "", "fillNum": null, "filters": [{"op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}", "values": []}], "groupBy": [], "indexes": [], "labelOp": "", "funcList": ["last"], "interval": "", "fieldFunc": "avg", "namespace": "metric", "dataSource": "kafka_purgatory", "queryFuncs": [], "withLabels": [], "groupByTime": "", "dataSourceFunc": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "bgColor": "#C57ECD", "mappings": [], "pageSize": 50, "showLine": false, "unitType": "global", "fixedTime": "", "fontColor": "", "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", "showTitle": true, "titleDesc": "", "downsample": "last", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "compareTitle": "", "showLineAxis": false, "timeInterval": "auto", "isTimeInterval": false, "changeWorkspace": false, "currentChartType": "singlestat", "showFieldMapping": false, "sequenceChartType": "line", "openThousandsSeparator": true}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Overview"}, "name": "UnderReplicatedPartitions", "pos": {"h": 8, "w": 3, "x": 9, "y": 0}, "type": "singlestat", "queries": [{"name": "", "type": "singlestat", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_replica_manager`:(avg(`UnderReplicatedPartitions.Value`)) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "", "field": "UnderReplicatedPartitions.Value", "density": "medium", "filters": [{"id": "582c4aa0-c380-11eb-b98e-df59d31b9dd6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": ["last"], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_replica_manager", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "bgColor": "#C8DD4F", "mappings": [], "pageSize": 50, "showLine": false, "fixedTime": "", "fontColor": "", "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", "showTitle": true, "titleDesc": "", "downsample": "last", "compareType": "", "openCompare": false, "compareTitle": "", "showLineAxis": false, "timeInterval": "default", "isTimeInterval": false, "currentChartType": "singlestat", "showFieldMapping": false}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Overview"}, "name": "Topic", "pos": {"h": 8, "w": 3, "x": 3, "y": 0}, "type": "singlestat", "queries": [{"name": "", "type": "singlestat", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_controller`:(AVG(`GlobalTopicCount.Value`)) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "", "field": "GlobalTopicCount.Value", "density": "medium", "filters": [{"id": "07f2b970-c380-11eb-8967-fb1050d86707", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": ["last"], "fieldFunc": "avg", "fieldType": "integer", "namespace": "metric", "dataSource": "kafka_controller", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "slimit": 20, "density": "medium", "mappings": [], "pageSize": 50, "showLine": false, "unitType": "global", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "lineColor": "#c23531", "openStack": false, "precision": "2", "queryMode": "toMergeColumn", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "downsample": "last", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "compareTitle": "", "connectNulls": true, "legendValues": "", "showLineAxis": false, "timeInterval": "default", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "\u4e8b\u4ef6\u961f\u5217", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Overview"}, "name": "QueueSize", "pos": {"h": 10, "w": 5, "x": 7, "y": 8}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_controller`:(avg(`TotalQueueSize.Value`) AS `\u603b\u961f\u5217`) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "\u603b\u961f\u5217", "field": "TotalQueueSize.Value", "filters": [{"id": "c839c9c0-c381-11eb-b98e-df59d31b9dd6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_controller", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}, {"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_controller`:(avg(`EventQueueSize.Value`) AS `\u4e8b\u4ef6\u961f\u5217`) { `host` = '#{host}' }", "code": "B", "fill": null, "type": "simple", "alias": "\u4e8b\u4ef6\u961f\u5217", "field": "EventQueueSize.Value", "filters": [{"id": "d9fe6ee0-c381-11eb-b98e-df59d31b9dd6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_controller", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"mark": {"axis": "x", "data": [], "type": "area"}, "alias": [], "units": [{"key": "\u751f\u4ea7\u8005\u8bf7\u6c42\u65f6\u95f4", "name": "\u751f\u4ea7\u8005\u8bf7\u6c42\u65f6\u95f4", "unit": "", "units": ["time", "ms"]}], "colors": [{"key": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", "name": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", "tags": {"host": "iZbp18k3nmsg02frvgelyxZ"}, "color": "#498BFE"}], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "custom", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": [], "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "connectNulls": true, "legendValues": "", "timeInterval": "auto", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "last(AtMinIsrPartitionCount.Value)", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Performance Monitoring"}, "name": "ProducerTotalTimeMs", "pos": {"h": 11, "w": 8, "x": 0, "y": 0}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_request`:(avg(`TotalTimeMs.Mean`) AS `ProducerTotalTimeMs`) { `request` = 'Produce' and `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "ProducerTotalTimeMs", "field": "TotalTimeMs.Mean", "fillNum": null, "filters": [{"id": "93d474e0-7b70-11eb-bf8d-d7ca32a7c090", "op": "=", "name": "request", "logic": "and", "value": "Produce"}, {"id": "8bf61940-7b7a-11eb-95bf-4f081fe3b009", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_request", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"mark": {"axis": "x", "data": [], "type": "area"}, "alias": [], "units": [{"key": "\u6d88\u8d39\u8005\u8bf7\u6c42\u65f6\u95f4", "name": "\u6d88\u8d39\u8005\u8bf7\u6c42\u65f6\u95f4", "unit": "", "units": ["time", "ms"]}], "colors": [], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "custom", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "compareTitle": "", "connectNulls": true, "legendValues": "", "timeInterval": "default", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "avg(TotalTimeMs.Mean)", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Performance Monitoring"}, "name": "CosumerTotalTimeMs", "pos": {"h": 11, "w": 8, "x": 8, "y": 0}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_request`:(avg(`TotalTimeMs.Mean`) AS `CosumerTotalTimeMs`) { `request` = 'FetchConsumer' and `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "CosumerTotalTimeMs", "field": "TotalTimeMs.Mean", "filters": [{"id": "54110870-7b73-11eb-bf8d-d7ca32a7c090", "op": "=", "name": "request", "type": "", "logic": "and", "value": "FetchConsumer"}, {"id": "99482200-7b7a-11eb-95bf-4f081fe3b009", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_request", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"mark": {"axis": "x", "data": [], "type": "area"}, "alias": [], "units": [{"key": "\u4ece\u8282\u70b9\u8bf7\u6c42\u65f6\u95f4", "name": "\u4ece\u8282\u70b9\u8bf7\u6c42\u65f6\u95f4", "unit": "", "units": ["time", "ms"]}], "colors": [], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "custom", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "compareTitle": "", "connectNulls": true, "legendValues": "", "timeInterval": "default", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "\u4ece\u8282\u70b9\u8bf7\u6c42\u65f6\u95f4", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Performance Monitoring"}, "name": "TotalTimeMs", "pos": {"h": 11, "w": 8, "x": 16, "y": 0}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_request`:(avg(`TotalTimeMs.Count`) AS `TotalTimeMs`) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "TotalTimeMs", "field": "TotalTimeMs.Count", "fillNum": null, "filters": [{"id": "138fdc21-55da-11ed-90f8-85b96def89df", "op": "=", "name": "host", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_request", "queryFuncs": [], "withLabels": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"mark": {"axis": "x", "data": [], "type": "area"}, "alias": [], "units": [{"key": "\u5165\u6d41\u91cf", "name": "\u5165\u6d41\u91cf", "unit": "", "units": ["traffic", "B/S"]}], "colors": [], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "custom", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": [], "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "connectNulls": true, "legendValues": "", "timeInterval": "auto", "compareColors": {"dayCompare": "rgba(11,11,12,0.5)", "hourCompare": "#0B0B0C", "weekCompare": "rgba(11,11,12,0.3)", "monthCompare": "rgba(11,11,12,0.12)"}, "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "compareColorsDark": {"dayCompare": "rgba(213,217,226,0.5)", "hourCompare": "#D5D9E2", "weekCompare": "rgba(213,217,226,0.25)", "monthCompare": "rgba(213,217,226,0.12)"}, "onlyShowGroupName": false, "compareColorsLight": {"dayCompare": "rgba(11,11,12,0.5)", "hourCompare": "#0B0B0C", "weekCompare": "rgba(11,11,12,0.3)", "monthCompare": "rgba(11,11,12,0.12)"}, "tableSortMetricName": "last(BytesInPerSec.Count)", "openThousandsSeparator": true, "mainMeasurementQueryCode": "B"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Topic"}, "name": "BytesInPerSec", "pos": {"h": 9, "w": 8, "x": 0, "y": 9}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_topics`:(avg(`BytesInPerSec.Count`) AS `\u5165\u6d41\u91cf`) { `host` = '#{host}' } BY `host`", "code": "B", "fill": null, "type": "simple", "alias": "\u5165\u6d41\u91cf", "field": "BytesInPerSec.Count", "filters": [{"id": "65d1fbb0-7b81-11eb-b5c6-45fe7ccbc2b1", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": ["host"], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_topics", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"mark": {"axis": "x", "data": [], "type": "area"}, "alias": [], "units": [{"key": "\u51fa\u6d41\u91cf", "name": "\u51fa\u6d41\u91cf", "unit": "", "units": ["traffic", "B/S"]}], "colors": [], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "custom", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": [], "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "connectNulls": true, "legendValues": "", "timeInterval": "auto", "compareColors": {"dayCompare": "rgba(11,11,12,0.5)", "hourCompare": "#0B0B0C", "weekCompare": "rgba(11,11,12,0.3)", "monthCompare": "rgba(11,11,12,0.12)"}, "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "compareColorsDark": {"dayCompare": "rgba(213,217,226,0.5)", "hourCompare": "#D5D9E2", "weekCompare": "rgba(213,217,226,0.25)", "monthCompare": "rgba(213,217,226,0.12)"}, "onlyShowGroupName": false, "compareColorsLight": {"dayCompare": "rgba(11,11,12,0.5)", "hourCompare": "#0B0B0C", "weekCompare": "rgba(11,11,12,0.3)", "monthCompare": "rgba(11,11,12,0.12)"}, "tableSortMetricName": "last(BytesInPerSec.Count)", "openThousandsSeparator": true, "mainMeasurementQueryCode": "B"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Topic"}, "name": "BytesOutPerSec", "pos": {"h": 9, "w": 8, "x": 8, "y": 9}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "non_negative_derivative(\"M::`kafka_topics`:(avg(`BytesOutPerSec.Count`) AS `\u51fa\u6d41\u91cf`) { `host` = '#{host}' } BY `host`\")", "code": "B", "fill": null, "type": "simple", "alias": "\u51fa\u6d41\u91cf", "field": "BytesOutPerSec.Count", "filters": [{"id": "65d1fbb0-7b81-11eb-b5c6-45fe7ccbc2b1", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": ["host"], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_topics", "queryFuncs": [{"args": [], "name": "non_negative_derivative"}], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "bgColor": "#498BFE", "mappings": [], "pageSize": 50, "showLine": false, "unitType": "global", "fixedTime": "", "fontColor": "", "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", "showTitle": true, "titleDesc": "", "downsample": "last", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "compareTitle": "", "showLineAxis": false, "timeInterval": "auto", "isTimeInterval": false, "changeWorkspace": false, "currentChartType": "singlestat", "showFieldMapping": false, "sequenceChartType": "line", "openThousandsSeparator": true}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Overview"}, "name": "ActiveControllerCount", "pos": {"h": 8, "w": 3, "x": 0, "y": 0}, "type": "singlestat", "queries": [{"name": "", "type": "singlestat", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_controller`:(avg(`ActiveControllerCount.Value`)) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "", "field": "ActiveControllerCount.Value", "density": "medium", "filters": [{"id": "07f2b970-c380-11eb-8967-fb1050d86707", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": ["last"], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_controller", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "bgColor": "#A0DD86", "mappings": [], "pageSize": 50, "showLine": false, "unitType": "global", "fixedTime": "", "fontColor": "", "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", "showTitle": true, "titleDesc": "", "downsample": "last", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "compareTitle": "", "showLineAxis": false, "timeInterval": "auto", "isTimeInterval": false, "changeWorkspace": false, "currentChartType": "singlestat", "showFieldMapping": false, "sequenceChartType": "line", "openThousandsSeparator": true}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Overview"}, "name": "OfflinePartitionsCount", "pos": {"h": 8, "w": 3, "x": 12, "y": 0}, "type": "singlestat", "queries": [{"name": "", "type": "singlestat", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_controller`:(avg(`OfflinePartitionsCount.Value`)) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "", "field": "OfflinePartitionsCount.Value", "density": "medium", "filters": [{"id": "582c4aa0-c380-11eb-b98e-df59d31b9dd6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": ["last"], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_controller", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "bgColor": "#5F67D6", "mappings": [], "pageSize": 50, "showLine": false, "unitType": "global", "fixedTime": "", "fontColor": "", "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", "showTitle": true, "titleDesc": "", "downsample": "last", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "compareTitle": "", "showLineAxis": false, "timeInterval": "auto", "isTimeInterval": false, "changeWorkspace": false, "currentChartType": "singlestat", "showFieldMapping": false, "sequenceChartType": "line", "openThousandsSeparator": true}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Overview"}, "name": "OfflineLogDirectoryCount", "pos": {"h": 8, "w": 3, "x": 21, "y": 0}, "type": "singlestat", "queries": [{"name": "", "type": "singlestat", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_log`:(avg(`OfflineLogDirectoryCount`)) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "", "field": "OfflineLogDirectoryCount", "density": "medium", "filters": [{"id": "582c4aa0-c380-11eb-b98e-df59d31b9dd6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": ["last"], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_log", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "slimit": 20, "density": "medium", "mappings": [], "pageSize": 50, "showLine": false, "unitType": "global", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "lineColor": "#c23531", "openStack": false, "precision": "2", "queryMode": "toMergeColumn", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "downsample": "last", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "compareTitle": "", "connectNulls": true, "legendValues": "", "showLineAxis": false, "timeInterval": "default", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "\u4e8b\u4ef6\u961f\u5217", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Overview"}, "name": "LeaderElection", "pos": {"h": 10, "w": 5, "x": 12, "y": 8}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_controller`:(avg(`LeaderElectionRateAndTimeMs.Count`) AS `LeaderElection`) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "LeaderElection", "field": "LeaderElectionRateAndTimeMs.Count", "filters": [{"id": "c839c9c0-c381-11eb-b98e-df59d31b9dd6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_controller", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}, {"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_controller`:(avg(`UncleanLeaderElectionsPerSec.Count`) AS `Unclean LeaderElection`) { `host` = '#{host}' }", "code": "B", "fill": null, "type": "simple", "alias": "Unclean LeaderElection", "field": "UncleanLeaderElectionsPerSec.Count", "filters": [{"id": "d9fe6ee0-c381-11eb-b98e-df59d31b9dd6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_controller", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "index": "default", "units": [], "colors": [], "levels": [], "unitType": "global", "fixedTime": "", "inColumns": [{"field": "time", "headerName": "\u65f6\u95f4"}], "showTitle": true, "titleDesc": "", "addColumns": [{"field": "message", "headerName": "\u6d88\u606f"}, {"hide": true, "field": "status"}, {"hide": true, "field": "__docid"}], "globalUnit": [], "isSampling": true, "valMappings": [], "timeInterval": "", "isTimeInterval": false, "changeWorkspace": false, "currentChartType": "log", "showFieldMapping": false, "valColorMappings": []}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Logs"}, "name": "Logs", "pos": {"h": 17, "w": 24, "x": 0, "y": 0}, "type": "log", "queries": [{"name": "", "type": "log", "unit": "", "color": "", "qtype": "dql", "query": {"q": "L('default')::`kafka`:(`message`, `status`, `__docid`) { `host` = '#{host}' }", "code": "A", "fill": "", "type": "simple", "alias": "\u6d88\u606f", "field": null, "fields": [{"alias": "\u6d88\u606f", "field": "message"}, {"hide": true, "field": "status"}, {"hide": true, "field": "__docid"}], "search": "", "filters": [{"id": "204bce90-1639-11ee-bc97-1578a8bd4960", "op": "=", "name": "host", "type": "keyword", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "count", "fieldType": "text", "highlight": true, "namespace": "logging", "dataSource": "kafka", "queryFuncs": [], "groupByTime": "", "indexFilter": "default", "disableMultipleField": false}, "datasource": "dataflux", "noTimeRange": false}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "unitType": "global", "fixedTime": "", "showTitle": true, "titleDesc": "", "globalUnit": [], "isSampling": true, "timeInterval": "auto", "isTimeInterval": false, "changeWorkspace": false, "showFieldMapping": false}}, "group": {"name": "Introduction"}, "name": "Instructions", "pos": {"h": 8, "w": 24, "x": 0, "y": 0}, "type": "text", "queries": [{"name": "", "query": {"content": "The datakit kafka collector can pull various metrics from Kafka instances, such as requests, topics, and more, and gather these metrics into the observability cloud to help monitor and analyze various anomalies in Kafka.\n\n\nhttps://docs.guance.com/datakit/kafka/"}}]}, {"extend": {"settings": {"mark": {"axis": "x", "data": [], "type": "area"}, "alias": [], "units": [{"key": "\u5165\u6d41\u91cf", "name": "\u5165\u6d41\u91cf", "unit": "", "units": ["traffic", "B/S"]}], "colors": [], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "custom", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": [], "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "connectNulls": true, "legendValues": "", "timeInterval": "auto", "compareColors": {"dayCompare": "rgba(11,11,12,0.5)", "hourCompare": "#0B0B0C", "weekCompare": "rgba(11,11,12,0.3)", "monthCompare": "rgba(11,11,12,0.12)"}, "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "compareColorsDark": {"dayCompare": "rgba(213,217,226,0.5)", "hourCompare": "#D5D9E2", "weekCompare": "rgba(213,217,226,0.25)", "monthCompare": "rgba(213,217,226,0.12)"}, "onlyShowGroupName": false, "compareColorsLight": {"dayCompare": "rgba(11,11,12,0.5)", "hourCompare": "#0B0B0C", "weekCompare": "rgba(11,11,12,0.3)", "monthCompare": "rgba(11,11,12,0.12)"}, "tableSortMetricName": "last(BytesInPerSec.Count)", "openThousandsSeparator": true, "mainMeasurementQueryCode": "B"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Topic"}, "name": "BytesRejectedPerSec", "pos": {"h": 9, "w": 8, "x": 16, "y": 18}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_topics`:(avg(`BytesRejectedPerSec.Count`) AS `\u62d2\u7edd\u6d41\u91cf`) { `host` = '#{host}' } BY `host`", "code": "B", "fill": null, "type": "simple", "alias": "\u62d2\u7edd\u6d41\u91cf", "field": "BytesRejectedPerSec.Count", "filters": [{"id": "65d1fbb0-7b81-11eb-b5c6-45fe7ccbc2b1", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": ["host"], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_topics", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"mark": {"axis": "x", "data": [], "type": "area"}, "alias": [], "units": [{"key": "\u5165\u6d41\u91cf", "name": "\u5165\u6d41\u91cf", "unit": "", "units": ["traffic", "B/S"]}], "colors": [], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "global", "chartType": "line", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": [], "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "connectNulls": true, "legendValues": "", "timeInterval": "auto", "compareColors": {"dayCompare": "rgba(11,11,12,0.5)", "hourCompare": "#0B0B0C", "weekCompare": "rgba(11,11,12,0.3)", "monthCompare": "rgba(11,11,12,0.12)"}, "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "compareColorsDark": {"dayCompare": "rgba(213,217,226,0.5)", "hourCompare": "#D5D9E2", "weekCompare": "rgba(213,217,226,0.25)", "monthCompare": "rgba(213,217,226,0.12)"}, "onlyShowGroupName": false, "compareColorsLight": {"dayCompare": "rgba(11,11,12,0.5)", "hourCompare": "#0B0B0C", "weekCompare": "rgba(11,11,12,0.3)", "monthCompare": "rgba(11,11,12,0.12)"}, "tableSortMetricName": "last(BytesInPerSec.Count)", "openThousandsSeparator": true, "mainMeasurementQueryCode": "B"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Topic"}, "name": "TotalProduceRequestsPerSec", "pos": {"h": 9, "w": 8, "x": 0, "y": 18}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_topics`:(count(`TotalProduceRequestsPerSec.Count`) AS `\u751f\u4ea7\u8bf7\u6c42\u9891\u7387`) { `host` = '#{host}' } BY `host`", "code": "B", "fill": null, "type": "simple", "alias": "\u751f\u4ea7\u8bf7\u6c42\u9891\u7387", "field": "TotalProduceRequestsPerSec.Count", "filters": [{"id": "65d1fbb0-7b81-11eb-b5c6-45fe7ccbc2b1", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": ["host"], "funcList": [], "fieldFunc": "count", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_topics", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"mark": {"axis": "x", "data": [], "type": "area"}, "alias": [], "units": [{"key": "\u5165\u6d41\u91cf", "name": "\u5165\u6d41\u91cf", "unit": "", "units": ["traffic", "B/S"]}], "colors": [], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "global", "chartType": "line", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": [], "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "connectNulls": true, "legendValues": "", "timeInterval": "auto", "compareColors": {"dayCompare": "rgba(11,11,12,0.5)", "hourCompare": "#0B0B0C", "weekCompare": "rgba(11,11,12,0.3)", "monthCompare": "rgba(11,11,12,0.12)"}, "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "compareColorsDark": {"dayCompare": "rgba(213,217,226,0.5)", "hourCompare": "#D5D9E2", "weekCompare": "rgba(213,217,226,0.25)", "monthCompare": "rgba(213,217,226,0.12)"}, "onlyShowGroupName": false, "compareColorsLight": {"dayCompare": "rgba(11,11,12,0.5)", "hourCompare": "#0B0B0C", "weekCompare": "rgba(11,11,12,0.3)", "monthCompare": "rgba(11,11,12,0.12)"}, "tableSortMetricName": "last(BytesInPerSec.Count)", "openThousandsSeparator": true, "mainMeasurementQueryCode": "B"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Topic"}, "name": "TotalFetchRequestsPerSec", "pos": {"h": 9, "w": 8, "x": 8, "y": 18}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_topics`:(last(`TotalFetchRequestsPerSec.Count`) AS `\u6d88\u8d39\u8bf7\u6c42\u9891\u7387`) { `host` = '#{host}' } BY `host`", "code": "B", "fill": null, "type": "simple", "alias": "\u6d88\u8d39\u8bf7\u6c42\u9891\u7387", "field": "TotalFetchRequestsPerSec.Count", "filters": [{"id": "65d1fbb0-7b81-11eb-b5c6-45fe7ccbc2b1", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": ["host"], "funcList": [], "fieldFunc": "last", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_topics", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"mark": {"axis": "x", "data": [], "type": "area"}, "alias": [], "units": [{"key": "\u751f\u4ea7\u8005\u8bf7\u6c42\u65f6\u95f4", "name": "\u751f\u4ea7\u8005\u8bf7\u6c42\u65f6\u95f4", "unit": "", "units": ["time", "ms"]}], "colors": [{"key": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", "name": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", "tags": {"host": "iZbp18k3nmsg02frvgelyxZ"}, "color": "#498BFE"}], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "custom", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": [], "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "connectNulls": true, "legendValues": "", "timeInterval": "auto", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "last(AtMinIsrPartitionCount.Value)", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Performance Monitoring"}, "name": "LocalTimeMs", "pos": {"h": 11, "w": 8, "x": 0, "y": 11}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_request`:(avg(`LocalTimeMs.Count`) AS `LocalTimeMs`) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "LocalTimeMs", "field": "LocalTimeMs.Count", "fillNum": null, "filters": [{"id": "8bf61940-7b7a-11eb-95bf-4f081fe3b009", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_request", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"mark": {"axis": "x", "data": [], "type": "area"}, "alias": [], "units": [{"key": "\u961f\u5217\u8bf7\u6c42\u65f6\u95f4", "name": "\u961f\u5217\u8bf7\u6c42\u65f6\u95f4", "unit": "", "units": []}], "colors": [{"key": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", "name": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", "tags": {"host": "iZbp18k3nmsg02frvgelyxZ"}, "color": "#498BFE"}], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "custom", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": [], "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "connectNulls": true, "legendValues": "", "timeInterval": "auto", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "last(AtMinIsrPartitionCount.Value)", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Performance Monitoring"}, "name": "RequestQueueTimeMs", "pos": {"h": 11, "w": 8, "x": 8, "y": 11}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_request`:(avg(`RequestQueueTimeMs.Count`) AS `RequestQueueTimeMs`) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "RequestQueueTimeMs", "field": "RequestQueueTimeMs.Count", "fillNum": null, "filters": [{"id": "8bf61940-7b7a-11eb-95bf-4f081fe3b009", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_request", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"mark": {"axis": "x", "data": [], "type": "area"}, "alias": [], "units": [{"key": "\u961f\u5217\u8bf7\u6c42\u65f6\u95f4", "name": "\u961f\u5217\u8bf7\u6c42\u65f6\u95f4", "unit": "", "units": []}], "colors": [{"key": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", "name": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", "tags": {"host": "iZbp18k3nmsg02frvgelyxZ"}, "color": "#498BFE"}], "levels": [], "slimit": 20, "density": "medium", "showLine": false, "unitType": "custom", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "openStack": false, "precision": "2", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "globalUnit": [], "isSampling": true, "compareType": [], "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "connectNulls": true, "legendValues": "", "timeInterval": "auto", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "last(AtMinIsrPartitionCount.Value)", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Performance Monitoring"}, "name": "ResponseQueueTimeMs", "pos": {"h": 11, "w": 8, "x": 16, "y": 11}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_request`:(avg(`ResponseQueueTimeMs.Count`) AS `ResponseQueueTimeMs.Count`) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "ResponseQueueTimeMs.Count", "field": "ResponseQueueTimeMs.Count", "fillNum": null, "filters": [{"id": "8bf61940-7b7a-11eb-95bf-4f081fe3b009", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_request", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "bgColor": "#C57ECD", "mappings": [], "pageSize": 50, "showLine": false, "unitType": "global", "fixedTime": "", "fontColor": "", "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", "showTitle": true, "titleDesc": "", "downsample": "last", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "compareTitle": "", "showLineAxis": false, "timeInterval": "auto", "isTimeInterval": false, "changeWorkspace": false, "currentChartType": "singlestat", "showFieldMapping": false, "sequenceChartType": "line", "openThousandsSeparator": true}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Overview"}, "name": "UnderMinIsrPartitionCount", "pos": {"h": 8, "w": 3, "x": 15, "y": 0}, "type": "singlestat", "queries": [{"name": "", "type": "singlestat", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_replica_manager`:(count(`UnderMinIsrPartitionCount`)) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "", "field": "UnderMinIsrPartitionCount", "density": "medium", "filters": [{"id": "582c4aa0-c380-11eb-b98e-df59d31b9dd6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": ["last"], "fieldFunc": "count", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_replica_manager", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "bgColor": "#5F67D6", "mappings": [], "pageSize": 50, "showLine": false, "unitType": "global", "fixedTime": "", "fontColor": "", "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", "showTitle": true, "titleDesc": "", "downsample": "last", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "compareTitle": "", "showLineAxis": false, "timeInterval": "auto", "isTimeInterval": false, "changeWorkspace": false, "currentChartType": "singlestat", "showFieldMapping": false, "sequenceChartType": "line", "openThousandsSeparator": true}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Overview"}, "name": "DeadThreadCount", "pos": {"h": 8, "w": 3, "x": 18, "y": 0}, "type": "singlestat", "queries": [{"name": "", "type": "singlestat", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_log`:(avg(`DeadThreadCount`)) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "", "field": "DeadThreadCount", "density": "medium", "filters": [{"id": "582c4aa0-c380-11eb-b98e-df59d31b9dd6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": ["last"], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_log", "queryFuncs": [], "groupByTime": ""}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "slimit": 20, "density": "medium", "mappings": [], "pageSize": 50, "showLine": false, "unitType": "global", "chartType": "areaLine", "fixedTime": "", "isPercent": false, "lineColor": "#c23531", "openStack": false, "precision": "2", "queryMode": "toMergeColumn", "showLabel": false, "showTitle": true, "stackType": "time", "titleDesc": "", "downsample": "last", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "yAxixMaxVal": null, "yAxixMinVal": null, "compareTitle": "", "connectNulls": true, "legendValues": [], "showLineAxis": false, "timeInterval": "default", "legendPostion": "none", "maxPointCount": 360, "sorderByOrder": "desc", "xAxisShowType": "time", "isTimeInterval": true, "changeWorkspace": false, "currentChartType": "sequence", "showFieldMapping": false, "onlyShowGroupName": false, "tableSortMetricName": "\u4e8b\u4ef6\u961f\u5217", "openThousandsSeparator": true, "mainMeasurementQueryCode": "A"}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Overview"}, "name": "NetworkProcessorAvgIdlePercent", "pos": {"h": 10, "w": 4, "x": 17, "y": 8}, "type": "sequence", "queries": [{"name": "", "type": "sequence", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_network`:(avg(`NetworkProcessorAvgIdlePercent`) AS `\u7a7a\u95f2\u7387`) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "\u7a7a\u95f2\u7387", "field": "NetworkProcessorAvgIdlePercent", "filters": [{"id": "c839c9c0-c381-11eb-b98e-df59d31b9dd6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": [], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_network", "queryFuncs": [], "groupByTime": "", "additionalFields": null}, "datasource": "dataflux"}]}, {"extend": {"settings": {"alias": [], "units": [], "colors": [], "levels": [], "bgColor": "#5F67D6", "mappings": [], "pageSize": 50, "showLine": false, "unitType": "global", "fixedTime": "", "fontColor": "", "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", "showTitle": true, "titleDesc": "", "downsample": "last", "globalUnit": [], "isSampling": true, "compareType": "", "openCompare": false, "compareTitle": "", "showLineAxis": false, "timeInterval": "auto", "isTimeInterval": false, "changeWorkspace": false, "currentChartType": "singlestat", "showFieldMapping": false, "sequenceChartType": "line", "openThousandsSeparator": true}, "fixedTime": "", "isRefresh": false}, "group": {"name": "Overview"}, "name": "UncleanLeaderElectionsPerSec", "pos": {"h": 10, "w": 3, "x": 21, "y": 8}, "type": "singlestat", "queries": [{"name": "", "type": "singlestat", "unit": "", "color": "", "qtype": "dql", "query": {"q": "M::`kafka_controller`:(avg(`UncleanLeaderElectionsPerSec.Count`)) { `host` = '#{host}' }", "code": "A", "fill": null, "type": "simple", "alias": "", "field": "UncleanLeaderElectionsPerSec.Count", "density": "medium", "filters": [{"id": "582c4aa0-c380-11eb-b98e-df59d31b9dd6", "op": "=", "name": "host", "type": "", "logic": "and", "value": "#{host}"}], "groupBy": [], "funcList": ["last"], "fieldFunc": "avg", "fieldType": "float", "namespace": "metric", "dataSource": "kafka_controller", "queryFuncs": [], "groupByTime": "", "additionalFields": null}, "datasource": "dataflux"}]}], "groups": [{"name": "Introduction", "extend": {}}, {"name": "Overview", "extend": {}}, {"name": "Topic", "extend": {}}, {"name": "Replica Management", "extend": {}}, {"name": "Performance Monitoring", "extend": {}}, {"name": "Purgatory", "extend": {}}, {"name": "Logs", "extend": {}}], "type": "template"}} \ No newline at end of file diff --git a/internal/export/dashboard/kafka/kafka.json b/internal/export/dashboard/kafka/kafka__zh.json similarity index 57% rename from internal/export/dashboard/kafka/kafka.json rename to internal/export/dashboard/kafka/kafka__zh.json index 6102e481f9..95b18651f1 100644 --- a/internal/export/dashboard/kafka/kafka.json +++ b/internal/export/dashboard/kafka/kafka__zh.json @@ -1,128 +1,140 @@ { - "dashboardBindSet": [], - "dashboardExtend": {}, + "title": "Kafka 监控视图", + "dashboardType": "CUSTOM", + "dashboardExtend": { + "groupUnfoldStatus": { + "Topic": true, + "概览": true, + "简介": true + } + }, "dashboardMapping": [], "dashboardOwnerType": "node", - "dashboardType": "CUSTOM", "iconSet": { - "icon": "https://static-res.guance.com/dataflux-template/dashboard/kafka/icon.svg", - "url": "https://static-res.guance.com/dataflux-template/dashboard/kafka/kafka.png" + "url": "https://static-res.guance.com/dataflux-template/dashboard/zh/kafka/kafka.png", + "icon": "https://static-res.guance.com/dataflux-template/dashboard/zh/kafka/icon.svg" }, + "dashboardBindSet": [], + "thumbnail": "", + "tagInfo": [], + "summary": "", "main": { + "vars": [ + { + "name": "主机名", + "seq": 0, + "datasource": "dataflux", + "code": "host", + "type": "QUERY", + "definition": { + "tag": "", + "field": "", + "value": "show_tag_value(from=['kafka_controller'], keyin=['host'])", + "metric": "", + "object": "", + "defaultVal": { + "label": "*", + "value": "re(`.*`)" + } + }, + "valueSort": "", + "hide": 0, + "isHiddenAsterisk": 0, + "multiple": true, + "includeStar": true + } + ], "charts": [ { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { "alias": [], - "bgColor": "#00B2CE", + "units": [], "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "singlestat", - "downsample": "last", - "fixedTime": "", - "fontColor": "", - "isTimeInterval": false, "levels": [], - "lineColor": "#c23531", + "bgColor": "#00B2CE", "mappings": [], - "openCompare": false, "pageSize": 50, + "showLine": false, + "fixedTime": "", + "fontColor": "", + "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", - "showFieldMapping": false, - "showLine": false, - "showLineAxis": false, "showTitle": true, - "timeInterval": "default", "titleDesc": "", - "units": [] - } + "downsample": "last", + "compareType": "", + "openCompare": false, + "compareTitle": "", + "showLineAxis": false, + "timeInterval": "default", + "isTimeInterval": false, + "currentChartType": "singlestat", + "showFieldMapping": false + }, + "fixedTime": "", + "isRefresh": false }, "group": { - "name": "{{.Dashboard.overview}}" + "name": "概览" }, - "name": "{{.Dashboard.partitions}}", + "name": "分区数", "pos": { "h": 8, - "w": 4, - "x": 8, - "y": 13 + "w": 3, + "x": 6, + "y": 0 }, + "type": "singlestat", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "singlestat", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "", + "q": "M::`kafka_controller`:(AVG(`GlobalPartitionCount.Value`)) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_controller", - "density": "medium", - "field": "GlobalPartitionCount.Value", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "", + "field": "GlobalPartitionCount.Value", + "density": "medium", "filters": [ { "id": "1b0cdc70-c380-11eb-8967-fb1050d86707", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], + "groupBy": [], "funcList": [ "last" ], - "groupBy": [], - "groupByTime": "", + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "M::`kafka_controller`:(AVG(`GlobalPartitionCount.Value`)) { `host` = '#{host}' }", + "dataSource": "kafka_controller", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "singlestat", - "unit": "" + "datasource": "dataflux" } - ], - "type": "singlestat" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": true, "settings": { "alias": [], - "chartType": "areaLine", - "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "sequence", - "density": "low", - "fixedTime": "", - "isPercent": false, - "isTimeInterval": true, - "legendPostion": "none", - "legendValues": "", - "levels": [], - "openCompare": false, - "openStack": false, - "showFieldMapping": false, - "showLine": false, - "showTitle": true, - "stackType": "time", - "tableSortMetricName": "last(MessageConversionsTimeMs.Count)", - "timeInterval": "default", - "titleDesc": "", "units": [ { - "key": "{{.Dashboard.total_time}}", - "name": "{{.Dashboard.total_time}}", + "key": "总计时间", + "name": "总计时间", "unit": "", "units": [ "time", @@ -130,8 +142,8 @@ ] }, { - "key": "{{.Dashboard.message_conversion_time}}", - "name": "{{.Dashboard.message_conversion_time}}", + "key": "消息转换时间", + "name": "消息转换时间", "unit": "", "units": [ "time", @@ -139,8 +151,8 @@ ] }, { - "key": "{{.Dashboard.request_queue_time}}", - "name": "{{.Dashboard.request_queue_time}}", + "key": "请求队列时间", + "name": "请求队列时间", "unit": "", "units": [ "time", @@ -148,8 +160,8 @@ ] }, { - "key": "{{.Dashboard.response_queue_time}}", - "name": "{{.Dashboard.response_queue_time}}", + "key": "响应队列时间", + "name": "响应队列时间", "unit": "", "units": [ "time", @@ -157,304 +169,316 @@ ] } ], - "xAxisShowType": "time" - } + "colors": [], + "levels": [], + "density": "low", + "showLine": false, + "chartType": "areaLine", + "fixedTime": "", + "isPercent": false, + "openStack": false, + "showTitle": true, + "stackType": "time", + "titleDesc": "", + "compareType": "", + "openCompare": false, + "compareTitle": "", + "legendValues": "", + "timeInterval": "default", + "legendPostion": "none", + "xAxisShowType": "time", + "isTimeInterval": true, + "currentChartType": "sequence", + "showFieldMapping": false, + "tableSortMetricName": "last(MessageConversionsTimeMs.Count)" + }, + "fixedTime": "", + "isRefresh": true }, "group": { - "name": "{{.Dashboard.overview}}" + "name": "概览" }, - "name": "{{.Dashboard.total_time}}", + "name": "总计时间", "pos": { - "h": 9, - "w": 8, + "h": 10, + "w": 7, "x": 0, - "y": 21 + "y": 8 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.total_time}}", + "q": "M::`kafka_request`:(AVG(`TotalTimeMs.Count`) AS `总计时间`) { `host` = '#{host}' }", "code": "D", - "dataSource": "kafka_request", - "field": "TotalTimeMs.Count", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "alias": "总计时间", + "field": "TotalTimeMs.Count", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", "namespace": "metric", - "q": "M::`kafka_request`:(AVG(`TotalTimeMs.Count`) AS `{{.Dashboard.total_time}}`) { `host` = '#{host}' }", + "dataSource": "kafka_request", "queryFuncs": [], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" }, { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.message_conversion_time}}", + "q": "M::`kafka_request`:(AVG(`MessageConversionsTimeMs.Count`) AS `消息转换时间`) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_request", - "field": "MessageConversionsTimeMs.Count", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "alias": "消息转换时间", + "field": "MessageConversionsTimeMs.Count", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", "namespace": "metric", - "q": "M::`kafka_request`:(AVG(`MessageConversionsTimeMs.Count`) AS `{{.Dashboard.message_conversion_time}}`) { `host` = '#{host}' }", + "dataSource": "kafka_request", "queryFuncs": [], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" }, { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.request_queue_time}}", + "q": "M::`kafka_request`:(AVG(`RequestQueueTimeMs.Count`) AS `请求队列时间`) { `host` = '#{host}' }", "code": "B", - "dataSource": "kafka_request", - "field": "RequestQueueTimeMs.Count", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "alias": "请求队列时间", + "field": "RequestQueueTimeMs.Count", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", "namespace": "metric", - "q": "M::`kafka_request`:(AVG(`RequestQueueTimeMs.Count`) AS `{{.Dashboard.request_queue_time}}`) { `host` = '#{host}' }", + "dataSource": "kafka_request", "queryFuncs": [], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" }, { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.response_queue_time}}", + "q": "M::`kafka_request`:(AVG(`ResponseSendTimeMs.Count`) AS `响应队列时间`) { `host` = '#{host}' }", "code": "C", - "dataSource": "kafka_request", - "field": "ResponseSendTimeMs.Count", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "alias": "响应队列时间", + "field": "ResponseSendTimeMs.Count", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", "namespace": "metric", - "q": "M::`kafka_request`:(AVG(`ResponseSendTimeMs.Count`) AS `{{.Dashboard.response_queue_time}}`) { `host` = '#{host}' }", + "dataSource": "kafka_request", "queryFuncs": [], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": true, "settings": { - "alias": [], - "chartType": "areaLine", - "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "sequence", - "density": "medium", - "fixedTime": "", - "isPercent": false, - "isTimeInterval": true, - "legendPostion": "none", - "legendValues": "", - "levels": [], "mark": { "axis": "x", "data": [], "type": "area" }, - "openCompare": false, - "openStack": false, - "showFieldMapping": false, + "alias": [], + "units": [], + "colors": [], + "levels": [], + "density": "medium", "showLine": false, + "chartType": "areaLine", + "fixedTime": "", + "isPercent": false, + "openStack": false, "showTitle": true, "stackType": "time", - "tableSortMetricName": "kafka_topics_FetchMessageConversionsPerSec.Count", - "timeInterval": "default", "titleDesc": "", - "units": [], - "xAxisShowType": "time" - } - }, - "group": { - "name": "Topic" - }, - "name": "{{.Dashboard.message_conversion}}", - "pos": { - "h": 9, - "w": 8, - "x": 16, - "y": 32.5 - }, - "queries": [ + "compareType": "", + "openCompare": false, + "compareTitle": "", + "legendValues": "", + "timeInterval": "default", + "legendPostion": "none", + "xAxisShowType": "time", + "isTimeInterval": true, + "currentChartType": "sequence", + "showFieldMapping": false, + "tableSortMetricName": "kafka_topics_FetchMessageConversionsPerSec.Count" + }, + "fixedTime": "", + "isRefresh": true + }, + "group": { + "name": "Topic" + }, + "name": "消息转换", + "pos": { + "h": 9, + "w": 8, + "x": 16, + "y": 0 + }, + "type": "sequence", + "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.fetch_message_conversion_per_sec}}", + "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`FetchMessageConversionsPerSec.Count`) AS `每秒 Fetch 消息转换`) { `host` = '#{host}' }\")", "code": "A", - "dataSource": "kafka_topics", - "field": "FetchMessageConversionsPerSec.Count", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "alias": "每秒 Fetch 消息转换", + "field": "FetchMessageConversionsPerSec.Count", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", "namespace": "metric", - "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`FetchMessageConversionsPerSec.Count`) AS `{{.Dashboard.fetch_message_conversion_per_sec}}`) { `host` = '#{host}' }\")", + "dataSource": "kafka_topics", "queryFuncs": [ { "args": [], "name": "non_negative_derivative" } ], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" }, { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.produce_message_conversion_per_sec}}", + "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`ProduceMessageConversionsPerSec.Count`) AS `每秒 Produce 消息转换`) { `host` = '#{host}' }\")", "code": "B", - "dataSource": "kafka_topics", - "field": "ProduceMessageConversionsPerSec.Count", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "alias": "每秒 Produce 消息转换", + "field": "ProduceMessageConversionsPerSec.Count", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", "namespace": "metric", - "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`ProduceMessageConversionsPerSec.Count`) AS `{{.Dashboard.produce_message_conversion_per_sec}}`) { `host` = '#{host}' }\")", + "dataSource": "kafka_topics", "queryFuncs": [ { "args": [], "name": "non_negative_derivative" } ], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { "settings": { - "chartType": "areaLine", - "colors": [], - "currentChartType": "sequence", - "density": "medium", - "levels": [], "mark": { "axis": "x", "data": [], "type": "area" }, - "openCompare": false, - "openStack": false, - "showFieldMapping": false, - "showLine": false, - "stackType": "time", - "tableSortMetricName": "kafka_topics_BytesInPerSec.Count", "units": [ { - "key": "{{.Dashboard.inflow}}", - "name": "{{.Dashboard.inflow}}", + "key": "入流量", + "name": "入流量", "unit": "", "units": [ "traffic", @@ -462,8 +486,8 @@ ] }, { - "key": "{{.Dashboard.outflow}}", - "name": "{{.Dashboard.outflow}}", + "key": "出流量", + "name": "出流量", "unit": "", "units": [ "traffic", @@ -471,614 +495,626 @@ ] } ], - "xAxisShowType": "time" + "colors": [], + "levels": [], + "density": "medium", + "showLine": false, + "chartType": "areaLine", + "openStack": false, + "stackType": "time", + "openCompare": false, + "xAxisShowType": "time", + "currentChartType": "sequence", + "showFieldMapping": false, + "tableSortMetricName": "kafka_topics_BytesInPerSec.Count" } }, "group": { "name": "Topic" }, - "name": "{{.Dashboard.network_traffic}}", + "name": "网络流量", "pos": { "h": 9, "w": 8, "x": 16, - "y": 41.5 + "y": 9 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.inflow}}", + "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`BytesInPerSec.Count`) AS `入流量`) { `host` = '#{host}' }\")", "code": "A", - "dataSource": "kafka_topics", - "field": "BytesInPerSec.Count", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "入流量", + "field": "BytesInPerSec.Count", "filters": [ { "id": "109bf340-c383-11eb-b98e-df59d31b9dd6", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`BytesInPerSec.Count`) AS `{{.Dashboard.inflow}}`) { `host` = '#{host}' }\")", + "dataSource": "kafka_topics", "queryFuncs": [ { "args": [], "name": "non_negative_derivative" } ], - "type": "simple" + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" }, { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.outflow}}", + "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`BytesOutPerSec.Count`) AS `出流量`) { `host` = '#{host}' }\")", "code": "B", - "dataSource": "kafka_topics", - "field": "BytesOutPerSec.Count", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "出流量", + "field": "BytesOutPerSec.Count", "filters": [ { "id": "2206b890-c383-11eb-b98e-df59d31b9dd6", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`BytesOutPerSec.Count`) AS `{{.Dashboard.outflow}}`) { `host` = '#{host}' }\")", + "dataSource": "kafka_topics", "queryFuncs": [ { "args": [], "name": "non_negative_derivative" } ], - "type": "simple" + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { "alias": [], - "chartType": "areaLine", + "units": [], "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "sequence", + "levels": [], "density": "medium", + "showLine": false, + "chartType": "areaLine", "fixedTime": "", "isPercent": false, - "isTimeInterval": true, - "legendPostion": "none", - "legendValues": "", - "levels": [], - "openCompare": false, "openStack": false, - "showFieldMapping": false, - "showLine": false, "showTitle": true, "stackType": "time", - "tableSortMetricName": "{{.Dashboard.total_fetch_requests_per_sec}}", - "timeInterval": "default", "titleDesc": "", - "units": [], - "xAxisShowType": "time" - } + "compareType": "", + "openCompare": false, + "compareTitle": "", + "legendValues": "", + "timeInterval": "default", + "legendPostion": "none", + "xAxisShowType": "time", + "isTimeInterval": true, + "currentChartType": "sequence", + "showFieldMapping": false, + "tableSortMetricName": "每秒 Fetch 请求总计" + }, + "fixedTime": "", + "isRefresh": false }, "group": { "name": "Topic" }, - "name": "{{.Dashboard.total_requests}}", + "name": "请求总计", "pos": { "h": 9, "w": 8, "x": 0, - "y": 32.5 + "y": 0 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.total_produce_requests_per_sec}}", + "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`TotalProduceRequestsPerSec.Count`) AS `每秒 Produce 请求总计`) { `host` = '#{host}' }\")", "code": "B", - "dataSource": "kafka_topics", - "field": "TotalProduceRequestsPerSec.Count", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "dql", + "alias": "每秒 Produce 请求总计", + "field": "TotalProduceRequestsPerSec.Count", "fillNum": null, "filters": [ { "id": "9b43a0a0-55dc-11ed-90f8-85b96def89df", - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`TotalProduceRequestsPerSec.Count`) AS `{{.Dashboard.total_produce_requests_per_sec}}`) { `host` = '#{host}' }\")", + "dataSource": "kafka_topics", "queryFuncs": [ { "args": [], "name": "non_negative_derivative" } ], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" }, { - "color": "", - "datasource": "dataflux", - "disabled": true, "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.total_fetch_requests_per_sec}}", + "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`TotalFetchRequestsPerSec.Count`) AS `每秒 Fetch 请求总计`) { `host` = '#{host}' }\")", "code": "A", - "dataSource": "kafka_topics", - "field": "TotalFetchRequestsPerSec.Count", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "alias": "每秒 Fetch 请求总计", + "field": "TotalFetchRequestsPerSec.Count", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", "namespace": "metric", - "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`TotalFetchRequestsPerSec.Count`) AS `{{.Dashboard.total_fetch_requests_per_sec}}`) { `host` = '#{host}' }\")", + "dataSource": "kafka_topics", "queryFuncs": [ { "args": [], "name": "non_negative_derivative" } ], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "disabled": true, + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": true, "settings": { "alias": [], - "chartType": "areaLine", + "units": [], "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "sequence", + "levels": [], "density": "medium", + "showLine": false, + "chartType": "areaLine", "fixedTime": "", "isPercent": false, - "isTimeInterval": true, - "legendPostion": "none", - "legendValues": "", - "levels": [], - "openCompare": false, "openStack": false, - "showFieldMapping": false, - "showLine": false, "showTitle": true, "stackType": "time", - "tableSortMetricName": "{{.Dashboard.failed_fetch_requests_per_sec}}", - "timeInterval": "default", "titleDesc": "", - "units": [], - "xAxisShowType": "time" - } + "compareType": "", + "openCompare": false, + "compareTitle": "", + "legendValues": "", + "timeInterval": "default", + "legendPostion": "none", + "xAxisShowType": "time", + "isTimeInterval": true, + "currentChartType": "sequence", + "showFieldMapping": false, + "tableSortMetricName": "每秒 Fetch 请求失败数" + }, + "fixedTime": "", + "isRefresh": true }, "group": { "name": "Topic" }, - "name": "{{.Dashboard.failed_request}}", + "name": "请求失败", "pos": { "h": 9, "w": 8, "x": 8, - "y": 32.5 + "y": 0 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.failed_fetch_requests_per_sec}}", + "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`FailedFetchRequestsPerSec.Count`) AS ``) { `host` = '#{host}' }\")", "code": "A", - "dataSource": "kafka_topics", - "field": "FailedFetchRequestsPerSec.Count", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "alias": "每秒 Fetch 请求失败数", + "field": "FailedFetchRequestsPerSec.Count", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", "namespace": "metric", - "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`FailedFetchRequestsPerSec.Count`) AS `{{.Dashboard.fetch_failed_per_sec}}`) { `host` = '#{host}' }\")", + "dataSource": "kafka_topics", "queryFuncs": [ { "args": [], "name": "non_negative_derivative" } ], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" }, { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.failed_produce_requests_per_sec}}", + "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`FailedProduceRequestsPerSec.Count`) AS `每秒 Produce 请求失败数`) { `host` = '#{host}' }\")", "code": "B", - "dataSource": "kafka_topics", - "field": "FailedProduceRequestsPerSec.Count", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "alias": "每秒 Produce 请求失败数", + "field": "FailedProduceRequestsPerSec.Count", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", "namespace": "metric", - "q": "NON_NEGATIVE_DERIVATIVE(\"M::`kafka_topics`:(AVG(`FailedProduceRequestsPerSec.Count`) AS `{{.Dashboard.failed_produce_requests_per_sec}}`) { `host` = '#{host}' }\")", + "dataSource": "kafka_topics", "queryFuncs": [ { "args": [], "name": "non_negative_derivative" } ], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": true, "settings": { "alias": [], - "chartType": "areaLine", + "units": [], "colors": [ { - "color": "rgba(65,206,199,1)", - "key": "{{.Dashboard.avg_expansions_per_sec}}", - "name": "{{.Dashboard.avg_expansions_per_sec}}" + "key": "平均每秒扩容数", + "name": "平均每秒扩容数", + "color": "rgba(65,206,199,1)" } ], - "compareTitle": "", - "compareType": "", - "currentChartType": "sequence", + "levels": [], "density": "medium", + "showLine": false, + "chartType": "areaLine", "fixedTime": "", "isPercent": false, - "isTimeInterval": true, - "legendPostion": "none", - "legendValues": "", - "levels": [], - "openCompare": false, "openStack": false, - "showFieldMapping": false, - "showLine": false, "showTitle": true, "stackType": "time", - "tableSortMetricName": "{{.Dashboard.avg_expansions_per_sec}}", - "timeInterval": "default", "titleDesc": "", - "units": [], - "xAxisShowType": "time" - } + "compareType": "", + "openCompare": false, + "compareTitle": "", + "legendValues": "", + "timeInterval": "default", + "legendPostion": "none", + "xAxisShowType": "time", + "isTimeInterval": true, + "currentChartType": "sequence", + "showFieldMapping": false, + "tableSortMetricName": "平均每秒扩容数" + }, + "fixedTime": "", + "isRefresh": true }, "group": { - "name": "{{.Dashboard.replica_management}}" + "name": "副本管理" }, - "name": "{{.Dashboard.replica_scaling}}", + "name": "副本扩容", "pos": { "h": 9, "w": 6, "x": 6, - "y": 53 + "y": 0 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.avg_expansions_per_sec}}", + "q": "M::`kafka_replica_manager`:(AVG(`IsrExpandsPerSec.Count`) AS `平均每秒扩容数`) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_replica_manager", - "field": "IsrExpandsPerSec.Count", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "平均每秒扩容数", + "field": "IsrExpandsPerSec.Count", "filters": [ { "id": "89d55110-c384-11eb-9426-db66bc5d22f6", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "M::`kafka_replica_manager`:(AVG(`IsrExpandsPerSec.Count`) AS `{{.Dashboard.avg_expansions_per_sec}}`) { `host` = '#{host}' }", + "dataSource": "kafka_replica_manager", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" }, { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.avg_shrinks_per_sec}}", + "q": "M::`kafka_replica_manager`:(AVG(`IsrShrinksPerSec.Count`) AS `平均每秒缩容数`) { `host` = '#{host}' }", "code": "B", - "dataSource": "kafka_replica_manager", - "field": "IsrShrinksPerSec.Count", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "平均每秒缩容数", + "field": "IsrShrinksPerSec.Count", "filters": [ { "id": "8c73a2a0-c384-11eb-9426-db66bc5d22f6", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "M::`kafka_replica_manager`:(AVG(`IsrShrinksPerSec.Count`) AS `{{.Dashboard.avg_shrinks_per_sec}}`) { `host` = '#{host}' }", + "dataSource": "kafka_replica_manager", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": true, "settings": { "alias": [], - "chartType": "areaLine", + "units": [], "colors": [ { - "color": "rgba(65,206,199,1)", - "key": "{{.Dashboard.min_failed_ISR_partitions}}", - "name": "{{.Dashboard.min_failed_ISR_partitions}}" + "key": "最小失败 ISR 分区数", + "name": "最小失败 ISR 分区数", + "color": "rgba(65,206,199,1)" } ], - "compareTitle": "", - "compareType": "", - "currentChartType": "sequence", + "levels": [], "density": "medium", + "showLine": false, + "chartType": "areaLine", "fixedTime": "", "isPercent": false, - "isTimeInterval": true, - "legendPostion": "none", - "legendValues": "", - "levels": [], - "openCompare": false, "openStack": false, - "showFieldMapping": false, - "showLine": false, "showTitle": true, "stackType": "time", - "tableSortMetricName": "kafka_replica_manager_UnderMinIsrPartitionCount.Value", - "timeInterval": "default", "titleDesc": "", - "units": [], - "xAxisShowType": "time" - } + "compareType": "", + "openCompare": false, + "compareTitle": "", + "legendValues": "", + "timeInterval": "default", + "legendPostion": "none", + "xAxisShowType": "time", + "isTimeInterval": true, + "currentChartType": "sequence", + "showFieldMapping": false, + "tableSortMetricName": "kafka_replica_manager_UnderMinIsrPartitionCount.Value" + }, + "fixedTime": "", + "isRefresh": true }, "group": { - "name": "{{.Dashboard.replica_management}}" + "name": "副本管理" }, - "name": "{{.Dashboard.invalid_replication}}", + "name": "失效副本", "pos": { "h": 9, "w": 6, "x": 12, - "y": 53 + "y": 0 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.failed_replica_partitions}}", + "q": "M::`kafka_replica_manager`:(AVG(`UnderReplicatedPartitions.Value`) AS `失效副本分区数`) { `host` = '#{host}' }", "code": "B", - "dataSource": "kafka_replica_manager", - "field": "UnderReplicatedPartitions.Value", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "alias": "失效副本分区数", + "field": "UnderReplicatedPartitions.Value", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", "namespace": "metric", - "q": "M::`kafka_replica_manager`:(AVG(`UnderReplicatedPartitions.Value`) AS `{{.Dashboard.failed_replica_partitions}}`) { `host` = '#{host}' }", + "dataSource": "kafka_replica_manager", "queryFuncs": [], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" }, { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.below_min_ISR_partitions}}", + "q": "M::`kafka_replica_manager`:(AVG(`UnderMinIsrPartitionCount.Value`) AS `低于最小 ISR 分区数`) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_replica_manager", - "field": "UnderMinIsrPartitionCount.Value", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "alias": "低于最小 ISR 分区数", + "field": "UnderMinIsrPartitionCount.Value", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", "namespace": "metric", - "q": "M::`kafka_replica_manager`:(AVG(`UnderMinIsrPartitionCount.Value`) AS `{{.Dashboard.below_min_ISR_partitions}}`) { `host` = '#{host}' }", + "dataSource": "kafka_replica_manager", "queryFuncs": [], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" }, { + "type": "sequence", + "unit": "", "color": "#db632b", - "datasource": "ftinfluxdb", - "extend": {}, "qtype": "http", "query": { + "fill": "none", "fields": [ { - "alias": "{{.Dashboard.min_failed_ISR_partitions}}", "args": [ { "name": "UnderMinIsrPartitionCount.Value" } ], + "alias": "最小失败 ISR 分区数", "funcName": "Last" }, { - "alias": "{{.Dashboard.failed_replica_partitions}}", + "fx": "$$value", "args": [ { "name": "UnderReplicatedPartitions.Value" } ], - "funcName": "last", - "fx": "$$value" + "alias": "失效副本分区数", + "funcName": "last" } ], - "fill": "none", "filter": { "tags": [ { - "condition": "and", "name": "host", - "operation": "=", - "value": "#{host}" + "value": "#{host}", + "condition": "and", + "operation": "=" } ] }, @@ -1090,372 +1126,371 @@ ], "transformFuncs": [] }, - "type": "sequence", - "unit": "" + "extend": {}, + "datasource": "ftinfluxdb" } - ], - "type": "sequence" + ] }, { "extend": { "settings": { - "chartType": "areaLine", + "units": [], "colors": [], - "currentChartType": "sequence", - "density": "medium", "levels": [], - "openCompare": false, - "openStack": false, - "showFieldMapping": false, + "density": "medium", "showLine": false, + "chartType": "areaLine", + "openStack": false, "stackType": "time", - "tableSortMetricName": "{{.Dashboard.offline_replication}}", - "units": [], - "xAxisShowType": "time" + "openCompare": false, + "xAxisShowType": "time", + "currentChartType": "sequence", + "showFieldMapping": false, + "tableSortMetricName": "离线副本数" } }, "group": { - "name": "{{.Dashboard.replica_management}}" + "name": "副本管理" }, - "name": "{{.Dashboard.offline_replication}}", + "name": "离线副本数", "pos": { "h": 9, "w": 6, "x": 18, - "y": 53 + "y": 0 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.offline_replication}}", + "q": "M::`kafka_replica_manager`:(AVG(`OfflineReplicaCount.Value`) AS `离线副本数`) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_replica_manager", - "field": "OfflineReplicaCount.Value", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "离线副本数", + "field": "OfflineReplicaCount.Value", "filters": [ { "id": "f59e0c80-c383-11eb-b98e-df59d31b9dd6", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "M::`kafka_replica_manager`:(AVG(`OfflineReplicaCount.Value`) AS `{{.Dashboard.offline_replication}}`) { `host` = '#{host}' }", + "dataSource": "kafka_replica_manager", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": true, "settings": { "alias": [], - "chartType": "areaLine", + "units": [], "colors": [ { - "color": "rgba(65,206,199,1)", - "key": "{{.Dashboard.broker_partitions}}", - "name": "{{.Dashboard.broker_partitions}}" + "key": "Broker 分区数", + "name": "Broker 分区数", + "color": "rgba(65,206,199,1)" } ], - "compareTitle": "", - "compareType": "", - "currentChartType": "sequence", + "levels": [], "density": "medium", + "showLine": false, + "chartType": "areaLine", "fixedTime": "", "isPercent": false, - "isTimeInterval": true, - "legendPostion": "none", - "legendValues": "", - "levels": [], - "openCompare": false, "openStack": false, - "showFieldMapping": false, - "showLine": false, "showTitle": true, "stackType": "time", - "tableSortMetricName": "{{.Dashboard.broker_partitions}}", - "timeInterval": "default", "titleDesc": "", - "units": [], - "xAxisShowType": "time" - } + "compareType": "", + "openCompare": false, + "compareTitle": "", + "legendValues": "", + "timeInterval": "default", + "legendPostion": "none", + "xAxisShowType": "time", + "isTimeInterval": true, + "currentChartType": "sequence", + "showFieldMapping": false, + "tableSortMetricName": "Broker 分区数" + }, + "fixedTime": "", + "isRefresh": true }, "group": { - "name": "{{.Dashboard.replica_management}}" + "name": "副本管理" }, - "name": "{{.Dashboard.total_replications}}", + "name": "副本总计", "pos": { "h": 9, "w": 6, "x": 0, - "y": 53 + "y": 0 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.partitions}}", + "q": "M::`kafka_replica_manager`:(AVG(`PartitionCount.Value`) AS `分区数`) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_replica_manager", - "field": "PartitionCount.Value", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "alias": "分区数", + "field": "PartitionCount.Value", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", "namespace": "metric", - "q": "M::`kafka_replica_manager`:(AVG(`PartitionCount.Value`) AS `{{.Dashboard.partitions}}`) { `host` = '#{host}' }", + "dataSource": "kafka_replica_manager", "queryFuncs": [], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" }, { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.leader_replications}}", + "q": "M::`kafka_replica_manager`:(AVG(`LeaderCount.Value`) AS `Leader 副本数`) { `host` = '#{host}' }", "code": "B", - "dataSource": "kafka_replica_manager", - "field": "LeaderCount.Value", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "Leader 副本数", + "field": "LeaderCount.Value", "filters": [ { "id": "63de1410-c384-11eb-9426-db66bc5d22f6", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "M::`kafka_replica_manager`:(AVG(`LeaderCount.Value`) AS `{{.Dashboard.leader_replications}}`) { `host` = '#{host}' }", + "dataSource": "kafka_replica_manager", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { "alias": [], - "bgColor": "#00B2CE", + "units": [], "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "singlestat", - "downsample": "last", + "levels": [], + "bgColor": "#00B2CE", + "mappings": [], + "showLine": false, "fixedTime": "", "fontColor": "", - "isTimeInterval": false, - "levels": [], "lineColor": "#c23531", - "mappings": [], - "openCompare": false, "precision": "2", - "showFieldMapping": false, - "showLine": false, - "showLineAxis": false, "showTitle": true, - "timeInterval": "default", "titleDesc": "", - "units": [] - } + "downsample": "last", + "compareType": "", + "openCompare": false, + "compareTitle": "", + "showLineAxis": false, + "timeInterval": "default", + "isTimeInterval": false, + "currentChartType": "singlestat", + "showFieldMapping": false + }, + "fixedTime": "", + "isRefresh": false }, "group": { "name": "Purgatory" }, - "name": "{{.Dashboard.delete_records}}", + "name": "删除记录", "pos": { "h": 8, "w": 6, "x": 0, - "y": 78 + "y": 0 }, + "type": "singlestat", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "singlestat", + "unit": "", + "color": "", "qtype": "dql", "query": { + "q": "M::`kafka_purgatory`:(AVG(`DeleteRecords.NumDelayedOperations`)) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_purgatory", - "field": "DeleteRecords.NumDelayedOperations", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "field": "DeleteRecords.NumDelayedOperations", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], + "groupBy": [], "funcList": [ "last" ], - "groupBy": [], - "groupByTime": "", + "fieldFunc": "avg", "namespace": "metric", - "q": "M::`kafka_purgatory`:(AVG(`DeleteRecords.NumDelayedOperations`)) { `host` = '#{host}' }", + "dataSource": "kafka_purgatory", "queryFuncs": [], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "singlestat", - "unit": "" + "datasource": "dataflux" } - ], - "type": "singlestat" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { "alias": [], - "bgColor": "#FF77AA", + "units": [], "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "singlestat", - "downsample": "last", + "levels": [], + "bgColor": "#FF77AA", + "mappings": [], + "showLine": false, "fixedTime": "", "fontColor": "", - "isTimeInterval": false, - "levels": [], "lineColor": "#3AB8FF", - "mappings": [], - "openCompare": false, "precision": "2", - "showFieldMapping": false, - "showLine": false, - "showLineAxis": false, "showTitle": true, - "timeInterval": "default", "titleDesc": "", - "units": [] - } + "downsample": "last", + "compareType": "", + "openCompare": false, + "compareTitle": "", + "showLineAxis": false, + "timeInterval": "default", + "isTimeInterval": false, + "currentChartType": "singlestat", + "showFieldMapping": false + }, + "fixedTime": "", + "isRefresh": false }, "group": { "name": "Purgatory" }, - "name": "{{.Dashboard.heartbeat_detection}}", + "name": "心跳检测", "pos": { "h": 8, "w": 6, "x": 6, - "y": 78 + "y": 0 }, + "type": "singlestat", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "singlestat", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "", + "q": "M::`kafka_purgatory`:(AVG(`Heartbeat.NumDelayedOperations`))", "code": "A", - "dataSource": "kafka_purgatory", - "density": "medium", - "field": "Heartbeat.NumDelayedOperations", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "", + "field": "Heartbeat.NumDelayedOperations", + "density": "medium", "filters": [], + "groupBy": [], "funcList": [ "last" ], - "groupBy": [], - "groupByTime": "", + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "M::`kafka_purgatory`:(AVG(`Heartbeat.NumDelayedOperations`))", + "dataSource": "kafka_purgatory", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "singlestat", - "unit": "" + "datasource": "dataflux" } - ], - "type": "singlestat" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { "alias": [], - "bgColor": "#A0DD86", + "units": [], "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "singlestat", - "downsample": "last", + "levels": [], + "bgColor": "#A0DD86", + "mappings": [], + "showLine": false, "fixedTime": "", "fontColor": "", - "isTimeInterval": false, - "levels": [], "lineColor": "#c23531", - "mappings": [], - "openCompare": false, "precision": "2", - "showFieldMapping": false, - "showLine": false, - "showLineAxis": false, "showTitle": true, - "timeInterval": "default", "titleDesc": "", - "units": [] - } + "downsample": "last", + "compareType": "", + "openCompare": false, + "compareTitle": "", + "showLineAxis": false, + "timeInterval": "default", + "isTimeInterval": false, + "currentChartType": "singlestat", + "showFieldMapping": false + }, + "fixedTime": "", + "isRefresh": false }, "group": { "name": "Purgatory" @@ -1465,439 +1500,418 @@ "h": 8, "w": 6, "x": 12, - "y": 78 + "y": 0 }, + "type": "singlestat", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "singlestat", + "unit": "", + "color": "", "qtype": "dql", "query": { + "q": "M::`kafka_purgatory`:(AVG(`topic.PurgatorySize`)) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_purgatory", - "field": "topic.PurgatorySize", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "field": "topic.PurgatorySize", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], + "groupBy": [], "funcList": [ "last" ], - "groupBy": [], - "groupByTime": "", + "fieldFunc": "avg", "namespace": "metric", - "q": "M::`kafka_purgatory`:(AVG(`topic.PurgatorySize`)) { `host` = '#{host}' }", + "dataSource": "kafka_purgatory", "queryFuncs": [], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "singlestat", - "unit": "" + "datasource": "dataflux" } - ], - "type": "singlestat" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { "alias": [], - "bgColor": "#737AE2", + "units": [], "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "singlestat", - "downsample": "last", + "levels": [], + "bgColor": "#737AE2", + "mappings": [], + "showLine": false, "fixedTime": "", "fontColor": "", - "isTimeInterval": false, - "levels": [], "lineColor": "#3AB8FF", - "mappings": [], - "openCompare": false, "precision": "2", - "showFieldMapping": false, - "showLine": false, - "showLineAxis": false, "showTitle": true, - "timeInterval": "default", "titleDesc": "", - "units": [] - } + "downsample": "last", + "compareType": "", + "openCompare": false, + "compareTitle": "", + "showLineAxis": false, + "timeInterval": "default", + "isTimeInterval": false, + "currentChartType": "singlestat", + "showFieldMapping": false + }, + "fixedTime": "", + "isRefresh": false }, "group": { "name": "Purgatory" }, - "name": "{{.Dashboard.producer}}", + "name": "生产者", "pos": { "h": 8, "w": 6, "x": 18, - "y": 78 + "y": 0 }, + "type": "singlestat", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "singlestat", + "unit": "", + "color": "", "qtype": "dql", "query": { + "q": "M::`kafka_purgatory`:(AVG(`Produce.PurgatorySize`)) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_purgatory", - "field": "Produce.PurgatorySize", - "fieldFunc": "avg", "fill": null, + "type": "dql", + "field": "Produce.PurgatorySize", "fillNum": null, "filters": [ { - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], + "groupBy": [], "funcList": [ "last" ], - "groupBy": [], - "groupByTime": "", + "fieldFunc": "avg", "namespace": "metric", - "q": "M::`kafka_purgatory`:(AVG(`Produce.PurgatorySize`)) { `host` = '#{host}' }", + "dataSource": "kafka_purgatory", "queryFuncs": [], - "type": "dql", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "singlestat", - "unit": "" + "datasource": "dataflux" } - ], - "type": "singlestat" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { "alias": [], - "bgColor": "#C57ECD", + "units": [], "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "singlestat", - "downsample": "last", - "fixedTime": "", - "fontColor": "", - "isTimeInterval": false, "levels": [], - "lineColor": "#c23531", + "bgColor": "#C57ECD", "mappings": [], - "openCompare": false, "pageSize": 50, + "showLine": false, + "fixedTime": "", + "fontColor": "", + "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", - "showFieldMapping": false, - "showLine": false, - "showLineAxis": false, "showTitle": true, - "timeInterval": "default", "titleDesc": "", - "units": [] - } - }, - "group": { - "name": "{{.Dashboard.overview}}" - }, - "name": "{{.Dashboard.invalid_replica_partition}}", - "pos": { - "h": 8, - "w": 4, - "x": 12, - "y": 13 + "downsample": "last", + "compareType": "", + "openCompare": false, + "compareTitle": "", + "showLineAxis": false, + "timeInterval": "default", + "isTimeInterval": false, + "currentChartType": "singlestat", + "showFieldMapping": false + }, + "fixedTime": "", + "isRefresh": false + }, + "group": { + "name": "概览" + }, + "name": "失效的副本分区", + "pos": { + "h": 8, + "w": 3, + "x": 9, + "y": 0 }, + "type": "singlestat", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "singlestat", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "", + "q": "M::`kafka_replica_manager`:(AVG(`UnderReplicatedPartitions.Value`)) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_replica_manager", - "density": "medium", - "field": "UnderReplicatedPartitions.Value", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "", + "field": "UnderReplicatedPartitions.Value", + "density": "medium", "filters": [ { "id": "582c4aa0-c380-11eb-b98e-df59d31b9dd6", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], + "groupBy": [], "funcList": [ "last" ], - "groupBy": [], - "groupByTime": "", + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "M::`kafka_replica_manager`:(AVG(`UnderReplicatedPartitions.Value`)) { `host` = '#{host}' }", + "dataSource": "kafka_replica_manager", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "singlestat", - "unit": "" + "datasource": "dataflux" } - ], - "type": "singlestat" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { "alias": [], - "bgColor": "#C8DD4F", + "units": [], "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "singlestat", - "downsample": "last", - "fixedTime": "", - "fontColor": "", - "isTimeInterval": false, "levels": [], - "lineColor": "#c23531", + "bgColor": "#C8DD4F", "mappings": [], - "openCompare": false, "pageSize": 50, + "showLine": false, + "fixedTime": "", + "fontColor": "", + "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", - "showFieldMapping": false, - "showLine": false, - "showLineAxis": false, "showTitle": true, - "timeInterval": "default", "titleDesc": "", - "units": [] - } + "downsample": "last", + "compareType": "", + "openCompare": false, + "compareTitle": "", + "showLineAxis": false, + "timeInterval": "default", + "isTimeInterval": false, + "currentChartType": "singlestat", + "showFieldMapping": false + }, + "fixedTime": "", + "isRefresh": false }, "group": { - "name": "{{.Dashboard.overview}}" + "name": "概览" }, "name": "Topic", "pos": { "h": 8, - "w": 4, - "x": 4, - "y": 13 + "w": 3, + "x": 3, + "y": 0 }, + "type": "singlestat", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "singlestat", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "", + "q": "M::`kafka_controller`:(AVG(`GlobalTopicCount.Value`)) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_controller", - "density": "medium", - "field": "GlobalTopicCount.Value", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "", + "field": "GlobalTopicCount.Value", + "density": "medium", "filters": [ { "id": "07f2b970-c380-11eb-8967-fb1050d86707", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], + "groupBy": [], "funcList": [ "last" ], - "groupBy": [], - "groupByTime": "", + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "M::`kafka_controller`:(AVG(`GlobalTopicCount.Value`)) { `host` = '#{host}' }", + "dataSource": "kafka_controller", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "singlestat", - "unit": "" + "datasource": "dataflux" } - ], - "type": "singlestat" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { "alias": [], - "chartType": "areaLine", + "units": [], "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "sequence", + "levels": [], "density": "medium", - "downsample": "last", + "mappings": [], + "pageSize": 50, + "showLine": false, + "chartType": "areaLine", "fixedTime": "", "isPercent": false, - "isTimeInterval": true, - "legendPostion": "none", - "legendValues": "", - "levels": [], "lineColor": "#c23531", - "mappings": [], - "openCompare": false, "openStack": false, - "pageSize": 50, "queryMode": "toMergeColumn", - "showFieldMapping": false, - "showLine": false, - "showLineAxis": false, "showTitle": true, "stackType": "time", - "tableSortMetricName": "{{.Dashboard.event_queue}}", - "timeInterval": "default", "titleDesc": "", - "units": [], - "xAxisShowType": "time" - } + "downsample": "last", + "compareType": "", + "openCompare": false, + "compareTitle": "", + "legendValues": "", + "showLineAxis": false, + "timeInterval": "default", + "legendPostion": "none", + "xAxisShowType": "time", + "isTimeInterval": true, + "currentChartType": "sequence", + "showFieldMapping": false, + "tableSortMetricName": "事件队列" + }, + "fixedTime": "", + "isRefresh": false }, "group": { - "name": "{{.Dashboard.overview}}" + "name": "概览" }, - "name": "{{.Dashboard.queue_information}}", + "name": "队列信息", "pos": { - "h": 9, - "w": 8, - "x": 8, - "y": 21 + "h": 10, + "w": 5, + "x": 7, + "y": 8 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.total_queue}}", + "q": "M::`kafka_controller`:(AVG(`TotalQueueSize.Value`) AS `总队列`) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_controller", - "field": "TotalQueueSize.Value", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "总队列", + "field": "TotalQueueSize.Value", "filters": [ { "id": "c839c9c0-c381-11eb-b98e-df59d31b9dd6", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "M::`kafka_controller`:(AVG(`TotalQueueSize.Value`) AS `{{.Dashboard.total_queue}}`) { `host` = '#{host}' }", + "dataSource": "kafka_controller", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" }, { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.event_queue}}", + "q": "M::`kafka_controller`:(AVG(`EventQueueSize.Value`) AS `事件队列`) { `host` = '#{host}' }", "code": "B", - "dataSource": "kafka_controller", - "field": "EventQueueSize.Value", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "事件队列", + "field": "EventQueueSize.Value", "filters": [ { "id": "d9fe6ee0-c381-11eb-b98e-df59d31b9dd6", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "M::`kafka_controller`:(AVG(`EventQueueSize.Value`) AS `{{.Dashboard.event_queue}}`) { `host` = '#{host}' }", + "dataSource": "kafka_controller", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { "settings": { - "chartType": "areaLine", - "colors": [ - { - "color": "#498BFE", - "key": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", - "name": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", - "tags": { - "host": "iZbp18k3nmsg02frvgelyxZ" - } - } - ], - "currentChartType": "sequence", - "density": "medium", - "levels": [], "mark": { "axis": "x", "data": [], "type": "area" }, - "openCompare": false, - "openStack": false, - "showFieldMapping": false, - "showLine": false, - "stackType": "time", - "tableSortMetricName": "last(AtMinIsrPartitionCount.Value)", - "titleDesc": "", "units": [ { - "key": "{{.Dashboard.producer_request_time}}", - "name": "{{.Dashboard.producer_request_time}}", + "key": "生产者请求时间", + "name": "生产者请求时间", "unit": "", "units": [ "time", @@ -1905,101 +1919,99 @@ ] } ], - "xAxisShowType": "time" + "colors": [ + { + "key": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", + "name": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", + "tags": { + "host": "iZbp18k3nmsg02frvgelyxZ" + }, + "color": "#498BFE" + } + ], + "levels": [], + "density": "medium", + "showLine": false, + "chartType": "areaLine", + "openStack": false, + "stackType": "time", + "titleDesc": "", + "openCompare": false, + "xAxisShowType": "time", + "currentChartType": "sequence", + "showFieldMapping": false, + "tableSortMetricName": "last(AtMinIsrPartitionCount.Value)" } }, "group": { - "name": "{{.Dashboard.performance_monitoring}}" + "name": "性能监控" }, - "name": "{{.Dashboard.producer_request_time}}", + "name": "生产者请求时间", "pos": { "h": 11, "w": 8, "x": 0, - "y": 64.5 + "y": 0 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.producer_request_time}}", + "q": "M::`kafka_request`:(AVG(`TotalTimeMs.Mean`) AS `生产者请求时间`) { `request` = 'Produce' and `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_request", - "field": "TotalTimeMs.Mean", - "fieldFunc": "avg", - "fieldType": "float", "fill": null, + "type": "simple", + "alias": "生产者请求时间", + "field": "TotalTimeMs.Mean", "fillNum": null, "filters": [ { "id": "93d474e0-7b70-11eb-bf8d-d7ca32a7c090", - "logic": "and", - "name": "request", "op": "=", + "name": "request", + "logic": "and", "value": "Produce" }, { "id": "8bf61940-7b7a-11eb-95bf-4f081fe3b009", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "float", "namespace": "metric", - "q": "M::`kafka_request`:(AVG(`TotalTimeMs.Mean`) AS `{{.Dashboard.producer_request_time}}`) { `request` = 'Produce' and `host` = '#{host}' }", + "dataSource": "kafka_request", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { - "alias": [], - "chartType": "areaLine", - "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "sequence", - "density": "medium", - "fixedTime": "", - "isPercent": false, - "isTimeInterval": true, - "legendPostion": "none", - "legendValues": "", - "levels": [], "mark": { "axis": "x", "data": [], "type": "area" }, - "openCompare": false, - "openStack": false, - "showFieldMapping": false, - "showLine": false, - "showTitle": true, - "stackType": "time", - "tableSortMetricName": "avg(TotalTimeMs.Mean)", - "timeInterval": "default", - "titleDesc": "", + "alias": [], "units": [ { - "key": "{{.Dashboard.consumer_request_time}}", - "name": "{{.Dashboard.consumer_request_time}}", + "key": "消费者请求时间", + "name": "消费者请求时间", "unit": "", "units": [ "time", @@ -2007,101 +2019,101 @@ ] } ], - "xAxisShowType": "time" - } + "colors": [], + "levels": [], + "density": "medium", + "showLine": false, + "chartType": "areaLine", + "fixedTime": "", + "isPercent": false, + "openStack": false, + "showTitle": true, + "stackType": "time", + "titleDesc": "", + "compareType": "", + "openCompare": false, + "compareTitle": "", + "legendValues": "", + "timeInterval": "default", + "legendPostion": "none", + "xAxisShowType": "time", + "isTimeInterval": true, + "currentChartType": "sequence", + "showFieldMapping": false, + "tableSortMetricName": "avg(TotalTimeMs.Mean)" + }, + "fixedTime": "", + "isRefresh": false }, "group": { - "name": "{{.Dashboard.performance_monitoring}}" + "name": "性能监控" }, - "name": "{{.Dashboard.consumer_request_time}}", + "name": "消费者请求时间", "pos": { "h": 11, "w": 8, "x": 8, - "y": 64.5 + "y": 0 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.consumer_request_time}}", + "q": "M::`kafka_request`:(AVG(`TotalTimeMs.Mean`) AS `消费者请求时间`) { `request` = 'FetchConsumer' and `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_request", - "field": "TotalTimeMs.Mean", - "fieldFunc": "avg", - "fieldType": "float", "fill": null, + "type": "simple", + "alias": "消费者请求时间", + "field": "TotalTimeMs.Mean", "filters": [ { "id": "54110870-7b73-11eb-bf8d-d7ca32a7c090", - "logic": "and", - "name": "request", "op": "=", + "name": "request", "type": "", + "logic": "and", "value": "FetchConsumer" }, { "id": "99482200-7b7a-11eb-95bf-4f081fe3b009", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "float", "namespace": "metric", - "q": "M::`kafka_request`:(AVG(`TotalTimeMs.Mean`) AS `{{.Dashboard.consumer_request_time}}`) { `request` = 'FetchConsumer' and `host` = '#{host}' }", + "dataSource": "kafka_request", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": true, "settings": { - "alias": [], - "chartType": "areaLine", - "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "sequence", - "density": "medium", - "fixedTime": "", - "isPercent": false, - "isTimeInterval": true, - "legendPostion": "none", - "legendValues": "", - "levels": [], "mark": { "axis": "x", "data": [], "type": "area" }, - "openCompare": false, - "openStack": false, - "showFieldMapping": false, - "showLine": false, - "showTitle": true, - "stackType": "time", - "tableSortMetricName": "{{.Dashboard.node_request_time}}", - "timeInterval": "default", - "titleDesc": "", + "alias": [], "units": [ { - "key": "{{.Dashboard.node_request_time}}", - "name": "{{.Dashboard.node_request_time}}", + "key": "从节点请求时间", + "name": "从节点请求时间", "unit": "", "units": [ "time", @@ -2109,112 +2121,94 @@ ] } ], - "xAxisShowType": "time" - } + "colors": [], + "levels": [], + "density": "medium", + "showLine": false, + "chartType": "areaLine", + "fixedTime": "", + "isPercent": false, + "openStack": false, + "showTitle": true, + "stackType": "time", + "titleDesc": "", + "compareType": "", + "openCompare": false, + "compareTitle": "", + "legendValues": "", + "timeInterval": "default", + "legendPostion": "none", + "xAxisShowType": "time", + "isTimeInterval": true, + "currentChartType": "sequence", + "showFieldMapping": false, + "tableSortMetricName": "从节点请求时间" + }, + "fixedTime": "", + "isRefresh": true }, "group": { - "name": "{{.Dashboard.performance_monitoring}}" + "name": "性能监控" }, - "name": "{{.Dashboard.node_request_time}}", + "name": "从节点请求时间", "pos": { "h": 11, "w": 8, "x": 16, - "y": 64.5 + "y": 0 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.node_request_time}}", + "q": "M::`kafka_request`:(AVG(`TotalTimeMs.Count`) AS `从节点请求时间`) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_request", - "field": "TotalTimeMs.Count", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "从节点请求时间", + "field": "TotalTimeMs.Count", "fillNum": null, "filters": [ { "id": "138fdc21-55da-11ed-90f8-85b96def89df", - "logic": "and", - "name": "host", "op": "=", + "name": "host", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "M::`kafka_request`:(AVG(`TotalTimeMs.Count`) AS `{{.Dashboard.node_request_time}}`) { `host` = '#{host}' }", + "dataSource": "kafka_request", "queryFuncs": [], - "type": "simple", - "withLabels": [] + "withLabels": [], + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { - "alias": [], - "chartType": "areaLine", - "colors": [], - "compareColors": { - "dayCompare": "rgba(11,11,12,0.5)", - "hourCompare": "#0B0B0C", - "monthCompare": "rgba(11,11,12,0.12)", - "weekCompare": "rgba(11,11,12,0.3)" - }, - "compareColorsDark": { - "dayCompare": "rgba(213,217,226,0.5)", - "hourCompare": "#D5D9E2", - "monthCompare": "rgba(213,217,226,0.12)", - "weekCompare": "rgba(213,217,226,0.25)" - }, - "compareColorsLight": { - "dayCompare": "rgba(11,11,12,0.5)", - "hourCompare": "#0B0B0C", - "monthCompare": "rgba(11,11,12,0.12)", - "weekCompare": "rgba(11,11,12,0.3)" - }, - "compareType": [], - "currentChartType": "sequence", - "density": "medium", - "fixedTime": "", - "isPercent": false, - "isTimeInterval": true, - "legendPostion": "none", - "legendValues": "", - "levels": [], "mark": { "axis": "x", "data": [], "type": "area" }, - "onlyShowGroupName": false, - "openCompare": false, - "openStack": false, - "showFieldMapping": false, - "showLine": false, - "showTitle": true, - "stackType": "time", - "tableSortMetricName": "last(BytesInPerSec.Count)", - "timeInterval": "auto", - "titleDesc": "", + "alias": [], "units": [ { - "key": "{{.Dashboard.inflow}}", - "name": "{{.Dashboard.inflow}}", + "key": "入流量", + "name": "入流量", "unit": "", "units": [ "traffic", @@ -2222,115 +2216,115 @@ ] } ], - "xAxisShowType": "time", + "colors": [], + "levels": [], + "density": "medium", + "showLine": false, + "chartType": "areaLine", + "fixedTime": "", + "isPercent": false, + "openStack": false, + "showTitle": true, + "stackType": "time", + "titleDesc": "", + "compareType": [], + "openCompare": false, "yAxixMaxVal": null, - "yAxixMinVal": null - } + "yAxixMinVal": null, + "legendValues": "", + "timeInterval": "auto", + "compareColors": { + "dayCompare": "rgba(11,11,12,0.5)", + "hourCompare": "#0B0B0C", + "weekCompare": "rgba(11,11,12,0.3)", + "monthCompare": "rgba(11,11,12,0.12)" + }, + "legendPostion": "none", + "xAxisShowType": "time", + "isTimeInterval": true, + "currentChartType": "sequence", + "showFieldMapping": false, + "compareColorsDark": { + "dayCompare": "rgba(213,217,226,0.5)", + "hourCompare": "#D5D9E2", + "weekCompare": "rgba(213,217,226,0.25)", + "monthCompare": "rgba(213,217,226,0.12)" + }, + "onlyShowGroupName": false, + "compareColorsLight": { + "dayCompare": "rgba(11,11,12,0.5)", + "hourCompare": "#0B0B0C", + "weekCompare": "rgba(11,11,12,0.3)", + "monthCompare": "rgba(11,11,12,0.12)" + }, + "tableSortMetricName": "last(BytesInPerSec.Count)" + }, + "fixedTime": "", + "isRefresh": false }, "group": { "name": "Topic" }, - "name": "{{.Dashboard.network_incoming_traffic_topic}}", + "name": "网络入流量-Topic", "pos": { "h": 9, "w": 8, "x": 0, - "y": 41.5 + "y": 9 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.inflow}}", + "q": "M::`kafka_topics`:(AVG(`BytesInPerSec.Count`) AS `入流量`) { `host` = '#{host}' } BY `host`", "code": "B", - "dataSource": "kafka_topics", - "field": "BytesInPerSec.Count", - "fieldFunc": "avg", - "fieldType": "float", "fill": null, + "type": "simple", + "alias": "入流量", + "field": "BytesInPerSec.Count", "filters": [ { "id": "65d1fbb0-7b81-11eb-b5c6-45fe7ccbc2b1", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [ "host" ], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "float", "namespace": "metric", - "q": "M::`kafka_topics`:(AVG(`BytesInPerSec.Count`) AS `{{.Dashboard.inflow}}`) { `host` = '#{host}' } BY `host`", + "dataSource": "kafka_topics", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { - "alias": [], - "chartType": "areaLine", - "colors": [], - "compareColors": { - "dayCompare": "rgba(11,11,12,0.5)", - "hourCompare": "#0B0B0C", - "monthCompare": "rgba(11,11,12,0.12)", - "weekCompare": "rgba(11,11,12,0.3)" - }, - "compareColorsDark": { - "dayCompare": "rgba(213,217,226,0.5)", - "hourCompare": "#D5D9E2", - "monthCompare": "rgba(213,217,226,0.12)", - "weekCompare": "rgba(213,217,226,0.25)" - }, - "compareColorsLight": { - "dayCompare": "rgba(11,11,12,0.5)", - "hourCompare": "#0B0B0C", - "monthCompare": "rgba(11,11,12,0.12)", - "weekCompare": "rgba(11,11,12,0.3)" - }, - "compareType": [], - "currentChartType": "sequence", - "density": "medium", - "fixedTime": "", - "isPercent": false, - "isTimeInterval": true, - "legendPostion": "none", - "legendValues": "", - "levels": [], "mark": { "axis": "x", "data": [], "type": "area" }, - "onlyShowGroupName": false, - "openCompare": false, - "openStack": false, - "showFieldMapping": false, - "showLine": false, - "showTitle": true, - "stackType": "time", - "tableSortMetricName": "last(BytesInPerSec.Count)", - "timeInterval": "auto", - "titleDesc": "", + "alias": [], "units": [ { - "key": "{{.Dashboard.outflow}}", - "name": "{{.Dashboard.outflow}}", + "key": "出流量", + "name": "出流量", "unit": "", "units": [ "traffic", @@ -2338,615 +2332,1765 @@ ] } ], - "xAxisShowType": "time", + "colors": [], + "levels": [], + "slimit": 20, + "density": "medium", + "showLine": false, + "unitType": "custom", + "chartType": "areaLine", + "fixedTime": "", + "isPercent": false, + "openStack": false, + "precision": "2", + "showLabel": false, + "showTitle": true, + "stackType": "time", + "titleDesc": "", + "globalUnit": [], + "isSampling": true, + "compareType": [], + "openCompare": false, "yAxixMaxVal": null, - "yAxixMinVal": null - } + "yAxixMinVal": null, + "connectNulls": true, + "legendValues": "", + "timeInterval": "auto", + "compareColors": { + "dayCompare": "rgba(11,11,12,0.5)", + "hourCompare": "#0B0B0C", + "weekCompare": "rgba(11,11,12,0.3)", + "monthCompare": "rgba(11,11,12,0.12)" + }, + "legendPostion": "none", + "maxPointCount": 360, + "sorderByOrder": "desc", + "xAxisShowType": "time", + "isTimeInterval": true, + "changeWorkspace": false, + "currentChartType": "sequence", + "showFieldMapping": false, + "compareColorsDark": { + "dayCompare": "rgba(213,217,226,0.5)", + "hourCompare": "#D5D9E2", + "weekCompare": "rgba(213,217,226,0.25)", + "monthCompare": "rgba(213,217,226,0.12)" + }, + "onlyShowGroupName": false, + "compareColorsLight": { + "dayCompare": "rgba(11,11,12,0.5)", + "hourCompare": "#0B0B0C", + "weekCompare": "rgba(11,11,12,0.3)", + "monthCompare": "rgba(11,11,12,0.12)" + }, + "tableSortMetricName": "last(BytesInPerSec.Count)", + "openThousandsSeparator": true, + "mainMeasurementQueryCode": "B" + }, + "fixedTime": "", + "isRefresh": false }, "group": { "name": "Topic" }, - "name": "{{.Dashboard.network_outgoing_traffic_topic}}", + "name": "网络出流量-Topic", "pos": { "h": 9, "w": 8, "x": 8, - "y": 41.5 + "y": 9 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.outflow}}", + "q": "non_negative_derivative(\"M::`kafka_topics`:(avg(`BytesOutPerSec.Count`) AS `出流量`) { `host` = '#{host}' } BY `host`\")", "code": "B", - "dataSource": "kafka_topics", - "field": "BytesInPerSec.Count", - "fieldFunc": "avg", - "fieldType": "float", "fill": null, + "type": "simple", + "alias": "出流量", + "field": "BytesOutPerSec.Count", "filters": [ { "id": "65d1fbb0-7b81-11eb-b5c6-45fe7ccbc2b1", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [ "host" ], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "float", "namespace": "metric", - "q": "non_negative_derivative(\"M::`kafka_topics`:(AVG(`BytesInPerSec.Count`) AS `{{.Dashboard.outflow}}`) { `host` = '#{host}' } BY `host`\")", + "dataSource": "kafka_topics", "queryFuncs": [ { "args": [], "name": "non_negative_derivative" } ], - "type": "simple" + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { "alias": [], - "bgColor": "#498BFE", + "units": [], "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "singlestat", - "downsample": "last", - "fixedTime": "", - "fontColor": "", - "isTimeInterval": false, "levels": [], - "lineColor": "#c23531", + "bgColor": "#498BFE", "mappings": [], - "openCompare": false, "pageSize": 50, + "showLine": false, + "fixedTime": "", + "fontColor": "", + "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", - "showFieldMapping": false, - "showLine": false, - "showLineAxis": false, "showTitle": true, - "timeInterval": "default", "titleDesc": "", - "units": [] - } + "downsample": "last", + "compareType": "", + "openCompare": false, + "compareTitle": "", + "showLineAxis": false, + "timeInterval": "default", + "isTimeInterval": false, + "currentChartType": "singlestat", + "showFieldMapping": false + }, + "fixedTime": "", + "isRefresh": false }, "group": { - "name": "{{.Dashboard.overview}}" + "name": "概览" }, - "name": "{{.Dashboard.controller}}", + "name": "Controller 数量", "pos": { "h": 8, - "w": 4, + "w": 3, "x": 0, - "y": 13 + "y": 0 }, + "type": "singlestat", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "singlestat", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "", + "q": "M::`kafka_controller`:(AVG(`ActiveControllerCount.Value`)) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_controller", - "density": "medium", - "field": "ActiveControllerCount.Value", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "", + "field": "ActiveControllerCount.Value", + "density": "medium", "filters": [ { "id": "07f2b970-c380-11eb-8967-fb1050d86707", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], + "groupBy": [], "funcList": [ "last" ], - "groupBy": [], - "groupByTime": "", + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "M::`kafka_controller`:(AVG(`ActiveControllerCount.Value`)) { `host` = '#{host}' }", + "dataSource": "kafka_controller", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "singlestat", - "unit": "" + "datasource": "dataflux" } - ], - "type": "singlestat" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { "alias": [], - "bgColor": "#A0DD86", + "units": [], "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "singlestat", - "downsample": "last", - "fixedTime": "", - "fontColor": "", - "isTimeInterval": false, "levels": [], - "lineColor": "#c23531", + "bgColor": "#A0DD86", "mappings": [], - "openCompare": false, "pageSize": 50, + "showLine": false, + "unitType": "global", + "fixedTime": "", + "fontColor": "", + "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", - "showFieldMapping": false, - "showLine": false, - "showLineAxis": false, "showTitle": true, - "timeInterval": "default", "titleDesc": "", - "units": [] - } + "downsample": "last", + "globalUnit": [], + "isSampling": true, + "compareType": "", + "openCompare": false, + "compareTitle": "", + "showLineAxis": false, + "timeInterval": "auto", + "isTimeInterval": false, + "changeWorkspace": false, + "currentChartType": "singlestat", + "showFieldMapping": false, + "sequenceChartType": "line", + "openThousandsSeparator": true + }, + "fixedTime": "", + "isRefresh": false }, "group": { - "name": "{{.Dashboard.overview}}" + "name": "概览" }, - "name": "{{.Dashboard.min_partitions}}", + "name": "下线分区数", "pos": { "h": 8, - "w": 4, - "x": 16, - "y": 13 + "w": 3, + "x": 12, + "y": 0 }, + "type": "singlestat", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "singlestat", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "", + "q": "M::`kafka_controller`:(avg(`OfflinePartitionsCount.Value`)) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_controller", - "density": "medium", - "field": "OfflinePartitionsCount.Value", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "", + "field": "OfflinePartitionsCount.Value", + "density": "medium", "filters": [ { "id": "582c4aa0-c380-11eb-b98e-df59d31b9dd6", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], + "groupBy": [], "funcList": [ "last" ], - "groupBy": [], - "groupByTime": "", + "fieldFunc": "avg", + "fieldType": "float", "namespace": "metric", - "q": "M::`kafka_controller`:(AVG(`OfflinePartitionsCount.Value`)) { `host` = '#{host}' }", + "dataSource": "kafka_controller", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "singlestat", - "unit": "" + "datasource": "dataflux" } - ], - "type": "singlestat" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { "alias": [], - "bgColor": "#5F67D6", + "units": [], "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "singlestat", - "downsample": "last", - "fixedTime": "", - "fontColor": "", - "isTimeInterval": false, "levels": [], - "lineColor": "#c23531", + "bgColor": "#5F67D6", "mappings": [], - "openCompare": false, "pageSize": 50, + "showLine": false, + "fixedTime": "", + "fontColor": "", + "lineColor": "#c23531", "precision": "2", "queryMode": "toMergeColumn", - "showFieldMapping": false, - "showLine": false, - "showLineAxis": false, "showTitle": true, - "timeInterval": "default", "titleDesc": "", - "units": [] - } + "downsample": "last", + "compareType": "", + "openCompare": false, + "compareTitle": "", + "showLineAxis": false, + "timeInterval": "default", + "isTimeInterval": false, + "currentChartType": "singlestat", + "showFieldMapping": false + }, + "fixedTime": "", + "isRefresh": false }, "group": { - "name": "{{.Dashboard.overview}}" + "name": "概览" }, - "name": "{{.Dashboard.offline_directories}}", + "name": "离线目录数", "pos": { "h": 8, - "w": 4, - "x": 20, - "y": 13 + "w": 3, + "x": 21, + "y": 0 }, + "type": "singlestat", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "singlestat", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "", + "q": "M::`kafka_log`:(AVG(`OfflineLogDirectoryCount`)) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_log", - "density": "medium", - "field": "OfflineLogDirectoryCount", - "fieldFunc": "avg", - "fieldType": "float", "fill": null, + "type": "simple", + "alias": "", + "field": "OfflineLogDirectoryCount", + "density": "medium", "filters": [ { "id": "582c4aa0-c380-11eb-b98e-df59d31b9dd6", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], + "groupBy": [], "funcList": [ "last" ], - "groupBy": [], - "groupByTime": "", + "fieldFunc": "avg", + "fieldType": "float", "namespace": "metric", - "q": "M::`kafka_log`:(AVG(`OfflineLogDirectoryCount`)) { `host` = '#{host}' }", + "dataSource": "kafka_log", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "singlestat", - "unit": "" + "datasource": "dataflux" } - ], - "type": "singlestat" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": true, "settings": { "alias": [], - "chartType": "areaLine", + "units": [], "colors": [], - "compareTitle": "", - "compareType": "", - "currentChartType": "sequence", + "levels": [], "density": "medium", - "downsample": "last", + "mappings": [], + "pageSize": 50, + "showLine": false, + "chartType": "areaLine", "fixedTime": "", "isPercent": false, - "isTimeInterval": true, - "legendPostion": "none", - "legendValues": "", - "levels": [], "lineColor": "#c23531", - "mappings": [], - "openCompare": false, "openStack": false, - "pageSize": 50, "queryMode": "toMergeColumn", - "showFieldMapping": false, - "showLine": false, - "showLineAxis": false, "showTitle": true, "stackType": "time", - "tableSortMetricName": "{{.Dashboard.event_queue}}", - "timeInterval": "default", "titleDesc": "", - "units": [], - "xAxisShowType": "time" - } + "downsample": "last", + "compareType": "", + "openCompare": false, + "compareTitle": "", + "legendValues": "", + "showLineAxis": false, + "timeInterval": "default", + "legendPostion": "none", + "xAxisShowType": "time", + "isTimeInterval": true, + "currentChartType": "sequence", + "showFieldMapping": false, + "tableSortMetricName": "事件队列" + }, + "fixedTime": "", + "isRefresh": true }, "group": { - "name": "{{.Dashboard.overview}}" + "name": "概览" }, - "name": "{{.Dashboard.election}}", + "name": "选举", "pos": { - "h": 9, - "w": 8, - "x": 16, - "y": 21 + "h": 10, + "w": 5, + "x": 12, + "y": 8 }, + "type": "sequence", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.leader_election}}", + "q": "M::`kafka_controller`:(AVG(`LeaderElectionRateAndTimeMs.Count`) AS `Leader 选举次数`) { `host` = '#{host}' }", "code": "A", - "dataSource": "kafka_controller", - "field": "LeaderElectionRateAndTimeMs.Count", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "Leader 选举次数", + "field": "LeaderElectionRateAndTimeMs.Count", "filters": [ { "id": "c839c9c0-c381-11eb-b98e-df59d31b9dd6", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "M::`kafka_controller`:(AVG(`LeaderElectionRateAndTimeMs.Count`) AS `{{.Dashboard.leader_election}}`) { `host` = '#{host}' }", + "dataSource": "kafka_controller", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" }, { - "color": "", - "datasource": "dataflux", "name": "", + "type": "sequence", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.unclear_leader_election}}", + "q": "M::`kafka_controller`:(AVG(`UncleanLeaderElectionsPerSec.Count`) AS `Unclean Leader 选举次数`) { `host` = '#{host}' }", "code": "B", - "dataSource": "kafka_controller", - "field": "UncleanLeaderElectionsPerSec.Count", - "fieldFunc": "avg", - "fieldType": "integer", "fill": null, + "type": "simple", + "alias": "Unclean Leader 选举次数", + "field": "UncleanLeaderElectionsPerSec.Count", "filters": [ { "id": "d9fe6ee0-c381-11eb-b98e-df59d31b9dd6", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "avg", + "fieldType": "integer", "namespace": "metric", - "q": "M::`kafka_controller`:(AVG(`UncleanLeaderElectionsPerSec.Count`) AS `{{.Dashboard.unclear_leader_election}}`) { `host` = '#{host}' }", + "dataSource": "kafka_controller", "queryFuncs": [], - "type": "simple" + "groupByTime": "" }, - "type": "sequence", - "unit": "" + "datasource": "dataflux" } - ], - "type": "sequence" + ] }, { "extend": { - "fixedTime": "", - "isRefresh": false, "settings": { + "alias": [], + "index": "default", + "units": [], + "colors": [], + "levels": [], + "fixedTime": "", + "inColumns": [ + { + "field": "time", + "headerName": "时间", + "showTooltip": false, + "cellRenderer": "StatusCellRender", + "filterParams": {} + } + ], + "showTitle": true, + "titleDesc": "", "addColumns": [ { "field": "message", - "headerName": "{{.Dashboard.message}}" + "headerName": "消息" }, { - "field": "status", - "hide": true + "hide": true, + "field": "status" }, { - "field": "__docid", - "hide": true + "hide": true, + "field": "__docid" } ], - "alias": [], - "colors": [], - "currentChartType": "log", - "fixedTime": "", - "inColumns": [ - { - "cellRenderer": "StatusCellRender", - "field": "time", - "filterParams": {}, - "headerName": "{{.Dashboard.time}}", - "showTooltip": false - } - ], - "index": "default", + "valMappings": [], + "timeInterval": "", "isTimeInterval": false, - "levels": [], + "currentChartType": "log", "showFieldMapping": false, - "showTitle": true, - "timeInterval": "", - "titleDesc": "", - "units": [], - "valColorMappings": [], - "valMappings": [] - } + "valColorMappings": [] + }, + "fixedTime": "", + "isRefresh": false }, "group": { - "name": "{{.Dashboard.log}}" + "name": "日志" }, - "name": "{{.Dashboard.create_chart}}", + "name": "新建图表", "pos": { "h": 17, "w": 24, "x": 0, - "y": 88.5 + "y": 0 }, + "type": "log", "queries": [ { - "color": "", - "datasource": "dataflux", "name": "", - "noTimeRange": false, + "type": "log", + "unit": "", + "color": "", "qtype": "dql", "query": { - "alias": "{{.Dashboard.message}}", + "q": "L::`kafka`:(`message`, `status`, `__docid`) { `index` = 'default' and `host` = '#{host}' }", "code": "A", - "dataSource": "kafka", - "disableMultipleField": false, + "fill": "", + "type": "simple", + "alias": "消息", "field": null, - "fieldFunc": "count", - "fieldType": "text", "fields": [ { - "alias": "{{.Dashboard.message}}", + "alias": "消息", "field": "message" }, { - "field": "status", - "hide": true + "hide": true, + "field": "status" }, { - "field": "__docid", - "hide": true + "hide": true, + "field": "__docid" } ], - "fill": "", + "search": "", "filters": [ { "id": "204bce90-1639-11ee-bc97-1578a8bd4960", - "logic": "and", - "name": "host", "op": "=", + "name": "host", "type": "keyword", + "logic": "and", "value": "#{host}" } ], - "funcList": [], "groupBy": [], - "groupByTime": "", + "funcList": [], + "fieldFunc": "count", + "fieldType": "text", "highlight": true, - "indexFilter": "default", "namespace": "logging", - "q": "L::`kafka`:(`message`, `status`, `__docid`) { `index` = 'default' and `host` = '#{host}' }", + "dataSource": "kafka", "queryFuncs": [], - "search": "", - "type": "simple" + "groupByTime": "", + "indexFilter": "default", + "disableMultipleField": false }, - "type": "log", - "unit": "" + "datasource": "dataflux", + "noTimeRange": false } - ], - "type": "log" + ] }, { "extend": { "settings": { "alias": [], + "units": [], "colors": [], - "fixedTime": "", - "isTimeInterval": false, "levels": [], - "showFieldMapping": false, + "fixedTime": "", "showTitle": true, - "timeInterval": "default", "titleDesc": "", - "units": [] + "timeInterval": "default", + "isTimeInterval": false, + "showFieldMapping": false } }, "group": { - "name": "{{.Dashboard.introduction}}" + "name": "简介" }, - "name": "{{.Dashboard.description}}", + "name": "说明", "pos": { "h": 8, "w": 24, "x": 0, - "y": 2.5 + "y": 0 }, + "type": "text", "queries": [ { "name": "", "query": { - "content": "{{.Dashboard.description_content}}" + "content": "采集器可以从 Kafka 实例中采取很多指标,比如请求、topic等多种指标,并将指标采集到观测云,帮助监控分析 Kafka 各种异常情况。\n\nhttps://docs.guance.com/datakit/kafka/" } } - ], - "type": "text" - } - ], - "groups": [ - "{{.Dashboard.introduction}}", - "{{.Dashboard.overview}}", - "Topic", - "{{.Dashboard.replica_management}}", - "{{.Dashboard.performance_monitoring}}", - "Purgatory", - "{{.Dashboard.log}}" - ], - "type": "template", - "vars": [ + ] + }, { - "code": "host", - "datasource": "dataflux", - "definition": { - "defaultVal": { - "label": "*", - "value": "re(`.*`)" + "extend": { + "settings": { + "mark": { + "axis": "x", + "data": [], + "type": "area" + }, + "alias": [], + "units": [ + { + "key": "入流量", + "name": "入流量", + "unit": "", + "units": [ + "traffic", + "B/S" + ] + } + ], + "colors": [], + "levels": [], + "slimit": 20, + "density": "medium", + "showLine": false, + "unitType": "custom", + "chartType": "areaLine", + "fixedTime": "", + "isPercent": false, + "openStack": false, + "precision": "2", + "showLabel": false, + "showTitle": true, + "stackType": "time", + "titleDesc": "", + "globalUnit": [], + "isSampling": true, + "compareType": [], + "openCompare": false, + "yAxixMaxVal": null, + "yAxixMinVal": null, + "connectNulls": true, + "legendValues": "", + "timeInterval": "auto", + "compareColors": { + "dayCompare": "rgba(11,11,12,0.5)", + "hourCompare": "#0B0B0C", + "weekCompare": "rgba(11,11,12,0.3)", + "monthCompare": "rgba(11,11,12,0.12)" + }, + "legendPostion": "none", + "maxPointCount": 360, + "sorderByOrder": "desc", + "xAxisShowType": "time", + "isTimeInterval": true, + "changeWorkspace": false, + "currentChartType": "sequence", + "showFieldMapping": false, + "compareColorsDark": { + "dayCompare": "rgba(213,217,226,0.5)", + "hourCompare": "#D5D9E2", + "weekCompare": "rgba(213,217,226,0.25)", + "monthCompare": "rgba(213,217,226,0.12)" + }, + "onlyShowGroupName": false, + "compareColorsLight": { + "dayCompare": "rgba(11,11,12,0.5)", + "hourCompare": "#0B0B0C", + "weekCompare": "rgba(11,11,12,0.3)", + "monthCompare": "rgba(11,11,12,0.12)" + }, + "tableSortMetricName": "last(BytesInPerSec.Count)", + "openThousandsSeparator": true, + "mainMeasurementQueryCode": "B" }, - "field": "", - "metric": "", - "object": "", - "tag": "", - "value": "show_tag_value(from=['kafka_controller'], keyin=['host'])" + "fixedTime": "", + "isRefresh": false }, - "hide": 0, - "isHiddenAsterisk": 0, - "name": "{{.Dashboard.host_name}}", - "seq": 0, - "type": "QUERY", - "valueSort": "" - } - ] - }, - "summary": "", - "tagInfo": [], - "tags": [], - "thumbnail": "", - "title": "{{.Dashboard.title}}" -} + "group": { + "name": "Topic" + }, + "name": "网络拒绝流量-Topic", + "pos": { + "h": 9, + "w": 8, + "x": 16, + "y": 18 + }, + "type": "sequence", + "queries": [ + { + "name": "", + "type": "sequence", + "unit": "", + "color": "", + "qtype": "dql", + "query": { + "q": "M::`kafka_topics`:(avg(`BytesRejectedPerSec.Count`) AS `拒绝流量`) { `host` = '#{host}' } BY `host`", + "code": "B", + "fill": null, + "type": "simple", + "alias": "拒绝流量", + "field": "BytesRejectedPerSec.Count", + "filters": [ + { + "id": "65d1fbb0-7b81-11eb-b5c6-45fe7ccbc2b1", + "op": "=", + "name": "host", + "type": "", + "logic": "and", + "value": "#{host}" + } + ], + "groupBy": [ + "host" + ], + "funcList": [], + "fieldFunc": "avg", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_topics", + "queryFuncs": [], + "groupByTime": "" + }, + "datasource": "dataflux" + } + ] + }, + { + "extend": { + "settings": { + "mark": { + "axis": "x", + "data": [], + "type": "area" + }, + "alias": [], + "units": [ + { + "key": "入流量", + "name": "入流量", + "unit": "", + "units": [ + "traffic", + "B/S" + ] + } + ], + "colors": [], + "levels": [], + "slimit": 20, + "density": "medium", + "showLine": false, + "unitType": "global", + "chartType": "line", + "fixedTime": "", + "isPercent": false, + "openStack": false, + "precision": "2", + "showLabel": false, + "showTitle": true, + "stackType": "time", + "titleDesc": "", + "globalUnit": [], + "isSampling": true, + "compareType": [], + "openCompare": false, + "yAxixMaxVal": null, + "yAxixMinVal": null, + "connectNulls": true, + "legendValues": "", + "timeInterval": "auto", + "compareColors": { + "dayCompare": "rgba(11,11,12,0.5)", + "hourCompare": "#0B0B0C", + "weekCompare": "rgba(11,11,12,0.3)", + "monthCompare": "rgba(11,11,12,0.12)" + }, + "legendPostion": "none", + "maxPointCount": 360, + "sorderByOrder": "desc", + "xAxisShowType": "time", + "isTimeInterval": true, + "changeWorkspace": false, + "currentChartType": "sequence", + "showFieldMapping": false, + "compareColorsDark": { + "dayCompare": "rgba(213,217,226,0.5)", + "hourCompare": "#D5D9E2", + "weekCompare": "rgba(213,217,226,0.25)", + "monthCompare": "rgba(213,217,226,0.12)" + }, + "onlyShowGroupName": false, + "compareColorsLight": { + "dayCompare": "rgba(11,11,12,0.5)", + "hourCompare": "#0B0B0C", + "weekCompare": "rgba(11,11,12,0.3)", + "monthCompare": "rgba(11,11,12,0.12)" + }, + "tableSortMetricName": "last(BytesInPerSec.Count)", + "openThousandsSeparator": true, + "mainMeasurementQueryCode": "B" + }, + "fixedTime": "", + "isRefresh": false + }, + "group": { + "name": "Topic" + }, + "name": "Broker生产请求频率", + "pos": { + "h": 9, + "w": 8, + "x": 0, + "y": 18 + }, + "type": "sequence", + "queries": [ + { + "name": "", + "type": "sequence", + "unit": "", + "color": "", + "qtype": "dql", + "query": { + "q": "M::`kafka_topics`:(count(`TotalProduceRequestsPerSec.Count`) AS `生产请求频率`) { `host` = '#{host}' } BY `host`", + "code": "B", + "fill": null, + "type": "simple", + "alias": "生产请求频率", + "field": "TotalProduceRequestsPerSec.Count", + "filters": [ + { + "id": "65d1fbb0-7b81-11eb-b5c6-45fe7ccbc2b1", + "op": "=", + "name": "host", + "type": "", + "logic": "and", + "value": "#{host}" + } + ], + "groupBy": [ + "host" + ], + "funcList": [], + "fieldFunc": "count", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_topics", + "queryFuncs": [], + "groupByTime": "" + }, + "datasource": "dataflux" + } + ] + }, + { + "extend": { + "settings": { + "mark": { + "axis": "x", + "data": [], + "type": "area" + }, + "alias": [], + "units": [ + { + "key": "入流量", + "name": "入流量", + "unit": "", + "units": [ + "traffic", + "B/S" + ] + } + ], + "colors": [], + "levels": [], + "slimit": 20, + "density": "medium", + "showLine": false, + "unitType": "global", + "chartType": "line", + "fixedTime": "", + "isPercent": false, + "openStack": false, + "precision": "2", + "showLabel": false, + "showTitle": true, + "stackType": "time", + "titleDesc": "", + "globalUnit": [], + "isSampling": true, + "compareType": [], + "openCompare": false, + "yAxixMaxVal": null, + "yAxixMinVal": null, + "connectNulls": true, + "legendValues": "", + "timeInterval": "auto", + "compareColors": { + "dayCompare": "rgba(11,11,12,0.5)", + "hourCompare": "#0B0B0C", + "weekCompare": "rgba(11,11,12,0.3)", + "monthCompare": "rgba(11,11,12,0.12)" + }, + "legendPostion": "none", + "maxPointCount": 360, + "sorderByOrder": "desc", + "xAxisShowType": "time", + "isTimeInterval": true, + "changeWorkspace": false, + "currentChartType": "sequence", + "showFieldMapping": false, + "compareColorsDark": { + "dayCompare": "rgba(213,217,226,0.5)", + "hourCompare": "#D5D9E2", + "weekCompare": "rgba(213,217,226,0.25)", + "monthCompare": "rgba(213,217,226,0.12)" + }, + "onlyShowGroupName": false, + "compareColorsLight": { + "dayCompare": "rgba(11,11,12,0.5)", + "hourCompare": "#0B0B0C", + "weekCompare": "rgba(11,11,12,0.3)", + "monthCompare": "rgba(11,11,12,0.12)" + }, + "tableSortMetricName": "last(BytesInPerSec.Count)", + "openThousandsSeparator": true, + "mainMeasurementQueryCode": "B" + }, + "fixedTime": "", + "isRefresh": false + }, + "group": { + "name": "Topic" + }, + "name": "Broker消费请求频率", + "pos": { + "h": 9, + "w": 8, + "x": 8, + "y": 18 + }, + "type": "sequence", + "queries": [ + { + "name": "", + "type": "sequence", + "unit": "", + "color": "", + "qtype": "dql", + "query": { + "q": "M::`kafka_topics`:(last(`TotalFetchRequestsPerSec.Count`) AS `消费请求频率`) { `host` = '#{host}' } BY `host`", + "code": "B", + "fill": null, + "type": "simple", + "alias": "消费请求频率", + "field": "TotalFetchRequestsPerSec.Count", + "filters": [ + { + "id": "65d1fbb0-7b81-11eb-b5c6-45fe7ccbc2b1", + "op": "=", + "name": "host", + "type": "", + "logic": "and", + "value": "#{host}" + } + ], + "groupBy": [ + "host" + ], + "funcList": [], + "fieldFunc": "last", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_topics", + "queryFuncs": [], + "groupByTime": "" + }, + "datasource": "dataflux" + } + ] + }, + { + "extend": { + "settings": { + "mark": { + "axis": "x", + "data": [], + "type": "area" + }, + "alias": [], + "units": [ + { + "key": "生产者请求时间", + "name": "生产者请求时间", + "unit": "", + "units": [ + "time", + "ms" + ] + } + ], + "colors": [ + { + "key": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", + "name": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", + "tags": { + "host": "iZbp18k3nmsg02frvgelyxZ" + }, + "color": "#498BFE" + } + ], + "levels": [], + "slimit": 20, + "density": "medium", + "showLine": false, + "unitType": "custom", + "chartType": "areaLine", + "fixedTime": "", + "isPercent": false, + "openStack": false, + "precision": "2", + "showLabel": false, + "showTitle": true, + "stackType": "time", + "titleDesc": "", + "globalUnit": [], + "isSampling": true, + "compareType": [], + "openCompare": false, + "yAxixMaxVal": null, + "yAxixMinVal": null, + "connectNulls": true, + "legendValues": "", + "timeInterval": "auto", + "legendPostion": "none", + "maxPointCount": 360, + "sorderByOrder": "desc", + "xAxisShowType": "time", + "isTimeInterval": true, + "changeWorkspace": false, + "currentChartType": "sequence", + "showFieldMapping": false, + "onlyShowGroupName": false, + "tableSortMetricName": "last(AtMinIsrPartitionCount.Value)", + "openThousandsSeparator": true, + "mainMeasurementQueryCode": "A" + }, + "fixedTime": "", + "isRefresh": false + }, + "group": { + "name": "性能监控" + }, + "name": "Leader请求时间", + "pos": { + "h": 11, + "w": 8, + "x": 0, + "y": 11 + }, + "type": "sequence", + "queries": [ + { + "name": "", + "type": "sequence", + "unit": "", + "color": "", + "qtype": "dql", + "query": { + "q": "M::`kafka_request`:(avg(`LocalTimeMs.Count`) AS `Leader请求时间`) { `host` = '#{host}' }", + "code": "A", + "fill": null, + "type": "simple", + "alias": "Leader请求时间", + "field": "LocalTimeMs.Count", + "fillNum": null, + "filters": [ + { + "id": "8bf61940-7b7a-11eb-95bf-4f081fe3b009", + "op": "=", + "name": "host", + "type": "", + "logic": "and", + "value": "#{host}" + } + ], + "groupBy": [], + "funcList": [], + "fieldFunc": "avg", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_request", + "queryFuncs": [], + "groupByTime": "" + }, + "datasource": "dataflux" + } + ] + }, + { + "extend": { + "settings": { + "mark": { + "axis": "x", + "data": [], + "type": "area" + }, + "alias": [], + "units": [ + { + "key": "队列请求时间", + "name": "队列请求时间", + "unit": "", + "units": [] + } + ], + "colors": [ + { + "key": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", + "name": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", + "tags": { + "host": "iZbp18k3nmsg02frvgelyxZ" + }, + "color": "#498BFE" + } + ], + "levels": [], + "slimit": 20, + "density": "medium", + "showLine": false, + "unitType": "custom", + "chartType": "areaLine", + "fixedTime": "", + "isPercent": false, + "openStack": false, + "precision": "2", + "showLabel": false, + "showTitle": true, + "stackType": "time", + "titleDesc": "", + "globalUnit": [], + "isSampling": true, + "compareType": [], + "openCompare": false, + "yAxixMaxVal": null, + "yAxixMinVal": null, + "connectNulls": true, + "legendValues": "", + "timeInterval": "auto", + "legendPostion": "none", + "maxPointCount": 360, + "sorderByOrder": "desc", + "xAxisShowType": "time", + "isTimeInterval": true, + "changeWorkspace": false, + "currentChartType": "sequence", + "showFieldMapping": false, + "onlyShowGroupName": false, + "tableSortMetricName": "last(AtMinIsrPartitionCount.Value)", + "openThousandsSeparator": true, + "mainMeasurementQueryCode": "A" + }, + "fixedTime": "", + "isRefresh": true + }, + "group": { + "name": "性能监控" + }, + "name": "队列请求时间", + "pos": { + "h": 11, + "w": 8, + "x": 8, + "y": 11 + }, + "type": "sequence", + "queries": [ + { + "name": "", + "type": "sequence", + "unit": "", + "color": "", + "qtype": "dql", + "query": { + "q": "M::`kafka_request`:(avg(`RequestQueueTimeMs.Count`) AS `队列请求时间`) { `host` = '#{host}' }", + "code": "A", + "fill": null, + "type": "simple", + "alias": "队列请求时间", + "field": "RequestQueueTimeMs.Count", + "fillNum": null, + "filters": [ + { + "id": "8bf61940-7b7a-11eb-95bf-4f081fe3b009", + "op": "=", + "name": "host", + "type": "", + "logic": "and", + "value": "#{host}" + } + ], + "groupBy": [], + "funcList": [], + "fieldFunc": "avg", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_request", + "queryFuncs": [], + "groupByTime": "" + }, + "datasource": "dataflux" + } + ] + }, + { + "extend": { + "settings": { + "mark": { + "axis": "x", + "data": [], + "type": "area" + }, + "alias": [], + "units": [ + { + "key": "队列请求时间", + "name": "队列请求时间", + "unit": "", + "units": [] + } + ], + "colors": [ + { + "key": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", + "name": "last(TotalTimeMs.Mean){\"host\": \"iZbp18k3nmsg02frvgelyxZ\"}", + "tags": { + "host": "iZbp18k3nmsg02frvgelyxZ" + }, + "color": "#498BFE" + } + ], + "levels": [], + "slimit": 20, + "density": "medium", + "showLine": false, + "unitType": "custom", + "chartType": "areaLine", + "fixedTime": "", + "isPercent": false, + "openStack": false, + "precision": "2", + "showLabel": false, + "showTitle": true, + "stackType": "time", + "titleDesc": "", + "globalUnit": [], + "isSampling": true, + "compareType": [], + "openCompare": false, + "yAxixMaxVal": null, + "yAxixMinVal": null, + "connectNulls": true, + "legendValues": "", + "timeInterval": "auto", + "legendPostion": "none", + "maxPointCount": 360, + "sorderByOrder": "desc", + "xAxisShowType": "time", + "isTimeInterval": true, + "changeWorkspace": false, + "currentChartType": "sequence", + "showFieldMapping": false, + "onlyShowGroupName": false, + "tableSortMetricName": "last(AtMinIsrPartitionCount.Value)", + "openThousandsSeparator": true, + "mainMeasurementQueryCode": "A" + }, + "fixedTime": "", + "isRefresh": false + }, + "group": { + "name": "性能监控" + }, + "name": "队列响应时间", + "pos": { + "h": 11, + "w": 8, + "x": 16, + "y": 11 + }, + "type": "sequence", + "queries": [ + { + "name": "", + "type": "sequence", + "unit": "", + "color": "", + "qtype": "dql", + "query": { + "q": "M::`kafka_request`:(avg(`ResponseQueueTimeMs.Count`) AS `队列响应时间`) { `host` = '#{host}' }", + "code": "A", + "fill": null, + "type": "simple", + "alias": "队列响应时间", + "field": "ResponseQueueTimeMs.Count", + "fillNum": null, + "filters": [ + { + "id": "8bf61940-7b7a-11eb-95bf-4f081fe3b009", + "op": "=", + "name": "host", + "type": "", + "logic": "and", + "value": "#{host}" + } + ], + "groupBy": [], + "funcList": [], + "fieldFunc": "avg", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_request", + "queryFuncs": [], + "groupByTime": "" + }, + "datasource": "dataflux" + } + ] + }, + { + "extend": { + "settings": { + "alias": [], + "units": [], + "colors": [], + "levels": [], + "bgColor": "#C57ECD", + "mappings": [], + "pageSize": 50, + "showLine": false, + "unitType": "global", + "fixedTime": "", + "fontColor": "", + "lineColor": "#c23531", + "precision": "2", + "queryMode": "toMergeColumn", + "showTitle": true, + "titleDesc": "", + "downsample": "last", + "globalUnit": [], + "isSampling": true, + "compareType": "", + "openCompare": false, + "compareTitle": "", + "showLineAxis": false, + "timeInterval": "auto", + "isTimeInterval": false, + "changeWorkspace": false, + "currentChartType": "singlestat", + "showFieldMapping": false, + "sequenceChartType": "line", + "openThousandsSeparator": true + }, + "fixedTime": "", + "isRefresh": false + }, + "group": { + "name": "概览" + }, + "name": "低于最小ISR值", + "pos": { + "h": 8, + "w": 3, + "x": 15, + "y": 0 + }, + "type": "singlestat", + "queries": [ + { + "name": "", + "type": "singlestat", + "unit": "", + "color": "", + "qtype": "dql", + "query": { + "q": "M::`kafka_replica_manager`:(count(`UnderMinIsrPartitionCount`)) { `host` = '#{host}' }", + "code": "A", + "fill": null, + "type": "simple", + "alias": "", + "field": "UnderMinIsrPartitionCount", + "density": "medium", + "filters": [ + { + "id": "582c4aa0-c380-11eb-b98e-df59d31b9dd6", + "op": "=", + "name": "host", + "type": "", + "logic": "and", + "value": "#{host}" + } + ], + "groupBy": [], + "funcList": [ + "last" + ], + "fieldFunc": "count", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_replica_manager", + "queryFuncs": [], + "groupByTime": "" + }, + "datasource": "dataflux" + } + ] + }, + { + "extend": { + "settings": { + "alias": [], + "units": [], + "colors": [], + "levels": [], + "bgColor": "#5F67D6", + "mappings": [], + "pageSize": 50, + "showLine": false, + "unitType": "global", + "fixedTime": "", + "fontColor": "", + "lineColor": "#c23531", + "precision": "2", + "queryMode": "toMergeColumn", + "showTitle": true, + "titleDesc": "", + "downsample": "last", + "globalUnit": [], + "isSampling": true, + "compareType": "", + "openCompare": false, + "compareTitle": "", + "showLineAxis": false, + "timeInterval": "auto", + "isTimeInterval": false, + "changeWorkspace": false, + "currentChartType": "singlestat", + "showFieldMapping": false, + "sequenceChartType": "line", + "openThousandsSeparator": true + }, + "fixedTime": "", + "isRefresh": false + }, + "group": { + "name": "概览" + }, + "name": "死锁线程数", + "pos": { + "h": 8, + "w": 3, + "x": 18, + "y": 0 + }, + "type": "singlestat", + "queries": [ + { + "name": "", + "type": "singlestat", + "unit": "", + "color": "", + "qtype": "dql", + "query": { + "q": "M::`kafka_log`:(avg(`DeadThreadCount`)) { `host` = '#{host}' }", + "code": "A", + "fill": null, + "type": "simple", + "alias": "", + "field": "DeadThreadCount", + "density": "medium", + "filters": [ + { + "id": "582c4aa0-c380-11eb-b98e-df59d31b9dd6", + "op": "=", + "name": "host", + "type": "", + "logic": "and", + "value": "#{host}" + } + ], + "groupBy": [], + "funcList": [ + "last" + ], + "fieldFunc": "avg", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_log", + "queryFuncs": [], + "groupByTime": "" + }, + "datasource": "dataflux" + } + ] + }, + { + "extend": { + "settings": { + "alias": [], + "units": [], + "colors": [], + "levels": [], + "slimit": 20, + "density": "medium", + "mappings": [], + "pageSize": 50, + "showLine": false, + "unitType": "global", + "chartType": "areaLine", + "fixedTime": "", + "isPercent": false, + "lineColor": "#c23531", + "openStack": false, + "precision": "2", + "queryMode": "toMergeColumn", + "showLabel": false, + "showTitle": true, + "stackType": "time", + "titleDesc": "", + "downsample": "last", + "globalUnit": [], + "isSampling": true, + "compareType": "", + "openCompare": false, + "yAxixMaxVal": null, + "yAxixMinVal": null, + "compareTitle": "", + "connectNulls": true, + "legendValues": [], + "showLineAxis": false, + "timeInterval": "default", + "legendPostion": "none", + "maxPointCount": 360, + "sorderByOrder": "desc", + "xAxisShowType": "time", + "isTimeInterval": true, + "changeWorkspace": false, + "currentChartType": "sequence", + "showFieldMapping": false, + "onlyShowGroupName": false, + "tableSortMetricName": "事件队列", + "openThousandsSeparator": true, + "mainMeasurementQueryCode": "A" + }, + "fixedTime": "", + "isRefresh": true + }, + "group": { + "name": "概览" + }, + "name": "网络线程空闲率", + "pos": { + "h": 10, + "w": 4, + "x": 17, + "y": 8 + }, + "type": "sequence", + "queries": [ + { + "name": "", + "type": "sequence", + "unit": "", + "color": "", + "qtype": "dql", + "query": { + "q": "M::`kafka_network`:(avg(`NetworkProcessorAvgIdlePercent`) AS `空闲率`) { `host` = '#{host}' }", + "code": "A", + "fill": null, + "type": "simple", + "alias": "空闲率", + "field": "NetworkProcessorAvgIdlePercent", + "filters": [ + { + "id": "c839c9c0-c381-11eb-b98e-df59d31b9dd6", + "op": "=", + "name": "host", + "type": "", + "logic": "and", + "value": "#{host}" + } + ], + "groupBy": [], + "funcList": [], + "fieldFunc": "avg", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_network", + "queryFuncs": [], + "groupByTime": "", + "additionalFields": null + }, + "datasource": "dataflux" + } + ] + }, + { + "extend": { + "settings": { + "alias": [], + "units": [], + "colors": [], + "levels": [], + "bgColor": "#5F67D6", + "mappings": [], + "pageSize": 50, + "showLine": false, + "unitType": "global", + "fixedTime": "", + "fontColor": "", + "lineColor": "#c23531", + "precision": "2", + "queryMode": "toMergeColumn", + "showTitle": true, + "titleDesc": "", + "downsample": "last", + "globalUnit": [], + "isSampling": true, + "compareType": "", + "openCompare": false, + "compareTitle": "", + "showLineAxis": false, + "timeInterval": "auto", + "isTimeInterval": false, + "changeWorkspace": false, + "currentChartType": "singlestat", + "showFieldMapping": false, + "sequenceChartType": "line", + "openThousandsSeparator": true + }, + "fixedTime": "", + "isRefresh": false + }, + "group": { + "name": "概览" + }, + "name": "非同步分区选举为leader数", + "pos": { + "h": 10, + "w": 3, + "x": 21, + "y": 8 + }, + "type": "singlestat", + "queries": [ + { + "name": "", + "type": "singlestat", + "unit": "", + "color": "", + "qtype": "dql", + "query": { + "q": "M::`kafka_controller`:(avg(`UncleanLeaderElectionsPerSec.Count`)) { `host` = '#{host}' }", + "code": "A", + "fill": null, + "type": "simple", + "alias": "", + "field": "UncleanLeaderElectionsPerSec.Count", + "density": "medium", + "filters": [ + { + "id": "582c4aa0-c380-11eb-b98e-df59d31b9dd6", + "op": "=", + "name": "host", + "type": "", + "logic": "and", + "value": "#{host}" + } + ], + "groupBy": [], + "funcList": [ + "last" + ], + "fieldFunc": "avg", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_controller", + "queryFuncs": [], + "groupByTime": "", + "additionalFields": null + }, + "datasource": "dataflux" + } + ] + } + ], + "groups": [ + { + "name": "简介", + "extend": {} + }, + { + "name": "概览", + "extend": {} + }, + { + "name": "Topic", + "extend": {} + }, + { + "name": "副本管理", + "extend": {} + }, + { + "name": "性能监控", + "extend": {} + }, + { + "name": "Purgatory", + "extend": {} + }, + { + "name": "日志", + "extend": {} + } + ], + "type": "template" + } +} \ No newline at end of file diff --git a/internal/export/monitor/kafka/kafka.json b/internal/export/monitor/kafka/kafka.json deleted file mode 100644 index 973226678e..0000000000 --- a/internal/export/monitor/kafka/kafka.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "checkers": [ - { - "extend": { - "funcName": "", - "querylist": [ - { - "datasource": "dataflux", - "qtype": "dql", - "query": { - "alias": "", - "code": "Result", - "dataSource": "kafka_topics", - "field": "FailedFetchRequestsPerSec.Count", - "fieldFunc": "avg", - "fieldType": "float", - "funcList": [], - "groupBy": [ - "host" - ], - "groupByTime": "", - "namespace": "metric", - "q": "M::`kafka_topics`:(AVG(`FailedFetchRequestsPerSec.Count`)) BY `host`", - "type": "simple" - }, - "uuid": "e67e1bc7-be20-4c25-be08-fd8547304f1c" - } - ], - "rules": [ - { - "conditionLogic": "and", - "conditions": [ - { - "alias": "Result", - "operands": [ - "10" - ], - "operator": ">=" - } - ], - "status": "critical" - }, - { - "conditionLogic": "and", - "conditions": [ - { - "alias": "Result", - "operands": [ - "5" - ], - "operator": ">=" - } - ], - "status": "error" - }, - { - "conditionLogic": "and", - "conditions": [ - { - "alias": "Result", - "operands": [ - "3" - ], - "operator": ">=" - } - ], - "status": "warning" - } - ] - }, - "is_disable": false, - "jsonScript": { - "atAccounts": [], - "atNoDataAccounts": [], - "channels": [], - "checkerOpt": { - "rules": [ - { - "conditionLogic": "and", - "conditions": [ - { - "alias": "Result", - "operands": [ - "10" - ], - "operator": ">=" - } - ], - "status": "critical" - }, - { - "conditionLogic": "and", - "conditions": [ - { - "alias": "Result", - "operands": [ - "5" - ], - "operator": ">=" - } - ], - "status": "error" - }, - { - "conditionLogic": "and", - "conditions": [ - { - "alias": "Result", - "operands": [ - "3" - ], - "operator": ">=" - } - ], - "status": "warning" - } - ] - }, - "every": "5m", - "groupBy": [ - "host" - ], - "interval": 300, - "message": "><<.Monitor.level>>:{{df_status}} \n><<.Monitor.event>>:{{ df_dimension_tags }}\n><<.Monitor.monitor>>:{{ df_monitor_checker_name }}\n><<.Monitor.alarm_policy>>:{{ df_monitor_name }}\n><<.Monitor.event_status>>: {{ df_status }}\n><<.Monitor.content>>:<<.Monitor.content_info>>\n><<.Monitor.suggestion>>:<<.Monitor.suggestion_info>>", - "noDataMessage": "", - "noDataTitle": "", - "recoverNeedPeriodCount": 2, - "targets": [ - { - "alias": "Result", - "dql": "M::`kafka_topics`:(AVG(`FailedFetchRequestsPerSec.Count`)) BY `host`" - } - ], - "title": "<<.Monitor.title>>", - "type": "simpleCheck" - }, - "monitorName": "<<.Monitor.default_monitor_name>>" - } - ] -} diff --git a/internal/export/monitor/kafka/kafka__en.json b/internal/export/monitor/kafka/kafka__en.json new file mode 100644 index 0000000000..50c9e445fe --- /dev/null +++ b/internal/export/monitor/kafka/kafka__en.json @@ -0,0 +1,1010 @@ +{ + "checkers": [ + { + "jsonScript": { + "type": "simpleCheck", + "every": "5m", + "title": "Kafka FailedFetchRequestsPerSec Alert", + "groupBy": [ + "host" + ], + "message": ">df_dimension_tags:{{ df_dimension_tags }}\n>df_monitor_checker_name:{{ df_monitor_checker_name }}\n>df_monitor_name:{{ df_monitor_name }}\n>df_status: {{ df_status }}\n>Content:Kafka ActiveControllerCount is Zero\n>Suggestion: Log in to the cluster to check for any abnormalities", + "targets": [ + { + "dql": "M::`kafka_topics`:(avg(`FailedFetchRequestsPerSec.Count`)) BY `host`", + "alias": "Result", + "qtype": "dql" + } + ], + "channels": [], + "interval": 300, + "atAccounts": [], + "checkerOpt": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "10" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "5" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "infoEvent": false, + "openMatchTimes": false + }, + "noDataTitle": "", + "noDataMessage": "", + "atNoDataAccounts": [], + "disableCheckEndTime": false, + "recoverNeedPeriodCount": 2 + }, + "extend": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "10" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "5" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "manager": [], + "funcName": "", + "querylist": [ + { + "uuid": "e67e1bc7-be20-4c25-be08-fd8547304f1c", + "qtype": "dql", + "query": { + "q": "M::`kafka_topics`:(avg(`FailedFetchRequestsPerSec.Count`)) BY `host`", + "code": "Result", + "type": "simple", + "alias": "", + "field": "FailedFetchRequestsPerSec.Count", + "groupBy": [ + "host" + ], + "funcList": [], + "fieldFunc": "avg", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_topics", + "groupByTime": "" + }, + "datasource": "dataflux" + } + ], + "issueLevelUUID": "", + "needRecoverIssue": false, + "isNeedCreateIssue": false + }, + "is_disable": false, + "tagInfo": [], + "secret": "", + "type": "trigger", + "monitorName": "Kafka 检测库", + "alertPolicyNames": [] + }, + { + "jsonScript": { + "type": "simpleCheck", + "every": "5m", + "title": "Kafka UnderReplicatedPartitions Alert", + "groupBy": [], + "message": ">df_dimension_tags:{{ df_dimension_tags }}\n>df_monitor_checker_name:{{ df_monitor_checker_name }}\n>df_monitor_name:{{ df_monitor_name }}\n>df_status: {{ df_status }}\n>Content:Kafka ActiveControllerCount is Zero\n>Suggestion: Log in to the cluster to check for any abnormalities", + "targets": [ + { + "dql": "M::`kafka_replica_manager`:(count(`UnderReplicatedPartitions`))", + "alias": "Result", + "qtype": "dql" + } + ], + "channels": [], + "interval": 300, + "atAccounts": [], + "checkerOpt": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "infoEvent": false, + "combineExpr": "A && B", + "openMatchTimes": false + }, + "noDataTitle": "", + "noDataMessage": "", + "atNoDataAccounts": [], + "disableCheckEndTime": false, + "recoverNeedPeriodCount": 2 + }, + "extend": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "manager": [], + "funcName": "", + "querylist": [ + { + "uuid": "c6747a82-d029-42e1-be68-25d2c9585b00", + "qtype": "dql", + "query": { + "q": "M::`kafka_replica_manager`:(count(`UnderReplicatedPartitions`))", + "code": "Result", + "type": "simple", + "alias": "", + "field": "UnderReplicatedPartitions", + "groupBy": [], + "funcList": [], + "fieldFunc": "count", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_replica_manager", + "groupByTime": "", + "additionalFields": null + }, + "datasource": "dataflux" + } + ], + "issueLevelUUID": "", + "needRecoverIssue": false, + "isNeedCreateIssue": false + }, + "is_disable": false, + "tagInfo": [], + "secret": "", + "type": "trigger", + "monitorName": "default", + "alertPolicyNames": [] + }, + { + "jsonScript": { + "type": "simpleCheck", + "every": "5m", + "title": "Kafka UnderMinIsrPartitionCount Alert", + "groupBy": [], + "message": ">df_dimension_tags:{{ df_dimension_tags }}\n>df_monitor_checker_name:{{ df_monitor_checker_name }}\n>df_monitor_name:{{ df_monitor_name }}\n>df_status: {{ df_status }}\n>Content:Kafka ActiveControllerCount is Zero\n>Suggestion: Log in to the cluster to check for any abnormalities", + "targets": [ + { + "dql": "M::`kafka_replica_manager`:(count(`UnderMinIsrPartitionCount.Value`))", + "alias": "Result", + "qtype": "dql" + } + ], + "channels": [], + "interval": 300, + "atAccounts": [], + "checkerOpt": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "infoEvent": false, + "combineExpr": "A && B", + "openMatchTimes": false + }, + "noDataTitle": "", + "noDataMessage": "", + "atNoDataAccounts": [], + "disableCheckEndTime": false, + "recoverNeedPeriodCount": 2 + }, + "extend": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "manager": [], + "funcName": "", + "querylist": [ + { + "uuid": "c6747a82-d029-42e1-be68-25d2c9585b00", + "qtype": "dql", + "query": { + "q": "M::`kafka_replica_manager`:(count(`UnderMinIsrPartitionCount.Value`))", + "code": "Result", + "type": "simple", + "alias": "", + "field": "UnderMinIsrPartitionCount.Value", + "groupBy": [], + "funcList": [], + "fieldFunc": "count", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_replica_manager", + "groupByTime": "", + "additionalFields": null + }, + "datasource": "dataflux" + } + ], + "issueLevelUUID": "", + "needRecoverIssue": false, + "isNeedCreateIssue": false + }, + "is_disable": false, + "tagInfo": [], + "secret": "", + "type": "trigger", + "monitorName": "default", + "alertPolicyNames": [] + }, + { + "jsonScript": { + "type": "simpleCheck", + "every": "5m", + "title": "Kafka Offline Partition Alert", + "groupBy": [], + "message": ">df_dimension_tags:{{ df_dimension_tags }}\n>df_monitor_checker_name:{{ df_monitor_checker_name }}\n>df_monitor_name:{{ df_monitor_name }}\n>df_status: {{ df_status }}\n>Content:Kafka ActiveControllerCount is Zero\n>Suggestion: Log in to the cluster to check for any abnormalities", + "targets": [ + { + "dql": "M::`kafka_controller`:(count(`OfflinePartitionsCount.Value`))", + "alias": "Result", + "qtype": "dql" + } + ], + "channels": [], + "interval": 300, + "atAccounts": [], + "checkerOpt": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "infoEvent": false, + "openMatchTimes": false + }, + "noDataTitle": "", + "noDataMessage": "", + "atNoDataAccounts": [], + "disableCheckEndTime": false, + "recoverNeedPeriodCount": 2 + }, + "extend": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "manager": [], + "funcName": "", + "querylist": [ + { + "uuid": "e67e1bc7-be20-4c25-be08-fd8547304f1c", + "qtype": "dql", + "query": { + "q": "M::`kafka_controller`:(count(`OfflinePartitionsCount.Value`))", + "code": "Result", + "type": "simple", + "alias": "", + "field": "OfflinePartitionsCount.Value", + "groupBy": [], + "funcList": [], + "fieldFunc": "count", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_controller", + "groupByTime": "", + "additionalFields": null + }, + "datasource": "dataflux" + } + ], + "issueLevelUUID": "", + "needRecoverIssue": false, + "isNeedCreateIssue": false + }, + "is_disable": false, + "tagInfo": [], + "secret": "", + "type": "trigger", + "monitorName": "default", + "alertPolicyNames": [] + }, + { + "jsonScript": { + "type": "simpleCheck", + "every": "5m", + "title": "Kafka Parition Leader Election Count Alert", + "groupBy": [], + "message": ">df_dimension_tags:{{ df_dimension_tags }}\n>df_monitor_checker_name:{{ df_monitor_checker_name }}\n>df_monitor_name:{{ df_monitor_name }}\n>df_status: {{ df_status }}\n>Content:Kafka ActiveControllerCount is Zero\n>Suggestion: Log in to the cluster to check for any abnormalities", + "targets": [ + { + "dql": "M::`kafka_controller`:(count(`LeaderElectionRateAndTimeMs.Count`))", + "alias": "Result", + "qtype": "dql" + } + ], + "channels": [], + "interval": 300, + "atAccounts": [], + "checkerOpt": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "infoEvent": false, + "openMatchTimes": false + }, + "noDataTitle": "", + "noDataMessage": "", + "atNoDataAccounts": [], + "disableCheckEndTime": false, + "recoverNeedPeriodCount": 2 + }, + "extend": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "manager": [], + "funcName": "", + "querylist": [ + { + "uuid": "e67e1bc7-be20-4c25-be08-fd8547304f1c", + "qtype": "dql", + "query": { + "q": "M::`kafka_controller`:(count(`LeaderElectionRateAndTimeMs.Count`))", + "code": "Result", + "type": "simple", + "alias": "", + "field": "LeaderElectionRateAndTimeMs.Count", + "groupBy": [], + "funcList": [], + "fieldFunc": "count", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_controller", + "groupByTime": "", + "additionalFields": null + }, + "datasource": "dataflux" + } + ], + "issueLevelUUID": "", + "needRecoverIssue": false, + "isNeedCreateIssue": false + }, + "is_disable": false, + "tagInfo": [], + "secret": "", + "type": "trigger", + "monitorName": "default", + "alertPolicyNames": [] + }, + { + "jsonScript": { + "type": "simpleCheck", + "every": "5m", + "title": "Kafka Unclean Leader Election Count Alert", + "groupBy": [], + "message": ">df_dimension_tags:{{ df_dimension_tags }}\n>df_monitor_checker_name:{{ df_monitor_checker_name }}\n>df_monitor_name:{{ df_monitor_name }}\n>df_status: {{ df_status }}\n>Content:Kafka ActiveControllerCount is Zero\n>Suggestion: Log in to the cluster to check for any abnormalities", + "targets": [ + { + "dql": "M::`kafka_controller`:(count(`UncleanLeaderElectionsPerSec.Count`))", + "alias": "Result", + "qtype": "dql" + } + ], + "channels": [], + "interval": 300, + "atAccounts": [], + "checkerOpt": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "infoEvent": false, + "openMatchTimes": false + }, + "noDataTitle": "", + "noDataMessage": "", + "atNoDataAccounts": [], + "disableCheckEndTime": false, + "recoverNeedPeriodCount": 2 + }, + "extend": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "manager": [], + "funcName": "", + "querylist": [ + { + "uuid": "e67e1bc7-be20-4c25-be08-fd8547304f1c", + "qtype": "dql", + "query": { + "q": "M::`kafka_controller`:(count(`UncleanLeaderElectionsPerSec.Count`))", + "code": "Result", + "type": "simple", + "alias": "", + "field": "UncleanLeaderElectionsPerSec.Count", + "groupBy": [], + "funcList": [], + "fieldFunc": "count", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_controller", + "groupByTime": "", + "additionalFields": null + }, + "datasource": "dataflux" + } + ], + "issueLevelUUID": "", + "needRecoverIssue": false, + "isNeedCreateIssue": false + }, + "is_disable": false, + "tagInfo": [], + "secret": "", + "type": "trigger", + "monitorName": "default", + "alertPolicyNames": [] + }, + { + "jsonScript": { + "type": "simpleCheck", + "every": "5m", + "title": "Kafka ActiveControllerCount is Zero", + "groupBy": [], + "message": ">df_dimension_tags:{{ df_dimension_tags }}\n>df_monitor_checker_name:{{ df_monitor_checker_name }}\n>df_monitor_name:{{ df_monitor_name }}\n>df_status: {{ df_status }}\n>Content:Kafka ActiveControllerCount is Zero\n>Suggestion: Log in to the cluster to check for any abnormalities", + "targets": [ + { + "dql": "M::`kafka_controller`:(count(`ActiveControllerCount.Value`))", + "alias": "Result", + "qtype": "dql" + } + ], + "channels": [], + "interval": 300, + "atAccounts": [], + "checkerOpt": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "0" + ], + "operator": "=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "infoEvent": false, + "openMatchTimes": false + }, + "noDataTitle": "", + "noDataMessage": "", + "atNoDataAccounts": [], + "disableCheckEndTime": false, + "recoverNeedPeriodCount": 2 + }, + "extend": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "0" + ], + "operator": "=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "manager": [], + "funcName": "", + "querylist": [ + { + "uuid": "e67e1bc7-be20-4c25-be08-fd8547304f1c", + "qtype": "dql", + "query": { + "q": "M::`kafka_controller`:(count(`ActiveControllerCount.Value`))", + "code": "Result", + "type": "simple", + "alias": "", + "field": "ActiveControllerCount.Value", + "groupBy": [], + "funcList": [], + "fieldFunc": "count", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_controller", + "groupByTime": "", + "additionalFields": null + }, + "datasource": "dataflux" + } + ], + "issueLevelUUID": "", + "needRecoverIssue": false, + "isNeedCreateIssue": false + }, + "is_disable": false, + "tagInfo": [], + "secret": "", + "type": "trigger", + "monitorName": "default", + "alertPolicyNames": [] + } + ] +} \ No newline at end of file diff --git a/internal/export/monitor/kafka/kafka__zh.json b/internal/export/monitor/kafka/kafka__zh.json new file mode 100644 index 0000000000..6194086b78 --- /dev/null +++ b/internal/export/monitor/kafka/kafka__zh.json @@ -0,0 +1,996 @@ +{ + "checkers": [ + { + "jsonScript": { + "type": "simpleCheck", + "every": "5m", + "title": "Kafka 请求失败数过高", + "groupBy": [ + "host" + ], + "message": ">等级:{{df_status}} \n>事件:{{ df_dimension_tags }}\n>监控器:{{ df_monitor_checker_name }}\n>告警策略:{{ df_monitor_name }}\n>事件状态: {{ df_status }}\n>内容:Kafka 请求失败数过高\n>建议:登录集群查看是否有异常", + "targets": [ + { + "dql": "M::`kafka_topics`:(AVG(`FailedFetchRequestsPerSec.Count`)) BY `host`", + "alias": "Result" + } + ], + "channels": [], + "interval": 300, + "atAccounts": [], + "checkerOpt": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "10" + ], + "operator": ">=" + } + ], + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "5" + ], + "operator": ">=" + } + ], + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "conditionLogic": "and" + } + ] + }, + "noDataTitle": "", + "noDataMessage": "", + "atNoDataAccounts": [], + "recoverNeedPeriodCount": 2 + }, + "extend": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "10" + ], + "operator": ">=" + } + ], + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "5" + ], + "operator": ">=" + } + ], + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "conditionLogic": "and" + } + ], + "funcName": "", + "querylist": [ + { + "uuid": "e67e1bc7-be20-4c25-be08-fd8547304f1c", + "qtype": "dql", + "query": { + "q": "M::`kafka_topics`:(AVG(`FailedFetchRequestsPerSec.Count`)) BY `host`", + "code": "Result", + "type": "simple", + "alias": "", + "field": "FailedFetchRequestsPerSec.Count", + "groupBy": [ + "host" + ], + "funcList": [], + "fieldFunc": "avg", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_topics", + "groupByTime": "" + }, + "datasource": "dataflux" + } + ] + }, + "is_disable": false, + "tagInfo": [], + "secret": "", + "type": "trigger", + "monitorName": "Kafka 检测库", + "alertPolicyNames": [] + }, + { + "jsonScript": { + "type": "simpleCheck", + "every": "5m", + "title": "Kafka未同步状态的 Partition数", + "groupBy": [], + "message": ">等级:{{df_status}} \n>事件:{{ df_dimension_tags }}\n>监控器:{{ df_monitor_checker_name }}\n>告警策略:{{ df_monitor_name }}\n>事件状态: {{ df_status }}\n>内容:Kafka未同步状态的 Partition数\n>建议:登录集群查看是否有异常", + "targets": [ + { + "dql": "M::`kafka_replica_manager`:(count(`UnderReplicatedPartitions`))", + "alias": "Result", + "qtype": "dql" + } + ], + "channels": [], + "interval": 300, + "atAccounts": [], + "checkerOpt": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "infoEvent": false, + "combineExpr": "A && B", + "openMatchTimes": false + }, + "noDataTitle": "", + "noDataMessage": "", + "atNoDataAccounts": [], + "disableCheckEndTime": false, + "recoverNeedPeriodCount": 2 + }, + "extend": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "manager": [], + "funcName": "", + "querylist": [ + { + "uuid": "c6747a82-d029-42e1-be68-25d2c9585b00", + "qtype": "dql", + "query": { + "q": "M::`kafka_replica_manager`:(count(`UnderReplicatedPartitions`))", + "code": "Result", + "type": "simple", + "alias": "", + "field": "UnderReplicatedPartitions", + "groupBy": [], + "funcList": [], + "fieldFunc": "count", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_replica_manager", + "groupByTime": "", + "additionalFields": null + }, + "datasource": "dataflux" + } + ], + "issueLevelUUID": "", + "needRecoverIssue": false, + "isNeedCreateIssue": false + }, + "is_disable": false, + "tagInfo": [], + "secret": "", + "type": "trigger", + "monitorName": "default", + "alertPolicyNames": [] + }, + { + "jsonScript": { + "type": "simpleCheck", + "every": "5m", + "title": "Kafka 同步副本低于最小 ISR Partition 个数", + "groupBy": [], + "message": ">等级:{{df_status}} \n>事件:{{ df_dimension_tags }}\n>监控器:{{ df_monitor_checker_name }}\n>告警策略:{{ df_monitor_name }}\n>事件状态: {{ df_status }}\n>内容:Kafka 同步副本低于最小 ISR Partition 个数\n>建议:登录集群查看是否有异常", + "targets": [ + { + "dql": "M::`kafka_replica_manager`:(count(`UnderMinIsrPartitionCount.Value`))", + "alias": "Result", + "qtype": "dql" + } + ], + "channels": [], + "interval": 300, + "atAccounts": [], + "checkerOpt": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "infoEvent": false, + "combineExpr": "A && B", + "openMatchTimes": false + }, + "noDataTitle": "", + "noDataMessage": "", + "atNoDataAccounts": [], + "disableCheckEndTime": false, + "recoverNeedPeriodCount": 2 + }, + "extend": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "manager": [], + "funcName": "", + "querylist": [ + { + "uuid": "c6747a82-d029-42e1-be68-25d2c9585b00", + "qtype": "dql", + "query": { + "q": "M::`kafka_replica_manager`:(count(`UnderMinIsrPartitionCount.Value`))", + "code": "Result", + "type": "simple", + "alias": "", + "field": "UnderMinIsrPartitionCount.Value", + "groupBy": [], + "funcList": [], + "fieldFunc": "count", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_replica_manager", + "groupByTime": "", + "additionalFields": null + }, + "datasource": "dataflux" + } + ], + "issueLevelUUID": "", + "needRecoverIssue": false, + "isNeedCreateIssue": false + }, + "is_disable": false, + "tagInfo": [], + "secret": "", + "type": "trigger", + "monitorName": "default", + "alertPolicyNames": [] + }, + { + "jsonScript": { + "type": "simpleCheck", + "every": "5m", + "title": "Kafka离线的分区告警", + "groupBy": [], + "message": ">等级:{{df_status}} \n>事件:{{ df_dimension_tags }}\n>监控器:{{ df_monitor_checker_name }}\n>告警策略:{{ df_monitor_name }}\n>事件状态: {{ df_status }}\n>内容:Kafka离线的分区告警\n>建议:登录集群查看是否有异常", + "targets": [ + { + "dql": "M::`kafka_controller`:(count(`OfflinePartitionsCount.Value`))", + "alias": "Result", + "qtype": "dql" + } + ], + "channels": [], + "interval": 300, + "atAccounts": [], + "checkerOpt": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "infoEvent": false, + "openMatchTimes": false + }, + "noDataTitle": "", + "noDataMessage": "", + "atNoDataAccounts": [], + "disableCheckEndTime": false, + "recoverNeedPeriodCount": 2 + }, + "extend": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "manager": [], + "funcName": "", + "querylist": [ + { + "uuid": "e67e1bc7-be20-4c25-be08-fd8547304f1c", + "qtype": "dql", + "query": { + "q": "M::`kafka_controller`:(count(`OfflinePartitionsCount.Value`))", + "code": "Result", + "type": "simple", + "alias": "", + "field": "OfflinePartitionsCount.Value", + "groupBy": [], + "funcList": [], + "fieldFunc": "count", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_controller", + "groupByTime": "", + "additionalFields": null + }, + "datasource": "dataflux" + } + ], + "issueLevelUUID": "", + "needRecoverIssue": false, + "isNeedCreateIssue": false + }, + "is_disable": false, + "tagInfo": [], + "secret": "", + "type": "trigger", + "monitorName": "default", + "alertPolicyNames": [] + }, + { + "jsonScript": { + "type": "simpleCheck", + "every": "5m", + "title": "Kafka Parition Leader选举次数告警", + "groupBy": [], + "message": ">等级:{{df_status}} \n>事件:{{ df_dimension_tags }}\n>监控器:{{ df_monitor_checker_name }}\n>告警策略:{{ df_monitor_name }}\n>事件状态: {{ df_status }}\n>内容:Kafka Parition Leader选举次数告警\n>建议:登录集群查看是否有异常", + "targets": [ + { + "dql": "M::`kafka_controller`:(count(`LeaderElectionRateAndTimeMs.Count`))", + "alias": "Result", + "qtype": "dql" + } + ], + "channels": [], + "interval": 300, + "atAccounts": [], + "checkerOpt": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "infoEvent": false, + "openMatchTimes": false + }, + "noDataTitle": "", + "noDataMessage": "", + "atNoDataAccounts": [], + "disableCheckEndTime": false, + "recoverNeedPeriodCount": 2 + }, + "extend": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "manager": [], + "funcName": "", + "querylist": [ + { + "uuid": "e67e1bc7-be20-4c25-be08-fd8547304f1c", + "qtype": "dql", + "query": { + "q": "M::`kafka_controller`:(count(`LeaderElectionRateAndTimeMs.Count`))", + "code": "Result", + "type": "simple", + "alias": "", + "field": "LeaderElectionRateAndTimeMs.Count", + "groupBy": [], + "funcList": [], + "fieldFunc": "count", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_controller", + "groupByTime": "", + "additionalFields": null + }, + "datasource": "dataflux" + } + ], + "issueLevelUUID": "", + "needRecoverIssue": false, + "isNeedCreateIssue": false + }, + "is_disable": false, + "tagInfo": [], + "secret": "", + "type": "trigger", + "monitorName": "default", + "alertPolicyNames": [] + }, + { + "jsonScript": { + "type": "simpleCheck", + "every": "5m", + "title": "Kafka Unclean Leader选举次数告警", + "groupBy": [], + "message": ">等级:{{df_status}} \n>事件:{{ df_dimension_tags }}\n>监控器:{{ df_monitor_checker_name }}\n>告警策略:{{ df_monitor_name }}\n>事件状态: {{ df_status }}\n>内容:Kafka Unclean Leader选举次数告警\n>建议:登录集群查看是否有异常", + "targets": [ + { + "dql": "M::`kafka_controller`:(count(`UncleanLeaderElectionsPerSec.Count`))", + "alias": "Result", + "qtype": "dql" + } + ], + "channels": [], + "interval": 300, + "atAccounts": [], + "checkerOpt": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "infoEvent": false, + "openMatchTimes": false + }, + "noDataTitle": "", + "noDataMessage": "", + "atNoDataAccounts": [], + "disableCheckEndTime": false, + "recoverNeedPeriodCount": 2 + }, + "extend": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "3" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "error", + "conditions": [ + { + "alias": "Result", + "operands": [ + "2" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + }, + { + "status": "warning", + "conditions": [ + { + "alias": "Result", + "operands": [ + "1" + ], + "operator": ">=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "manager": [], + "funcName": "", + "querylist": [ + { + "uuid": "e67e1bc7-be20-4c25-be08-fd8547304f1c", + "qtype": "dql", + "query": { + "q": "M::`kafka_controller`:(count(`UncleanLeaderElectionsPerSec.Count`))", + "code": "Result", + "type": "simple", + "alias": "", + "field": "UncleanLeaderElectionsPerSec.Count", + "groupBy": [], + "funcList": [], + "fieldFunc": "count", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_controller", + "groupByTime": "", + "additionalFields": null + }, + "datasource": "dataflux" + } + ], + "issueLevelUUID": "", + "needRecoverIssue": false, + "isNeedCreateIssue": false + }, + "is_disable": false, + "tagInfo": [], + "secret": "", + "type": "trigger", + "monitorName": "default", + "alertPolicyNames": [] + }, + { + "jsonScript": { + "type": "simpleCheck", + "every": "5m", + "title": "Kafka ActiveControllerCount为0告警", + "groupBy": [], + "message": ">等级:{{df_status}} \n>事件:{{ df_dimension_tags }}\n>监控器:{{ df_monitor_checker_name }}\n>告警策略:{{ df_monitor_name }}\n>事件状态: {{ df_status }}\n>内容:Kafka ActiveControllerCount为0\n>建议:登录集群查看是否有异常", + "targets": [ + { + "dql": "M::`kafka_controller`:(count(`ActiveControllerCount.Value`))", + "alias": "Result", + "qtype": "dql" + } + ], + "channels": [], + "interval": 300, + "atAccounts": [], + "checkerOpt": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "0" + ], + "operator": "=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "infoEvent": false, + "openMatchTimes": false + }, + "noDataTitle": "", + "noDataMessage": "", + "atNoDataAccounts": [], + "disableCheckEndTime": false, + "recoverNeedPeriodCount": 2 + }, + "extend": { + "rules": [ + { + "status": "critical", + "conditions": [ + { + "alias": "Result", + "operands": [ + "0" + ], + "operator": "=" + } + ], + "matchTimes": 1, + "conditionLogic": "and" + } + ], + "manager": [], + "funcName": "", + "querylist": [ + { + "uuid": "e67e1bc7-be20-4c25-be08-fd8547304f1c", + "qtype": "dql", + "query": { + "q": "M::`kafka_controller`:(count(`ActiveControllerCount.Value`))", + "code": "Result", + "type": "simple", + "alias": "", + "field": "ActiveControllerCount.Value", + "groupBy": [], + "funcList": [], + "fieldFunc": "count", + "fieldType": "float", + "namespace": "metric", + "dataSource": "kafka_controller", + "groupByTime": "", + "additionalFields": null + }, + "datasource": "dataflux" + } + ], + "issueLevelUUID": "", + "needRecoverIssue": false, + "isNeedCreateIssue": false + }, + "is_disable": false, + "tagInfo": [], + "secret": "", + "type": "trigger", + "monitorName": "default", + "alertPolicyNames": [] + } + ] +} \ No newline at end of file