【发布时间】:2021-04-17 07:52:42
【问题描述】:
我想在 Google Compute Engine 上使用虚拟机实例 (Debian) 的 Prometheus 监控系统和应用程序指标。其中包括 CPU 频率,Prometheus 从/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq 中抓取的。然而这并不存在。
我还检查了watch -n 0.1 "cat /proc/cpuinfo | grep -i mhz",这是不变的。此外,我可以使用 GCP 的 Monitoring 选项卡查看结果,但我需要比 1 分钟更细的间隔。
有谁知道我如何将 CPU 频率暴露给 Prometheus?
干杯, 马蒂亚斯
【问题讨论】:
标签: linux google-compute-engine prometheus