Created
September 6, 2022 03:23
-
-
Save UlricQin/ce9de51ca160d2b008adcfe33d244273 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Kafka - by jmx_exporter", | |
"tags": "", | |
"configs": { | |
"var": [ | |
{ | |
"type": "query", | |
"name": "cluster", | |
"definition": "label_values(kafka_brokers, cluster)" | |
}, | |
{ | |
"type": "query", | |
"name": "topic", | |
"definition": "label_values(kafka_log_size{cluster=\"$cluster\"}, topic)", | |
"multi": true, | |
"allOption": true, | |
"allValue": ".*" | |
} | |
], | |
"panels": [ | |
{ | |
"targets": [ | |
{ | |
"refId": "A", | |
"expr": "sum by(cluster, topic) (kafka_log_size{cluster=\"$cluster\", topic=~\"$topic\"})" | |
} | |
], | |
"name": "Kafka log size", | |
"description": "It includes the size of all replicas of a topic.", | |
"options": { | |
"tooltip": { | |
"mode": "all", | |
"sort": "desc" | |
}, | |
"legend": { | |
"displayMode": "hidden" | |
}, | |
"standardOptions": { | |
"util": "bytesIEC", | |
"decimals": 1 | |
}, | |
"thresholds": {} | |
}, | |
"custom": { | |
"drawStyle": "lines", | |
"lineInterpolation": "smooth", | |
"lineWidth": 1, | |
"fillOpacity": 0.5, | |
"gradientMode": "none", | |
"stack": "noraml" | |
}, | |
"version": "2.0.0", | |
"type": "timeseries", | |
"layout": { | |
"h": 4, | |
"w": 12, | |
"x": 0, | |
"y": 0, | |
"i": "e6da0def-ca57-46c4-af43-c1715fc58f71", | |
"isResizable": true | |
}, | |
"id": "e6da0def-ca57-46c4-af43-c1715fc58f71" | |
}, | |
{ | |
"targets": [ | |
{ | |
"refId": "A", | |
"expr": "kafka_controller_offline_partitions{cluster=\"$cluster\"}" | |
} | |
], | |
"name": "Offline partitions", | |
"description": "", | |
"options": { | |
"tooltip": { | |
"mode": "all", | |
"sort": "desc" | |
}, | |
"legend": { | |
"displayMode": "hidden" | |
}, | |
"standardOptions": { | |
"util": "none", | |
"decimals": 1 | |
}, | |
"thresholds": {} | |
}, | |
"custom": { | |
"drawStyle": "lines", | |
"lineInterpolation": "smooth", | |
"lineWidth": 1, | |
"fillOpacity": 0.5, | |
"gradientMode": "none", | |
"stack": "noraml" | |
}, | |
"version": "2.0.0", | |
"type": "timeseries", | |
"layout": { | |
"h": 4, | |
"w": 12, | |
"x": 12, | |
"y": 0, | |
"i": "ee6bd607-0c7a-4a12-a866-1face9dc4b53", | |
"isResizable": true | |
}, | |
"id": "a630636d-c2fd-4159-93d4-73965258c80e" | |
}, | |
{ | |
"targets": [ | |
{ | |
"refId": "A", | |
"expr": "kafka_network_producer_request_time_milliseconds{cluster=\"$cluster\", quantile=\"0.95\"}" | |
} | |
], | |
"name": "95分位生产者请求时间", | |
"options": { | |
"tooltip": { | |
"mode": "all", | |
"sort": "desc" | |
}, | |
"legend": { | |
"displayMode": "hidden" | |
}, | |
"standardOptions": { | |
"util": "milliseconds" | |
}, | |
"thresholds": {} | |
}, | |
"custom": { | |
"drawStyle": "lines", | |
"lineInterpolation": "smooth", | |
"lineWidth": 1, | |
"fillOpacity": 0.5, | |
"gradientMode": "none", | |
"stack": "off" | |
}, | |
"version": "2.0.0", | |
"type": "timeseries", | |
"layout": { | |
"h": 4, | |
"w": 6, | |
"x": 0, | |
"y": 4, | |
"i": "8c08d055-151a-4355-b890-33b83b20bbf7", | |
"isResizable": true | |
}, | |
"id": "8c08d055-151a-4355-b890-33b83b20bbf7" | |
}, | |
{ | |
"targets": [ | |
{ | |
"refId": "A", | |
"expr": "kafka_network_consumer_request_time_milliseconds{cluster=\"$cluster\", quantile=\"0.95\"}" | |
} | |
], | |
"name": "95分位消费者请求时间", | |
"options": { | |
"tooltip": { | |
"mode": "all", | |
"sort": "desc" | |
}, | |
"legend": { | |
"displayMode": "hidden" | |
}, | |
"standardOptions": { | |
"util": "milliseconds" | |
}, | |
"thresholds": {} | |
}, | |
"custom": { | |
"drawStyle": "lines", | |
"lineInterpolation": "smooth", | |
"lineWidth": 1, | |
"fillOpacity": 0.5, | |
"gradientMode": "none", | |
"stack": "off" | |
}, | |
"version": "2.0.0", | |
"type": "timeseries", | |
"layout": { | |
"h": 4, | |
"w": 6, | |
"x": 6, | |
"y": 4, | |
"i": "d2d9ed2c-f2b3-4475-9adb-c604c120d906", | |
"isResizable": true | |
}, | |
"id": "e81581b1-d959-4e3b-a1c2-38c5de5e7530" | |
}, | |
{ | |
"targets": [ | |
{ | |
"refId": "A", | |
"expr": "kafka_network_fetch_follower_time_milliseconds{cluster=\"$cluster\", quantile=\"0.95\"}" | |
} | |
], | |
"name": "95分位获取Follower时间", | |
"options": { | |
"tooltip": { | |
"mode": "all", | |
"sort": "desc" | |
}, | |
"legend": { | |
"displayMode": "hidden" | |
}, | |
"standardOptions": { | |
"util": "milliseconds" | |
}, | |
"thresholds": {} | |
}, | |
"custom": { | |
"drawStyle": "lines", | |
"lineInterpolation": "smooth", | |
"lineWidth": 1, | |
"fillOpacity": 0.5, | |
"gradientMode": "none", | |
"stack": "off" | |
}, | |
"version": "2.0.0", | |
"type": "timeseries", | |
"layout": { | |
"h": 4, | |
"w": 12, | |
"x": 12, | |
"y": 4, | |
"i": "26198eb6-a242-4ef9-88c0-9d97f976f82d", | |
"isResizable": true | |
}, | |
"id": "cd860375-7af5-4b67-8aae-435a2348c7fa" | |
}, | |
{ | |
"type": "row", | |
"id": "189fac05-682a-42e4-94dd-8839a753f77e", | |
"name": "流量", | |
"collapsed": true, | |
"layout": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 8, | |
"i": "189fac05-682a-42e4-94dd-8839a753f77e", | |
"isResizable": false | |
} | |
}, | |
{ | |
"targets": [ | |
{ | |
"refId": "A", | |
"expr": "kafka_server_bytes_in{cluster=\"$cluster\"}" | |
} | |
], | |
"name": "入流量", | |
"options": { | |
"tooltip": { | |
"mode": "all", | |
"sort": "none" | |
}, | |
"legend": { | |
"displayMode": "hidden" | |
}, | |
"standardOptions": { | |
"util": "bytesIEC", | |
"decimals": 2 | |
}, | |
"thresholds": {} | |
}, | |
"custom": { | |
"drawStyle": "lines", | |
"lineInterpolation": "smooth", | |
"lineWidth": 1, | |
"fillOpacity": 0.5, | |
"gradientMode": "none", | |
"stack": "off" | |
}, | |
"version": "2.0.0", | |
"type": "timeseries", | |
"layout": { | |
"h": 4, | |
"w": 12, | |
"x": 0, | |
"y": 9, | |
"i": "9fc370c3-24a8-4e1c-a6b1-598fc68bdddf", | |
"isResizable": true | |
}, | |
"id": "9fc370c3-24a8-4e1c-a6b1-598fc68bdddf" | |
}, | |
{ | |
"targets": [ | |
{ | |
"refId": "A", | |
"expr": "kafka_server_bytes_out{cluster=\"$cluster\"}" | |
} | |
], | |
"name": "出流量", | |
"options": { | |
"tooltip": { | |
"mode": "all", | |
"sort": "none" | |
}, | |
"legend": { | |
"displayMode": "hidden" | |
}, | |
"standardOptions": { | |
"util": "bytesIEC", | |
"decimals": 2 | |
}, | |
"thresholds": {} | |
}, | |
"custom": { | |
"drawStyle": "lines", | |
"lineInterpolation": "smooth", | |
"lineWidth": 1, | |
"fillOpacity": 0.5, | |
"gradientMode": "none", | |
"stack": "off" | |
}, | |
"version": "2.0.0", | |
"type": "timeseries", | |
"layout": { | |
"h": 4, | |
"w": 12, | |
"x": 12, | |
"y": 9, | |
"i": "4c59a823-1bba-4f30-ba44-5c9359469be3", | |
"isResizable": true | |
}, | |
"id": "9863bbb0-c291-4eb6-99a2-f4e012cc20d9" | |
}, | |
{ | |
"type": "row", | |
"id": "36ef5d3f-4e85-4bce-9280-1d312576afde", | |
"name": "zookeeper", | |
"collapsed": true, | |
"layout": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 13, | |
"i": "36ef5d3f-4e85-4bce-9280-1d312576afde", | |
"isResizable": false | |
} | |
}, | |
{ | |
"targets": [ | |
{ | |
"refId": "A", | |
"expr": "kafka_server_zookeeper_auth_failures{cluster=\"$cluster\"}" | |
} | |
], | |
"name": "zk auth failures", | |
"options": { | |
"tooltip": { | |
"mode": "all", | |
"sort": "desc" | |
}, | |
"legend": { | |
"displayMode": "hidden" | |
}, | |
"standardOptions": {}, | |
"thresholds": {} | |
}, | |
"custom": { | |
"drawStyle": "lines", | |
"lineInterpolation": "smooth", | |
"lineWidth": 1, | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"stack": "off" | |
}, | |
"version": "2.0.0", | |
"type": "timeseries", | |
"layout": { | |
"h": 4, | |
"w": 4, | |
"x": 0, | |
"y": 14, | |
"i": "3ff33791-da71-4cfd-acd3-d2505e6e8813", | |
"isResizable": true | |
}, | |
"id": "3ff33791-da71-4cfd-acd3-d2505e6e8813" | |
}, | |
{ | |
"targets": [ | |
{ | |
"refId": "A", | |
"expr": "kafka_server_zookeeper_disconnections{cluster=\"$cluster\"}" | |
} | |
], | |
"name": "zk disconnections", | |
"options": { | |
"tooltip": { | |
"mode": "all", | |
"sort": "desc" | |
}, | |
"legend": { | |
"displayMode": "hidden" | |
}, | |
"standardOptions": {}, | |
"thresholds": {} | |
}, | |
"custom": { | |
"drawStyle": "lines", | |
"lineInterpolation": "smooth", | |
"lineWidth": 1, | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"stack": "off" | |
}, | |
"version": "2.0.0", | |
"type": "timeseries", | |
"layout": { | |
"h": 4, | |
"w": 4, | |
"x": 4, | |
"y": 14, | |
"i": "62935a46-cd25-4a7e-a099-95669e7c3904", | |
"isResizable": true | |
}, | |
"id": "566a3c85-5aa0-4e14-8b8a-655cd6ced9a5" | |
}, | |
{ | |
"targets": [ | |
{ | |
"refId": "A", | |
"expr": "kafka_server_zookeeper_expired_sessions{cluster=\"$cluster\"}" | |
} | |
], | |
"name": "zk expired sessions", | |
"options": { | |
"tooltip": { | |
"mode": "all", | |
"sort": "desc" | |
}, | |
"legend": { | |
"displayMode": "hidden" | |
}, | |
"standardOptions": {}, | |
"thresholds": {} | |
}, | |
"custom": { | |
"drawStyle": "lines", | |
"lineInterpolation": "smooth", | |
"lineWidth": 1, | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"stack": "off" | |
}, | |
"version": "2.0.0", | |
"type": "timeseries", | |
"layout": { | |
"h": 4, | |
"w": 4, | |
"x": 8, | |
"y": 14, | |
"i": "65770158-9c5d-42c3-b28f-0b65947d5a6f", | |
"isResizable": true | |
}, | |
"id": "0f2c0424-3b7e-4a29-a217-e35c74ff1f6a" | |
}, | |
{ | |
"targets": [ | |
{ | |
"refId": "A", | |
"expr": "kafka_server_zookeeper_read_only_connections{cluster=\"$cluster\"}" | |
} | |
], | |
"name": "zk readonly connections", | |
"options": { | |
"tooltip": { | |
"mode": "all", | |
"sort": "desc" | |
}, | |
"legend": { | |
"displayMode": "hidden" | |
}, | |
"standardOptions": {}, | |
"thresholds": {} | |
}, | |
"custom": { | |
"drawStyle": "lines", | |
"lineInterpolation": "smooth", | |
"lineWidth": 1, | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"stack": "off" | |
}, | |
"version": "2.0.0", | |
"type": "timeseries", | |
"layout": { | |
"h": 4, | |
"w": 4, | |
"x": 12, | |
"y": 14, | |
"i": "dc31c798-d6d5-40a2-8ade-3ec548b3e7fa", | |
"isResizable": true | |
}, | |
"id": "e397fd67-e851-4698-83f7-a2514efde176" | |
}, | |
{ | |
"targets": [ | |
{ | |
"refId": "A", | |
"expr": "kafka_server_zookeeper_sasl_authentications{cluster=\"$cluster\"}" | |
} | |
], | |
"name": "zk sasl authentications", | |
"options": { | |
"tooltip": { | |
"mode": "all", | |
"sort": "desc" | |
}, | |
"legend": { | |
"displayMode": "hidden" | |
}, | |
"standardOptions": {}, | |
"thresholds": {} | |
}, | |
"custom": { | |
"drawStyle": "lines", | |
"lineInterpolation": "smooth", | |
"lineWidth": 1, | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"stack": "off" | |
}, | |
"version": "2.0.0", | |
"type": "timeseries", | |
"layout": { | |
"h": 4, | |
"w": 4, | |
"x": 16, | |
"y": 14, | |
"i": "3ef77998-5419-4b12-a70e-3d829f02f524", | |
"isResizable": true | |
}, | |
"id": "838dbcd7-880d-43c6-adcc-c094e01097a7" | |
}, | |
{ | |
"targets": [ | |
{ | |
"refId": "A", | |
"expr": "kafka_server_zookeeper_sync_connections{cluster=\"$cluster\"}" | |
} | |
], | |
"name": "zk sync connections", | |
"options": { | |
"tooltip": { | |
"mode": "all", | |
"sort": "desc" | |
}, | |
"legend": { | |
"displayMode": "hidden" | |
}, | |
"standardOptions": {}, | |
"thresholds": {} | |
}, | |
"custom": { | |
"drawStyle": "lines", | |
"lineInterpolation": "smooth", | |
"lineWidth": 1, | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"stack": "off" | |
}, | |
"version": "2.0.0", | |
"type": "timeseries", | |
"layout": { | |
"h": 4, | |
"w": 4, | |
"x": 20, | |
"y": 15, | |
"i": "6ffeea37-4d70-424a-9e9f-0e80a679e5af", | |
"isResizable": true | |
}, | |
"id": "8e260482-f9a4-4dd3-9e7a-259cdb4f0ec1" | |
} | |
], | |
"version": "2.0.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment