Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
    titleExample Rules file
    collapsetrue
    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.

...