I am having an error while checking the alert manager status

81 views
Skip to first unread message

chinelo Ufondu

unread,
Aug 28, 2024, 1:28:15 PM8/28/24
to Prometheus Users
× alertmanager.service - AlertManager
     Loaded: loaded (/lib/systemd/system/alertmanager.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2024-08-28 15:43:10 UTC; 2s ago
    Process: 1691244 ExecStart=/usr/bin/alertmanager --config.file /etc/alertmanager/alertmanager.yml (code=exited, status=1/FAIL>
   Main PID: 1691244 (code=exited, status=1/FAILURE)
        CPU: 29ms

Aug 28 15:43:10 localhost systemd[1]: Started AlertManager.
Aug 28 15:43:10 localhost alertmanager[1691244]: ts=2024-08-28T15:43:10.392Z caller=main.go:181 level=info msg="Starting Alertman>
Aug 28 15:43:10 localhost alertmanager[1691244]: ts=2024-08-28T15:43:10.392Z caller=main.go:182 level=info build_context="(go=go1>
Aug 28 15:43:10 localhost alertmanager[1691244]: ts=2024-08-28T15:43:10.392Z caller=main.go:193 level=error msg="Unable to create>
Aug 28 15:43:10 localhost systemd[1]: alertmanager.service: Main process exited, code=exited, status=1/FAILURE
Aug 28 15:43:10 localhost systemd[1]: alertmanager.service: Failed with result 'exit-code'.
~
~

Brian Candler

unread,
Aug 28, 2024, 2:30:23 PM8/28/24
to Prometheus Users
The important error message has been truncated ("Unable to create..."). You can use left/right arrows to scroll sideways, but it would be better to use these commands:

systemctl status alertmanager -l --no-pager
journalctl -u alertmanager -n100 --no-pager

chinelo Ufondu

unread,
Aug 30, 2024, 5:19:04 AM8/30/24
to Prometheus Users
I just had to uninstall alert manager, its stressing me out
Please i need a good guide on installing alertmanager, i want to start afresh
The guide i have seen so far is just complicating

Brian Candler

unread,
Aug 30, 2024, 8:38:19 AM8/30/24
to Prometheus Users
You're not taking a very helpful approach to debugging. If you had shown the full error message, as I suggested, then your issue could probably have been fixed.

You didn't say what guide you're following. The official documentation is IMO clear and detailed:
As for installation, it's just a binary that you download and run, but the above documents don't tell you how to configure systemd to run it (ultimately it's assumed that you know how to administer a Linux system).

You can find some step-by-step instructions here, which may or may not help:

Ben Kochie

unread,
Aug 30, 2024, 9:15:01 AM8/30/24
to chinelo Ufondu, Prometheus Users

--
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/9031d7a9-6dc3-4649-a8f0-ee77e689e3ben%40googlegroups.com.

Chinelo Ufondu

unread,
Sep 1, 2024, 1:45:19 PM9/1/24
to Prometheus Users
I have been able to resolve the issue, the problem was my config file, it wasn't properly indented and it had some syntax errors

I tried running alertmanager again and i came across another issue, here is the error

ts=2024-09-01T17:35:52.421Z caller=main.go:181 level=info msg="Starting Alertmanager" version="(version=0.27.0, branch=HEAD, revision=0aa3c2aad14cff039931923ab16b26b7481783b5)"
ts=2024-09-01T17:35:52.421Z caller=main.go:182 level=info build_context="(go=go1.21.7, platform=linux/amd64, user=root@22cd11f671e9, date=20240228-11:51:20, tags=netgo)"
ts=2024-09-01T17:35:52.440Z caller=cluster.go:186 level=info component=cluster msg="setting advertise address explicitly" addr=192.168.101.2 port=9094
ts=2024-09-01T17:35:52.441Z caller=main.go:221 level=error msg="unable to initialize gossip mesh" err="create memberlist: Could not set up network transport: failed to obtain an address: Failed to start TCP listener on \"0.0.0.0\" port 9094: listen tcp 0.0.0.0:9094: bind: address already in use"

I have tried all i can to stop the processes that is currently running  on alert manager, but it didn't work out, i also tried adding an external command to run alertmanager --web.listen-address=localhost:9095 --config.file=alertmanager.yml, but it still isn't picking the new port number i would appreciate further assistance from you guys please, Thank you.


--
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.

Brian Candler

unread,
Sep 1, 2024, 3:56:13 PM9/1/24
to Prometheus Users
Show your config file?
Reply all
Reply to author
Forward
0 new messages