kafka-eagle是一个由国内团队开发的开源的可视化和管理软件。它可以同时监控多个集群、监控 Kafka 集群中 Topic 被消费的情况,并且包含 Kafka Manager 的相关功能等。可以说是既可以管理集群,又可以监控kafka的性能和消费情况,同时又支持sql查询。
具体介绍请参考:http://www.kafka-eagle.org/articles/docs/architecture/collect.html
sql文件:
CREATE TABLE IF NOT EXISTS `ke_alarm_crontab` (
`id` BIGINT ( 20 ) NOT NULL,
`type` VARCHAR ( 64 ) NOT NULL,
`crontab` VARCHAR ( 32 ) DEFAULT NULL,
`is_enable` VARCHAR ( 2 ) DEFAULT 'Y',
`created` VARCHAR ( 32 ) DEFAULT NULL,
`modify` VARCHAR ( 32 ) DEFAULT NULL,
PRIMARY KEY ( `id`, `type` )
) ENGINE = INNODB DEFAULT CHARSET = utf8mb4;
CREATE TABLE IF NOT EXISTS `ke_metrics` (
`cluster` VARCHAR ( 64 ) DEFAULT NULL,
`broker` text DEFAULT NULL,
`type` VARCHAR ( 32 ) DEFAULT NULL,
`key` VARCHAR ( 64 ) DEFAULT NULL,
`value` VARCHAR ( 128 ) DEFAULT NULL,
`timespan` BIGINT ( 20 ) DEFAULT NULL,
`tm` VARCHAR ( 16 ) DEFAULT NULL
) ENGINE = INNODB DEFAULT CHARSET = utf8mb4;
CREATE TABLE IF NOT EXISTS `ke_p_role` (
`id` BIGINT ( 20 ) NOT NULL AUTO_INCREMENT,
`name` VARCHAR ( 64 ) CHARACTER
SET utf8 NOT NULL COMMENT 'role name',
`seq` TINYINT ( 4 ) NOT NULL COMMENT 'rank',
`description` VARCHAR ( 128 ) CHARACTER
SET utf8 NOT NULL COMMENT 'role describe',
PRIMARY KEY ( `id` )
) ENGINE = INNODB AUTO_INCREMENT = 4 DEFAULT CHARSET = utf8mb4;
CREATE TABLE IF NOT EXISTS `ke_alarm_clusters` (
`id` BIGINT ( 20 ) NOT NULL AUTO_INCREMENT,
`type` VARCHAR ( 32 ) DEFAULT NULL,
`cluster` VARCHAR ( 64 ) DEFAULT NULL,
`server` text DEFAULT NULL,
`alarm_group` VARCHAR ( 128 ) DEFAULT NULL,
`alarm_times` INT ( 11 ),
`alarm_max_times` INT ( 11 ),
`alarm_level` VARCHAR ( 4 ),
`is_normal` VARCHAR ( 2 ) DEFAULT 'Y',
`is_enable` VARCHAR ( 2 ) DEFAULT 'Y',
`created` VARCHAR ( 32 ) DEFAULT NULL,
`modify` VARCHAR ( 32 ) DEFAULT NULL,
PRIMARY KEY ( `id` )
) ENGINE = INNODB DEFAULT CHARSET = utf8mb4;;
CREATE TABLE IF NOT EXISTS `ke_alarm_consumer` (
`id` BIGINT ( 20 ) NOT NULL AUTO_INCREMENT,
`cluster` VARCHAR ( 64 ) DEFAULT NULL,
`group` VARCHAR ( 128 ) DEFAULT NU