Description
整体架构
- Elasticsearch
- 存储数据
- Kibana
- 数据可视化
- Fluentd
- Client收集数据
- Server接收Client的数据,并转发到Elasticsearch
- Metricbeat
- 收集性能指标数据
- 替代方案:Heapster
- Kube-state-metrics
- listens to the Kubernetes API server and generates metrics about the state of the objects
Elasticsearch
组成
- Master
- intended for clustering management only, no data, no HTTP API
- Client
- intended for document pre-processing during ingestion
- Data
- intended for client usage and data
Fluentd
配置文件
- Server
1 | # Takes the messages sent over TCP |
- Client
1 | containers.input.conf: |- |
Metricbeat
配置文件
注意:使用该配置文件,Kibana可以直接开启Kuberntes Dashboard(默认配置文件无法开启)
1 |
|
Refer to
https://github.com/pires/kubernetes-elasticsearch-cluster
https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/fluentd-elasticsearch