Why when you query metrics from node_exporter in prometheus returns nothing?

Hello.

Put node_exporter, port 9000
metrics available on http
server01:9100/metrics

...
node_filesystem_device_error{device="/dev/sda1",fstype="ext4",mountpoint="/boot"} 0
node_filesystem_device_error{device="/dev/sdb1",fstype="xfs",mountpoint="/data"} 0


prescribed in

- job_name: node_exporter_metrics
 metrics_path: /metrics
static_configs:
 - targets: ['server01:9100']


restarted prometheus

API query finds
server01:9090/api/v1/targets
new target

{"discoveredLabels":{"__address__":"server01:9100","__metrics_path__":"/metrics","__scheme__":"http","job":"node_exporter_metrics"},"labels":{"instance":"server01:9100","job":"node_exporter_metrics"},"scrapeUrl":"http://server01:9100/metrics","lastError":"","lastScrape":"2017-12-14T17:32:02.835779115+03:00","health":"up"}


trying to find raw data

http://server01:9090/api/v1/query_range?query=node_exporter_metrics&start=1513255115&end=1513258715&step=60


and the answer is nothing

{"status":"success","data":{"resultType":"matrix","result":[]}}


Why is there no data for the new Job?
June 10th 19 at 15:13
0 answer

Find more questions by tags Monitoring