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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.3.0
    • Component/s: PMM ManageD
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      Platform Sprint 8, Platform Sprint 9
    • Needs Review:
      Yes
    • Needs QA:
      Yes
    • Needs Doc:
      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

            Assignee:
            Unassigned
            Reporter:
            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