scrape_intervaldefines how often Prometheus scrapes targets, while
evaluation_intervalcontrols how often the software will evaluate the rules.
rule_filesset the location of Alert manager rules we will add next.
alertingcontains the alert manager target.
scrape_configscontain the services Prometheus will monitor.
rules.ymlfile this will set the rules for Alert Manager:
expr:part. To create your own alerts, you’re going to have to learn and test the different variables provided to Prometheus by the services we are setting up. There is (almost) an infinite number of possibilities to personalize your alerts.
alertmanager.ymlinside the directory that you just extracted in the previous command, but that is not of our use. We will create our
/etc/alertmanagerwith the following config.
YOUR_EMAILto your email and paste the app password you just saved earlier to the