Here is how to add the alarm function. If the monitoring without alarm function is not a good monitoring!
There are mainly monitoring types of pmm, in fact, it should be said that Grafana
email #The most commonly used, but the disadvantage is that it depends on the service provider's SMTP server, there is often a delay, and it is regarded as spam
Official configuration tutorial:
https://www.percona.com/blog/2017/01/23/mysql-and-mongodb-alerting-with-pmm-and-grafana/?utm_source=tuicool&utm_medium=referral
webhook # don't think about it, in fact, it's the same way as slack
slack #This article focuses on
pagerduty #not considered
victorops #not considered
opsgenie #not considered
The following link details the configuration of several alarm methods:
1190000008226841
First of all, you need to register an account on slack, the website is foreign, the connectivity is not very good, it is best to over the wall, and then configure slackbot is actually a robot :)
Official website: https://slack.com/
Log in to the management console and configure the alarm method. Use slack here
Choose slack here, url is the incoming-webhook generated, see the end for the generation method
Trigger the alarm action: Note: For how to configure the alarm threshold for each monitoring item, refer here: http://www.tuicool.com/articles/UBrMzmA
Alarm list information:
Slack webhook generation method:
Find ConfigureApps in the configuration of your team
Add webhooks configuration
Post a message to a specific channel here is @slackbot
Copy and paste this URL to the corresponding location in the pmm alert configuration:
This article is from the "Shadow Knight" blog, please be sure to keep this source http://andylhz2009.blog.51cto.com/728703/1905267
MySQL-MongoDB open source monitoring tool PMM adds slack alarm function