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

pmm-admin socket option (--socket) to specify UNIX socket path for connecting to MongoDB instances

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Labels:
      None
    • Story Points:
      2
    • Epic Link:
    • Sprint:
      Platform Sprint 16, Platform Sprint 17
    • Needs Review:
      Yes
    • Needs QA:
      Yes
    • Needs Packaging:
      No
    • Needs Doc:
      Yes

      Description

      As a PMM User I need to specify socket for mongodb to be used in pmm-admin add command so that PMM uses a socket instead of port

      Use case:

      pmm-admin add mongodb .... --socket=....

       

      DOC: flag present in the documentation 

      DOD: 

      Ability to connect to MongoDB servers via sockets with pmm-server API.
      mongodb_exporter and QAN MongoDB profiler agents should be able to connect to MongoDB using socket.
      new flag --socket in `pmm-admin add mongodb` command

      Suggested implementation:

      1. Add string parameter `socket` to pmm-managed `inventory/services/AddMongoDB` and `management/MongoDB/Add` endpoints requests.
      2. Add extra field to services table.
      3. Make address and port fields optional and check if only one of two fields(socket, address) exists in API and DB.
      4. if `socket` is not empty DSN should use "unix" as network

        Attachments

          Activity

            People

            Assignee:
            andrii.skomorokhov Andrii Skomorokhov
            Reporter:
            roma.novikov Roma Novikov
            Votes:
            0 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, 6 hours, 30 minutes
                3d 6h 30m

                  Smart Checklist