Not the answer you need?
Register and ask your own question!
Many Forum changes were implemented on Tue 22 Sep. Read about new Ranks, Scoring, and Reactions.
Email [email protected] for any comments or concerns.

How to set new custom Alert and Generate Notification

AtanuAtanu Current User Role Contributor
Hi Expert,
I am very new to Percona, I have configured Percona for MongoDB and getting metrics. Now I want set some custom alerts on MongoDB metrics as per my project requirements and after that want to add SMTP server details for sending email notification; Similar kind of configuration I have done in standalone Prometheus but I am little confuse how configure alert.rules.yml and alertmanager.yml files for Prometheus inside Percona. Here Prometheus is running inside Docker image and I can not update these files directly.
Can you please tell me is it possible ? if possible can you please guide me or provide me documentation link so that I can go through it.
Thank you!!
Atanu
  
Tagged:

Best Answers

  • adivinhoadivinho Percona Percona Staff Role
    Accepted Answer
  • AtanuAtanu Current User Role Contributor
    Accepted Answer
    Thank you adivinho,
    I hope I get it correctly :
    1. Metrics will be received into Percona  (Prometheus reside inside Percona)
    2. We need to have an external Alertmanager (separate Prometheus outside Percona)
    3. Need to set an alert rule in Percona web UI with the external Alertmanager URL
    4. SMTP details need to configured in external Alertmanager 
  • adivinhoadivinho Percona Percona Staff Role
    Accepted Answer
    Yes. It's correct.

Answers

  • AtanuAtanu Current User Role Contributor
    Hi Expert,
    I am very new to Percona, I have configured Percona for MongoDB and getting metrics. Now I want set some custom alerts on MongoDB metrics as per my project requirements and after that want to add SMTP server details for sending email notification; Similar kind of configuration I have done in standalone Prometheus but I am little confuse how configure alert.rules.yml and alertmanager.yml files for Prometheus inside Percona. Here Prometheus is running inside Docker image and I can not update these files directly.
    Can you please tell me is it possible ? if possible can you please guide me or provide me documentation link so that I can go through it.
    Thank you!!
    Atanu
  • AtanuAtanu Current User Role Contributor
    Thank you adivinho, I have gone through the URL, in that link it is mentioned that we need to configure external Alertmanager.
    Here I have three confusions -
    1. I have separately install Prometheus and Alertmanager, so can I use that as an external Alertmanager ?
    2. How will I determine URL of external Alertmanager ?
    3. I think using this interface we can only set "alert.rules.yml" file in external Alert manager buy how will I set "Alertmanager.yml" file ?
    Thanks,
    Atanu
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.