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

Simplify inventory model to make relationships between Nodes/Services/Agents easier to understand

    Details

    • Type: Admin & Maintenance Task
    • Status: Done
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: PMM ManageD
    • Labels:
      None

      Description

      Replace many-to-many relations between Nodes↔︎Agents and Services↔︎Agents to one-to-many. Change database structure, simplify code.
      Update Confluence documentation.

      Why we do it and how it will affect the other parts of code?

      To make it easier to understand for users and us we decided to not use many-to-many relations.
      Because we don't have cases where we need it.
      For rds_exporter we are going to store each `credentials - instance` pairs as separate rds_exporter record in database. 
      But we will run only one instance of rds_exporter per pmm-agent with combined config file.
      Config files will be generated based on all rds_exporters related to current pmm-agent.

      Generating config file and everything related to rds_exporter is out of scope of this task.

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alexey.palazhchenko Alexey Palazhchenko
              • Votes:
                1 Vote for this issue
                Watchers:
                3 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 - 2 hours, 27 minutes
                  2h 27m