Prometheus doesn't show targets

709 views
Skip to first unread message

Zarah Diarras

unread,
Jun 17, 2019, 3:09:50 AM6/17/19
to Prometheus Users
Hello

I am new to Prometheus and Grafana.
i ve installed both, prometheus is runing, Node-Exporter is also runing(see pictures) but prometheus is not showing the targets on the UI.
can anyone help me?


node Exporter.png
Prom-Status.png

Christian Hoffmann

unread,
Jun 17, 2019, 3:18:25 AM6/17/19
to Zarah Diarras, Prometheus Users
Hi Zarah,
I think we would need some more details in order to help. :)
Can you share your Prometheus config?

Kind regards,
Christian

Zarah Diarras

unread,
Jun 17, 2019, 4:32:27 AM6/17/19
to Prometheus Users
Hi Christian, here are the screenshots of the prometheus.service and  prometheus.yml files.

Best regards
Zarah
ymlFile.png
prom.service.png

Christian Hoffmann

unread,
Jun 17, 2019, 4:39:54 AM6/17/19
to Zarah Diarras, Prometheus Users
Hi Zarah,

On 2019-06-17 10:32, Zarah Diarras wrote:
> Hi Christian, here are the screenshots of the prometheus.service and 
> prometheus.yml files.

There seem to be some yaml indentation problems. yaml is very sensitive
to whitespace (e.g. your two scrape_configs entries are indented
differently; the global scrape_interval does not look correct either).

Compare your config with one of the example configs [1] again, try
restarting Prometheus and watch out for configuration errors/warnings.
If nothing shows up, check the parsed configuration by accessing
http://localhost:9090/config

Kind regards,
Christian

[1]
https://github.com/prometheus/prometheus/blob/master/documentation/examples/prometheus.yml
Reply all
Reply to author
Forward
0 new messages