使用Prometheus的NTP指标

发布于 2025-01-27 04:11:23 字数 523 浏览 7 评论 0原文

我试图在Prometheus中获得NTP指标。我在CMD中以docker容器为docker容器,并启用-collector.ntp,但我仍然看不到任何指标。在检查节点出来的Docker容器日志时,我看到的:

caller=collector.go:169 level=error msg="collector failed" name=ntp duration_seconds=0.000119723 err="couldn't get SNTP reply: read udp 127.0.0.1:33806->127.0.0.1:123: read: connection refused"

我可以在Local主机上看到的NTP指标:9100/指标是

node_scrape_collector_duration_seconds{collector="ntp"} 0.000153012
node_scrape_collector_success{collector="ntp"} 0

任何建议

I am trying to get NTP metrics in prometheus. I have node-exporter running as docker container and enabled --collector.ntp in CMD, but still I don't see any metrics. Upon checking node-exported docker container logs I see:

caller=collector.go:169 level=error msg="collector failed" name=ntp duration_seconds=0.000119723 err="couldn't get SNTP reply: read udp 127.0.0.1:33806->127.0.0.1:123: read: connection refused"

All I can see ntp metrics in my localhost:9100/metrics is

node_scrape_collector_duration_seconds{collector="ntp"} 0.000153012
node_scrape_collector_success{collector="ntp"} 0

Any suggestions please

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文