Skip to content

Connection leak #1305

Description

On long working instances of mongodb replica set cluster, after day of work increased amount of connection to mongodb from exporter. This amount of connections always increased.

To Reproduce

  1. Run mongodb replica set cluster
  2. Run mongodb-exporter with params: --collect-all --discovering-mode --compatible-mode --mongodb.direct-connect
  3. Wait long time (2 - 7 days).

Expected behavior
near 30 opened connections

mongodb-exporter --version
mongodb_exporter - MongoDB Prometheus exporter
Version: v0.47.1
Commit: 55813e2
Build date: 2025-09-05T07:48:29Z

My instance of exporter launched since 2025-11-12.
It has:
ss -tnp dst :27017 | grep exporte | wc -l
23384

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions