I have installed Prometheus and Grafana on my Ubuntu. I have added node exporter to scrape metrics. In the Grafana, I added Prometheus as my data source. It got added successfully. However, when I import Node Exporter Dashboard, I do not get any data. What can be the issue? Here is my Prometheus Job configuration.
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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.