[英]Unable to see nodes' data on Grafana dashboard
I have installed Prometheus and Grafana on my Ubuntu. I have added node exporter to scrape metrics.我在我的 Ubuntu 上安装了 Prometheus 和 Grafana。我添加了节点导出器来抓取指标。 In the Grafana, I added Prometheus as my data source.在 Grafana 中,我添加了 Prometheus 作为我的数据源。 It got added successfully.它已成功添加。 However, when I import Node Exporter Dashboard, I do not get any data.但是,当我导入 Node Exporter Dashboard 时,我没有获得任何数据。 What can be the issue?可能是什么问题? Here is my Prometheus Job configuration.这是我的 Prometheus Job 配置。
global:
scrape_interval: 10s
scrape_configs:
- job_name: 'prometheus_metrics'
scrape_interval: 5s
static_configs:
- targets: ['localhost:9090']
- job_name: 'node_exporter_metrics'
scrape_interval: 5s
static_configs:
- targets: ['localhost:9100', '192.168.10.42:9100']
Here is the grafana log output.这是grafana日志output。
level=error msg="Internal server error" error="[plugin.downstreamError] failed to query data: received empty response from prometheus"
Prometheus are change names of labels of Node Exporter metrics. Prometheus 是 Node Exporter 指标标签的更改名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.