Prometheus installation

41 views
Skip to first unread message

deepak rohilla

unread,
Sep 30, 2022, 3:30:03 AM9/30/22
to promethe...@googlegroups.com
Hi All,
I tried to install prometheus on my linux machine. I followed one page.
but it shows failure when i run "systemctl status prometheus"
error are as follows:
● prometheus.service - Prometheus
     Loaded: loaded (/etc/systemd/system/prometheus.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2022-09-26 16:26:29 UTC; 1min 58s ago
    Process: 2748737 ExecStart=/usr/local/bin/prometheus --config.file /etc/prometheus/prometheus.yml --storage.tsdb.path >
   Main PID: 2748737 (code=exited, status=1/FAILURE)

Sep 26 16:26:29 ubuntu2004 prometheus[2748737]: level=info ts=2022-09-26T16:26:29.392Z caller=head.go:642 component=tsdb m>
Sep 26 16:26:29 ubuntu2004 prometheus[2748737]: level=info ts=2022-09-26T16:26:29.392Z caller=head.go:656 component=tsdb m>
Sep 26 16:26:29 ubuntu2004 prometheus[2748737]: level=info ts=2022-09-26T16:26:29.392Z caller=head.go:662 component=tsdb m>
Sep 26 16:26:29 ubuntu2004 prometheus[2748737]: level=info ts=2022-09-26T16:26:29.393Z caller=head.go:714 component=tsdb m>
Sep 26 16:26:29 ubuntu2004 prometheus[2748737]: level=info ts=2022-09-26T16:26:29.393Z caller=head.go:719 component=tsdb m>
Sep 26 16:26:29 ubuntu2004 prometheus[2748737]: level=info ts=2022-09-26T16:26:29.395Z caller=main.go:732 fs_type=EXT4_SUP>
Sep 26 16:26:29 ubuntu2004 prometheus[2748737]: level=info ts=2022-09-26T16:26:29.395Z caller=main.go:735 msg="TSDB starte>
Sep 26 16:26:29 ubuntu2004 prometheus[2748737]: level=error ts=2022-09-26T16:26:29.395Z caller=main.go:798 err="error star>
Sep 26 16:26:29 ubuntu2004 systemd[1]: prometheus.service: Main process exited, code=exited, status=1/FAILURE
Sep 26 16:26:29 ubuntu2004 systemd[1]: prometheus.service: Failed with result 'exit-code'.
Deepak Rohilla
Computer Engineering Department 
NIT Kurukshetra

Julius Volz

unread,
Sep 30, 2022, 5:44:41 AM9/30/22
to deepak rohilla, promethe...@googlegroups.com
Hi Deepak,

On Fri, Sep 30, 2022 at 9:30 AM deepak rohilla <acerohi...@gmail.com> wrote:
Sep 26 16:26:29 ubuntu2004 prometheus[2748737]: level=error ts=2022-09-26T16:26:29.395Z caller=main.go:798 err="error star>

These log lines are cut off at the end (probably just copied off the terminal screen when it didn't display the full lines), could you provide the full lines? This particular line should contain a specific error message why the Prometheus server didn't start up.

You should be able to get the full lines by running:

  systemctl --no-pager --full status prometheus

Regards,
Julius


--
Julius Volz
PromLabs - promlabs.com
Reply all
Reply to author
Forward
0 new messages