...
You can configure the alerts in alertmanager.yml file that comes with Alert with Alert Manager distribution and can be edited to add required configuration.
...
Create a new YAML file, say rules.yaml, containing the alerting rules based on your requirement.
Alerting rule example: The following code snippet contains a rule that checks if the configured instance is up or down.Code Block title Example Rules file collapse true groups: - name: example rules: - alert: Instance Down expr: up == 0 for: 1m
- Place path Place path of rules yaml file in prometheus.yml as shown in the following screenshot.
...