Skip to content

如何使用ilogtail收集k8s监控信息和事件信息? #314

Answered by messixukejia
simops-328 asked this question in Help
Discussion options

You must be logged in to vote

K8s事件

k8s事件是存在ETCD里,通过API Server暴露的,iLogtail没有提供直接的采集K8s事件的插件。SLS商业版是基于NPD+kube eventer来做的,直接往SLS写。详见:https://help.aliyun.com/document_detail/125679.htm?spm=a2c4g.11186623.0.0.56576d01sPF7Uu#section-rya-7i0-9e3

也可以使用https://github.com/opsgenie/kubernetes-event-exporter将事件转成stdout,在用ilogtail采集容器的标准输出完成。

ilogtail也会评估下对接apiserver直接采集的能力。

k8s监控信息

可以使用service_prometheus插件来进行采集Prometheus exporter 数据,可以参考下https://developer.aliyun.com/article/871634#slide-1

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by messixukejia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants