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

Remove redundant flags from "mongodb_exporter" if possible

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: On Hold
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0-rc3
    • Fix Version/s: None
    • Component/s: MongoDB_Exporter
    • Labels:
    • Story Points:
      0

      Description

      Brief

      If those flags can be set up in ConnectionString remove them from code:

      • --mongodb.authentification-database="" (Specifies the database in which the user is created)
      • --mongodb.max-connections=1 (Max number of pooled connections to the database)
      • --mongodb.socket-timeout=3s (Amount of time to wait for a non-responding socket to the database before it is forcefully closed)
      • --mongodb.sync-timeout=1m (Amount of time operation with this session will wait before returning an error in case)

      Parameters related to those flags:

      • PoolLimit
      • SocketTimeout
      • SyncTimeout
      • AuthentificationDB

      https://github.com/percona/mongodb_exporter/pull/160#discussion_r325495115

      Research

      • PoolLimit ->¬†maxPoolSize
      • SocketTimeout ->¬†socketTimeoutMS
      • SyncTimeout -> connectTimeoutMS
      • AuthentificationDB ->¬†authSource

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned
                Reporter:
                anton.kucherov Anton Kucherov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 5 hours, 30 minutes
                    5h 30m