No data for Prometheus Node Exporter

Hi there,

I am having a problem getting data from Prometheus WMI node exporter.
In Prometheus I have e.g. wmi_logical_disk_read_bytes_total which is showing correct values in Prometheus itself.

In prometheus config I have set it as so:

  • job_name: ‘node’
    scrape_interval: 5s
    static_configs:
    • targets: [‘192.168.0.2:9182’]
      labels:
      group: ‘servers’

In Grafana the Prometheus 2.0 Stats is working fine, but both Node Exporter Full and Node Exporter Server Metrics show no data points.

In Chrome’s network tab I can see lots of queries with 200 responses e.g. http://grafana.staged-by-discourse.com/api/datasources/proxy/1/api/v1/query_range?query=sum(irate(node_cpu_seconds_total{mode%3D"softirq"%2Cinstance%3D~’’}[5m]))%20or%20sum(irate(node_cpu%7Bmode%3D%22softirq%22%2Cinstance%3D~%27%27%7D%5B5m%5D))&start=1566994800&end=1567599600&step=2400

But the response is empty:
{“status”:“success”,“data”:{“resultType”:“matrix”,“result”:[]}}

I am unsure how else to proceed and hope someone can advise me?

Many thanks

Edit: I just noticed in Node Exporter Full the options at the top for job, host and port are all empty.

1 Like

You need to restart prometheus systemctl service.
sudo systemctl restart prometheus.service