AliyunContainerService / kube-eventer

kube-eventer emit kubernetes events to sinks
Apache License 2.0
1.01k stars 278 forks source link

增加mysql收集字段信息 包含集群名称、事件来源 #199

Closed jinriyang closed 1 year ago

jinriyang commented 3 years ago

What type of PR is this? PR类型是什么? /kind typo

What this PR does / why we need it: 这个PR解决了什么问题: 增加mysql sink 字段 有集群名称,事件来源

Which issue(s) this PR fixes: PR相关联issue:

177

Does this PR introduce a breaking change?: PR带来的破坏性变更: None

Test/Final result: 测试/最终运行结果: image

ringtail commented 3 years ago

需要增加对应的文档到mysql.md,另外需要提供下如何从老版本的mysql版本升级你这个版本。

jinriyang commented 3 years ago

mysql-sink.md已经更新了 旧版本升级到新版本步骤: 1、mysql增加表字段: ALTER TABLE k8s_event ADD COLUMN cluster varchar(64) DEFAULT NULL COMMENT 'event cluster name' AFTER name; ALTER TABLE k8s_event ADD COLUMN source varchar(64) DEFAULT NULL COMMENT 'event source' AFTER kind; 2、修改启动配置参数为: --sink=mysql:?root:transwarp@tcp(172.16.180.132:3306)/kube_eventer?charset=utf8&tabel=k8s_event&cluster=k8s_cluster

zouxh commented 1 year ago

mysql-sink.md已经更新了 旧版本升级到新版本步骤: 1、mysql增加表字段: ALTER TABLE k8s_event ADD COLUMN cluster varchar(64) DEFAULT NULL COMMENT 'event cluster name' AFTER name; ALTER TABLE k8s_event ADD COLUMN source varchar(64) DEFAULT NULL COMMENT 'event source' AFTER kind; 2、修改启动配置参数为: --sink=mysql:?root:transwarp@tcp(172.16.180.132:3306)/kube_eventer?charset=utf8&tabel=k8s_event&cluster=k8s_cluster 请问镜像使用的哪个版本呢。我更新了,但还是不行,怀疑镜像版本不对,目前使用的 kube-eventer-amd64:v1.2.5-cc7ec54-aliyun