Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No webhook sent from pinpoint docker #228

Open
moondal opened this issue Nov 26, 2024 · 7 comments
Open

No webhook sent from pinpoint docker #228

moondal opened this issue Nov 26, 2024 · 7 comments

Comments

@moondal
Copy link

moondal commented Nov 26, 2024

Hello, I would like to ship the slack webhook in the Pinpoint docker environment.
I succeeded in sending an e-mail, but there was no response when I configured it in slack.
Configured the following settings

webhook enable
#157

pinpoint-batch docker
image

image

pinpoint-web docker
image
image

pinpoint webpage
webhook setting
image
image

email receive
image

If you look at the log, only the email has a shipping history. Is there anything I need to add or modify?

@minwoo-jung
Copy link
Member

Hi @moondal
If you've done everything right, your webhook logic should be fine.
I recommend checking that the server receiving the webhook message is receiving the message normally.

@moondal
Copy link
Author

moondal commented Dec 2, 2024

Is there anything else I need to set or change besides the configuration I set? There is no guide to distributing docker

@minwoo-jung
Copy link
Member

minwoo-jung commented Dec 12, 2024

You're not doing anything wrong or missing anything.
If you used the default properties, the webhook sender should be automatically enabled in the batch.

#1
What version of pinpoint are you using?

#2
Please enter the batch server and share the java option of process with ps command

#3
You saved the alarm type as a webhook, but did the email get sent? If not, please let me know what you specified.
image

#4
If you have access to the mysql server and can check it, please also check the webhook column data in the alarm_rule table in mysql and share it with us.

@moondal
Copy link
Author

moondal commented Dec 18, 2024

#1
What version of pinpoint are you using?
-> 2.5.3

#2
Please enter the batch server and share the java option of process with ps command
-> The ap or yum is not installed in the pinpoint batch docker, so ps cannot be verified.
However, the test has been completed from batch container to email.

#3
You saved the alarm type as a webhook, but did the email get sent? If not, please let me know what you specified.
image
->
I specified the alarm type as email.
image

#4
If you have access to the mysql server and can check it, please also check the webhook column data in the alarm_rule table in mysql and share it with us.
->
image

I'm sorry for the delay in my response.
Please let me know if you need any additional information

@minwoo-jung
Copy link
Member

#3
If you set email to alarm type, only email will be sent when an alarm occurs.
If you want to send as a webhook, set it to webhook, not email.

#4
I don't mean show me the schema, I mean show me the raw data that corresponds to the applicationName you set with a direct select statement.
ex) select * from alarm_rule where application_id = "YOUR_APPLICATION_NAME";

@moondal
Copy link
Author

moondal commented Dec 19, 2024

I designated alarm select as webhook, but there was no response, so I sent it by email to find out if it was a batch container problem
image

image

In addition, I will also forward the slack-reciver setting.

image image

Thank you.

@minwoo-jung
Copy link
Member

minwoo-jung commented Dec 26, 2024

@moondal
I would like to ask you to try one thing.
I think the alarm may not be sent for the following reasons.

If an email/sms/webhook is sent everytime when the threshold is exceeded, even after the recipients are aware of the event they might get the same alarms continuously which we thought might be unneccessary. Therefore we decided to gradually increase the transmission frequency for alarms.
ex) If an alarm occurs continuously, transmission frequency is increased by a factor of two. 3 min -> 6min -> 12min -> 24min

step 1 : Please delete the alarm registered with webhook and try to register again.
step 2 : Clear the alarm history table data in mysql.
step 3 : Check the batch operation log one more time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants