【问题标题】:expected gauge in metric process_start_time_seconds label Prometheus指标 process_start_time_seconds 标签 Prometheus 中的预期仪表
【发布时间】:2019-10-01 08:46:04
【问题描述】:

我有一个场景,我需要监控一些在不同位置运行的 Windows 机器。 约束: Those systems do not have static public IP

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

我有一个在 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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2021-03-25
      • 1970-01-01
      • 2023-01-25
      • 2022-01-02
      • 2020-11-09
      • 1970-01-01
      • 2021-08-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多