docker1.6.2 版本的api(1.18)接口不支持metricbeat的获取参数stream=false
只能获取container信息,没有cpu等信息,有人是否碰到过这样的问题
配置文件如下:
#========================== Modules configuration ============================
metricbeat.modules:
#------------------------------- System Module -------------------------------
- module: docker
metricsets: [ "container","cpu"]
hosts: ["unix:///var/run/docker.sock"]
enabled: true
period: 10s
#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["*.*.*.*:9200"]
只能获取container信息,没有cpu等信息,有人是否碰到过这样的问题
配置文件如下:
#========================== Modules configuration ============================
metricbeat.modules:
#------------------------------- System Module -------------------------------
- module: docker
metricsets: [ "container","cpu"]
hosts: ["unix:///var/run/docker.sock"]
enabled: true
period: 10s
#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["*.*.*.*:9200"]
1 个回复
mmhub
赞同来自: