【发布时间】:2019-10-01 08:46:04
【问题描述】:
我有一个场景,我需要监控一些在不同位置运行的 Windows 机器。
约束:
Those systems do not have static public IP
我已经在端口9182 上运行的Windows 机器上安装了wmi_exporter。在 Linux(AWS) 服务器上,我安装了 Prometheus 和 Pushgateway。
我有一个在 Windows 机器上运行的注册作业,它基本上 Invoke-WebRequest 到 http://localhost:9182/metrics 并获取内容,然后将它们发送到推送网关 URL http://pushgateway_server.com:9091/metrics/job/{job_name}/instance/{machine-name}
我可以在http://pushgateway_server.com:9091 看到接收到的数据,但是当我打开http://pushgateway_server.com:9091/metrics 时出现以下错误。
An error has occurred:
expected gauge in metric process_start_time_seconds label:<name:"instance" value:"" > label:<name:"job" value:"some_jop" > counter:<value:1.569916592e+09 >
我无法确定问题所在。是否可以在给定场景中监控机器?我是否使用了正确的工具?
我该如何解决给定的问题。
【问题讨论】:
标签: windows monitoring grafana prometheus