-
Type:
New Feature
-
Status: Done
-
Priority:
Medium
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.7.0
-
Component/s: PMM Admin, PMM Agent, PMM ManageD
-
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
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:
- Add string parameter `socket` to pmm-managed `inventory/services/AddMongoDB` and `management/MongoDB/Add` endpoints requests.
- Add extra field to services table.
- Make address and port fields optional and check if only one of two fields(socket, address) exists in API and DB.
- if `socket` is not empty DSN should use "unix" as network