[英]How do I get metricbeat to report normalized CPU percentages to Kibana
我有以下metricbeat簡單配置:
#========================== Modules configuration ============================
metricbeat.modules:
#------------------------------- System Module -------------------------------
- module: system
metricsets: ["cpu"]
period: 10s
cpu.metrics: ["percentages", "normalized_percentages"]
#----------------------------- Logstash output --------------------------------
output.logstash:
# The Logstash hosts
hosts: ["<ip>:5000"]
有了這些信息,當我到達Kibana(或Grafana)並嘗試分析數據時,我只會看到正常的CPU字段,而不是標准化的字段,例如,
(...)
"system": {
"cpu": {
"softirq": {
"pct": 0
},
"user": {
"pct": 0.0243
},
"nice": {
"pct": 0
},
"irq": {
"pct": 0
},
"iowait": {
"pct": 0.0101
},
"idle": {
"pct": 1.9545
},
"steal": {
"pct": 0
},
"system": {
"pct": 0.0111
},
"cores": 2
}
},
(...)
我在Kibana的“添加過濾器”部分或“索引模式”部分中都沒有看到標准化的百分比選項,因此它一定不會以其他方式出現。
我正在針對6.4.2 ELK單節點集群(在Docker內部)運行metricbeat 5.6.12。
我的logstash配置如下所示:
input {
beats {
port => 5000
}
}
## Add your filters / logstash plugins configuration here
output {
elasticsearch {
hosts => "elasticsearch:9200"
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
我已經重新啟動metricbeat來加載配置,並確認問題仍然存在。
metricbeat 5.6.12對6.4.2 ELK
今天重讀此內容時,有些點擊! 這只是版本不匹配。 確保我正在運行metricbeat的6.x版本后,這些指標現在可以正確傳播。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.