度量标准process_start_time_seconds标签Prometheus中的期望量规

问题描述 投票:0回答:1

我有一个场景,我需要监视在不同位置运行的某些Windows计算机。限制条件:Those systems do not have static public IP

我已经在端口wmi_exporter上运行的Windows计算机上安装了9182。在Linux(AWS)服务器上,我已经安装了PrometheusPushgateway

我有一个在Windows机器上运行的注册作业,该作业基本上是将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
1个回答
0
投票

我猜您在先前将其作为度量标准之后,正在将某个度量标准作为计数器。您应该进入PushGateway并手动删除所有现有指标(或通过HTTP API请求执行此操作)。然后确保所有实例的配置都相同,并且一个实例没有将某些指标作为指标,而另一个实例则将完全相同的指标作为计数器。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.