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.