Where do I look for Prometheus logs? Or how do I configure them?

22,641 views
Skip to first unread message

gherman...@gmail.com

unread,
Dec 5, 2017, 10:23:30 AM12/5/17
to Prometheus Users
I installed Prometheus and a bunch of exporters on a Debian machine. I downloaded binaries, put them at /opt folder and wrote systemd service files to run them. In service files I filled StandardOutput and ErrorOutput options with paths to files in /var/log for Prometheus itself and each exporter. Everything seems working in general except some of the exporters behaving strangely. I can't troubleshoot them because I don't know where the logs are. Respective files in /var/log are not created. No such files in respective /opt folders either. And none of the binaries have flags for log path configuration.

gherman...@gmail.com

unread,
Dec 7, 2017, 3:32:23 AM12/7/17
to Prometheus Users
No clue? At least tell me where the logs normally are. Does Prometheus just send logging to std:out? Or does it have a special log path for it?

Martin Schröder

unread,
Dec 7, 2017, 4:39:48 AM12/7/17
to Prometheus Users
2017-12-07 9:32 GMT+01:00 <gherman...@gmail.com>:
> No clue? At least tell me where the logs normally are. Does Prometheus just
> send logging to std:out? Or does it have a special log path for it?

At least 1.x just logs to syslog.

Best
Martin

Meier

unread,
Dec 8, 2017, 8:09:09 AM12/8/17
to Prometheus Users
Did you check the systemd journal?

sudo journalctl -u prometheus

Reply all
Reply to author
Forward
0 new messages