问题描述
我目前在Windows中使用metricbeat 7.9.0来监视其cpu使用情况。
windows.yml:
- module: windows
metricsets: [perfmon]
period: 20s
perfmon.ignore_non_existent_counters: true
perfmon.group_measurements_by_instance: true
perfmon.queries:
- object: 'Processor @R_828_4045@ion'
instance: ['_Total']
counters:
- name: '% Processor Utility'
在Windows中运行typeperf的结果:
C:\Program Files\Metricbeat>typeperf "\processor @R_828_4045@ion(_total)\% processor utility"
"(PDH-CSV 4.0)","\\B-RDP\processor @R_828_4045@ion(_total)\% processor utility"
"09/04/2020 10:00:44.970","12.599742"
"09/04/2020 10:00:45.970","12.262473"
"09/04/2020 10:00:46.970","13.776128"
"09/04/2020 10:00:47.986","15.459835"
"09/04/2020 10:00:49.001","16.701235"
"09/04/2020 10:00:50.017","16.010404"
"09/04/2020 10:00:51.033","15.780566"
"09/04/2020 10:00:52.033","15.211278"
"09/04/2020 10:00:53.048","12.962887"
"09/04/2020 10:00:54.048","11.272148"
"09/04/2020 10:00:55.050","13.951118"
"09/04/2020 10:00:56.052","15.423948"
"09/04/2020 10:00:57.058","17.593544"
"09/04/2020 10:00:58.074","14.035282"
在我的Elasticsearch集群中,metricbeat将无法不时发送该特定值。 当我以完全调试模式运行metribeat时报告的错误如下:
perfmon/data.go:55 Counter value retrieval returned {"error": "The data is not valid.","cstatus": "The returned data is not valid.","perfmon": {"query": "\\Processor @R_828_4045@ion(_Total)\\% Processor Utility"}}
我尝试将metricbeat与其他性能指标一起运行,它们似乎都可以正常工作。 (这只会引起麻烦)。
有人知道这里发生了什么吗?
感谢您提供解决此问题的任何帮助。
谢谢。
此致
宋林
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)