alertmanager listens on two ports. By default: --web.listen-address=:9093 --cluster.listen-address=0.0.0.0:9094
On Tuesday 10 September 2024 at 15:25:31 UTC+1 Chinelo Ufondu wrote: > Hello > i have tried again by running this command like you suggested and > specifying a port that the clusters should listen on *alertmanager > --config.file=alertmanager.yml --cluster.listen-address=0.0.0.0:8081 > <http://0.0.0.0:8081>*, and i got a different error saying port 9093 is > already in use, and port 9093 is the default port alertmanager is currently > listening on > > ts=2024-09-10T13:10:36.310Z caller=main.go:181 level=info msg="Starting > Alertmanager" version="(version=0.27.0, branch=HEAD, revision= > 0aa3c2aad14cff039931923ab16b26b7481783b5)" > ts=2024-09-10T13:10:36.310Z 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-10T13:10:36.325Z caller=cluster.go:186 level=info > component=cluster msg="setting advertise address explicitly" > addr=192.168.101.2 port=8081 > ts=2024-09-10T13:10:36.326Z caller=cluster.go:683 level=info > component=cluster msg="Waiting for gossip to settle..." interval=2s > ts=2024-09-10T13:10:36.359Z caller=coordinator.go:113 level=info > component=configuration msg="Loading configuration file" > file=alertmanager.yml > ts=2024-09-10T13:10:36.359Z caller=coordinator.go:126 level=info > component=configuration msg="Completed loading of configuration file" > file=alertmanager.yml > ts=2024-09-10T13:10:36.360Z caller=main.go:394 level=info > component=configuration msg="skipping creation of receiver not referenced > by any route" receiver=send_email2 > ts=2024-09-10T13:10:36.363Z caller=main.go:517 level=error msg="Listen > error" err="listen tcp :9093: bind: address already in use" > ts=2024-09-10T13:10:36.365Z caller=cluster.go:692 level=info > component=cluster msg="gossip not settled but continuing anyway" polls=0 > elapsed=39.047022ms > > > On Sun, 8 Sep 2024 at 16:11, Chinelo Ufondu <[email protected]> wrote: > >> I tried running alertmanager again and i came across this 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/b8ff032c-990d-4870-9bec-2d3abecf843fn%40googlegroups.com.

