【问题标题】:Why is process_resident_memory_bytes{job="prometheus"} showing no data points?为什么 process_resident_memory_bytes{job="prometheus"} 没有显示数据点?
【发布时间】:2021-04-15 11:06:37
【问题描述】:

我刚刚开始在本地使用 prometheus,当它运行时,我可以看到大多数指标,但看不到 process_resident_memory_bytes。

到目前为止,我所做的所有设置都是下载 prometheus 并像这样编辑我的 YAML:

global:
  scrape_interval: 10s
scrape_configs:
 - job_name: prometheus
   static_configs:
    - targets:
       - localhost:9090
 - job_name: node
   static_configs:
    - targets:
      - localhost:9100

当我搜索 process_resident_memory_bytes 指标时,我什么也看不到,并且执行它作为查询显示“未找到数据点”

谁能解释我是否缺少额外的设置步骤?

我正在使用 prometheus-2.26.0.darwin-amd64.tar.gz。

【问题讨论】:

  • 我看到您正在抓取端口 9100,所以我想您正在从节点导出器中抓取。对我来说,节点导出器有一些奇怪的错误。您能否提供更多信息,例如操作系统,内核版本。指标也是返回 0 还是根本不存在

标签: prometheus metrics promql prometheus-node-exporter


【解决方案1】:

正如您使用 prometheus-2.26.0.darwin-amd64.tar.gz tarball 所指出的那样,您似乎在 macOS 上运行。正如 Prometheus 开发人员在 this GitHub discussion 中指出的那样,这些 process_... 指标目前在 Darwin/macOS 平台上不可用。这将包括您提到的指标:process_resident_memory_bytes

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-02-20
    • 1970-01-01
    • 1970-01-01
    • 2021-08-15
    • 1970-01-01
    • 1970-01-01
    • 2014-09-12
    • 2021-03-19
    相关资源
    最近更新 更多