prometheus.service failed to start

693 views
Skip to first unread message

Surya Prakash K

unread,
Sep 17, 2020, 9:12:35 AM9/17/20
to Prometheus Users
Hi Team,

Can someone help me in this regard.

Capture.JPG

Thank you!
Surya

Surya Prakash K

unread,
Sep 17, 2020, 9:17:37 AM9/17/20
to Prometheus Users
Hi,

I have used  prometheus-2.21.0.linux-amd64.tar.gz  in my case, When i have installed it was successful. But now metrics not displaying in grafana. When i check check it back to prometheus service is failed.  restarted service multiple times. 

Any inputs please..
 
Thanks & Regards,
Surya Prakash K


--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/2bf2ba04-54aa-4277-bf7b-eb9ac8cfed60n%40googlegroups.com.

Surya Prakash K

unread,
Sep 17, 2020, 9:25:16 AM9/17/20
to Prometheus Users, b.ca...@pobox.com
Hi Brian, 

Please help me with this.. 

Surya Prakash K

unread,
Sep 17, 2020, 9:31:34 AM9/17/20
to Prometheus Users, b.ca...@pobox.com
[root@ctdemo3 ~]# journalctl --no-pager -eu prometheus
-- Logs begin at Thu 2020-09-17 03:50:15 EDT, end at Thu 2020-09-17 09:20:01 EDT. --
Sep 17 03:50:55 ctdemo3 systemd[1]: Started Prometheus.
Sep 17 03:51:13 ctdemo3 systemd[1]: prometheus.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 17 03:51:13 ctdemo3 systemd[1]: Unit prometheus.service entered failed state.
Sep 17 03:51:13 ctdemo3 systemd[1]: prometheus.service failed.
Sep 17 08:11:56 ctdemo3 systemd[1]: Started Prometheus.
Sep 17 08:11:56 ctdemo3 systemd[1]: prometheus.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 17 08:11:56 ctdemo3 systemd[1]: Unit prometheus.service entered failed state.
Sep 17 08:11:56 ctdemo3 systemd[1]: prometheus.service failed.
Sep 17 08:30:37 ctdemo3 systemd[1]: Started Prometheus.
Sep 17 08:30:37 ctdemo3 systemd[1]: prometheus.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 17 08:30:37 ctdemo3 systemd[1]: Unit prometheus.service entered failed state.
Sep 17 08:30:37 ctdemo3 systemd[1]: prometheus.service failed.
Sep 17 09:09:11 ctdemo3 systemd[1]: Started Prometheus.
Sep 17 09:09:11 ctdemo3 systemd[1]: prometheus.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 17 09:09:11 ctdemo3 systemd[1]: Unit prometheus.service entered failed state.
Sep 17 09:09:11 ctdemo3 systemd[1]: prometheus.service failed.

I am using 64 bit verion

Thanks & Regards,
Surya Prakash K

Surya Prakash K

unread,
Sep 17, 2020, 9:35:34 AM9/17/20
to Prometheus Users, b.ca...@pobox.com, wp...@pbox.com
Systemd file

[Unit]
Description=Prometheus
Wants=network-online.target
After=network-online.target

[Service]
User=prometheus
Group=prometheus
Type=simple
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

[Install]
WantedBy=multi-user.target

configuration file
global:
  scrape_interval: 10s

  scrape_configs:
   - job_name: 'prometheus'
     scrape_interval: 5s
     static_configs:
       - targets: ['192.168.40.128:9090','192.168.40.128:9100']



Thanks & Regards,
Surya Prakash K

Brian Candler

unread,
Sep 17, 2020, 10:28:23 AM9/17/20
to Prometheus Users
"scrape_configs:" needs to line up with the left-hand side (i.e. no spaces before it).

Apart from that: what happens if you run prometheus manually?

sudo -u prometheus /usr/local/bin/prometheus \
Reply all
Reply to author
Forward
0 new messages