【发布时间】: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