搜索结果正在快递途中

Metricbeat Kubernetes里有一部分图形不显示

Beats | 作者 sailershen | 发布于2019年09月18日 | 阅读数:3155

输出结果截图在附件,有一部分没有输出数据。
 /etc/metricbeat/metricbeat.yml的内容:
metricbeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
setup.template.settings:
index.number_of_shards: 1
index.codec: best_compression
setup.kibana:
host: "192.168.4.10:5601"
output.elasticsearch:
hosts: ["192.168.4.10:9200"]
protocol: "http"
processors:
- add_host_metadata: ~
- add_cloud_metadata: ~

/etc/metricbeat/modules.d/kubernetes.yml
- module: kubernetes
metricsets:
- node
- system
- pod
- container
- volume
period: 10s
hosts: ["127.0.0.1:10248"]

- module: kubernetes
metricsets:
- state_node
- state_deployment
- state_replicaset
- state_statefulset
- state_pod
- state_container
period: 10s
hosts: ["192.168.80.5:8080"]
add_metadata: true
enabled: true

- module: kubernetes
enabled: false
metricsets:
- event

metricbeat -e的输出里看到有两个错误消息:
2019-09-18T21:40:55.628+0800    ERROR   util/kubernetes.go:177  Error initializing Kubernetes metadata enricher: Unable to get in cluster configuration: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined
2019-09-18T21:40:55.628+0800 ERROR [reload] cfgfile/list.go:96 Error creating runner from config: 1 error: disabled module

 
 
 
1.png 2.png
已邀请:

要回复问题请先登录注册