Issues with Webhook Alert Channel Test Messages

TLDR zane.chen is not receiving a test alert message when trying to use a webhook alert channel. Amol suggests checking alert manager logs for errors, but issue remains unresolved.

Photo of zane.chen
zane.chen
Mon, 06 Mar 2023 10:07:49 UTC

hi team, please give me a favor, i have not received the test alert message when i add one kind of "Webhook" alert channel then click the test button

Photo of Ankit
Ankit
Mon, 06 Mar 2023 10:12:35 UTC

Amol will alertmanager logs help?

Photo of Amol
Amol
Mon, 06 Mar 2023 15:28:06 UTC

yea Ankit zane.chen you can look at alert manager log to find out the cause of failure.

Photo of zane.chen
zane.chen
Tue, 07 Mar 2023 01:19:57 UTC

where is the alert manager logļ¼Ÿ

Photo of Amol
Amol
Tue, 07 Mar 2023 05:41:28 UTC

If you are using docker-compose .. then docker ps will show you a container for alert manager. You can do docker logs -f <container_id> to get log. for kubernetes, a similar approach. you can get pods in namespace platform. And get logs for the pod

Photo of zane.chen
zane.chen
Tue, 07 Mar 2023 06:02:27 UTC

Photo of zane.chen
zane.chen
Tue, 07 Mar 2023 06:04:03 UTC

show this error, what's it mean?

Photo of Amol
Amol
Tue, 07 Mar 2023 07:11:25 UTC

yeh. It looks like the alert manager is unable to reach the domain. Possibly doesn't have internet access.

Photo of zane.chen
zane.chen
Tue, 07 Mar 2023 08:06:51 UTC

yes, but i tried ping network, it can ping successfully

Photo of zane.chen
zane.chen
Tue, 07 Mar 2023 08:06:55 UTC

Photo of zane.chen
zane.chen
Tue, 07 Mar 2023 08:07:23 UTC

Photo of zane.chen
zane.chen
Tue, 07 Mar 2023 08:09:38 UTC

just now, i tried test again, and it shows success as below

Photo of zane.chen
zane.chen
Tue, 07 Mar 2023 08:09:43 UTC

Photo of zane.chen
zane.chen
Tue, 07 Mar 2023 08:10:44 UTC

but i have not received the test alerm on my "feishu" webhook, and no find any log in alert-manager docker container logs

Photo of zane.chen
zane.chen
Wed, 08 Mar 2023 01:52:08 UTC

excuse me? can you give me a favor?

Photo of zane.chen
zane.chen
Thu, 09 Mar 2023 01:09:07 UTC

are you here?

Photo of Amol
Amol
Fri, 10 Mar 2023 05:53:51 UTC

can you try sending test notification again and share alert manager log.