Answer the question
In order to leave comments, you need to log in
Why does prometheus return nothing when requesting metrics from node_exporter?
Hello.
Set node_exporter, port 9000
metrics on http available
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
- job_name: node_exporter_metrics
metrics_path: /metrics
static_configs:
- targets: ['server01:9100']
{"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"}
http://server01:9090/api/v1/query_range?query=node_exporter_metrics&start=1513255115&end=1513258715&step=60
{"status":"success","data":{"resultType":"matrix","result":[]}}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question