Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-5064

AlertManager Support - API endpoint to configure Integration with external AlertManager

Details

    • Improvement
    • Status: Done
    • Medium
    • Resolution: Done
    • None
    • 2.3.0
    • PMM ManageD
    • None
    • 5
    • Platform Sprint 8, Platform Sprint 9
    • Yes
    • Yes
    • No

    Description

      DoD

      • GetSettings and ChangeSettings APIs work with AlertManager configuration.

      Implementation

      • Add AlertManager address (a single string) to Settings.
      • Expand ChangeSettings API to set (string) or remove (boolean flag) AlertManager address, and to set (a string with content) or remove (boolean flag) rules file.
      • Expand GetSettings API to return those values.
      • Put this file into a temporary location and check it with promtool. If it's ok, put a file on the filesystem in a fixed location /srv/prometheus/rules/pmm.rules.yml (that path is already added to prometheus.yml generator) and reload Prometheus.
      • Try to chmod this file. If it fails, log error and continue.
      • Do not store rules in the database.

      Discussion

      • We don't have "upload file" fields.

      Attachments

        Activity

          People

            Unassigned Unassigned
            roma.novikov Roma Novikov
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 3 days, 1 hour, 33 minutes
                3d 1h 33m

                Smart Checklist