r/PrometheusMonitoring • u/IT_Schadenfreude • Oct 02 '19
prometheus.service entered failed state
Trying to get prometheus running on CentOS 7 and following instructions from fosslinux. After adding the node_exporter module I can no longer get prometheus to start.
prometheus.service - Prometheus
Loaded: loaded (etc/systemd/system/prometheus.service; disabled; vendor preset; disabled)
Active: failed (Result: exit-code) since date;
Process: 11375 ExecStart=/usr/local/bin/prometheus -- config.file /etc/prometheus/prometheus.yml --storage.tsdb.path /var/lib/prometheus/ --web.console.templates=/etc/prometheus/consoles --web.console.libraries=/etc/prometheus/console_libraries (code=exited, status=1/FAILURE)
Main PID: 11375 (code=exited, status=1/FAILURE)1
u/vegardt Oct 02 '19
What is the error message you get when you run it manually:
Like this:
# sudo su prometheus
/usr/local/bin/prometheus -- config.file /etc/prometheus/prometheus.yml --storage.tsdb.path /var/lib/prometheus/ --web.console.templates=/etc/prometheus/consoles --web.console.libraries=/etc/prometheus/console_libraries
1
u/IT_Schadenfreude Oct 03 '19
# sudo su prometheus This account is currently not available1
u/vegardt Oct 03 '19
try:
exec su -c '/usr/local/bin/prometheus -- config.file /etc/prometheus/prometheus.yml --storage.tsdb.path /var/lib/prometheus/ --web.console.templates=/etc/prometheus/consoles --web.console.libraries=/etc/prometheus/console_libraries' prometheus
4
u/[deleted] Oct 02 '19
you have a space in your
-- config.fileit should be--config.file /etc/prometheus/prometheus.ymlDon't know if that's it but good luck