Skip to content

Metricbeat MongoDB Connection Leak #5688

Closed
@andrewkroh

Description

Each of the MongoDB metricsets (status, dbstats) create a new session for each Fetch by do not close the session that they open. Each metricset should have a defer session.Close() (or similar).

mongoSession, err := mongodb.NewDirectSession(m.dialInfo)

mongoSession, err := mongodb.NewDirectSession(m.dialInfo)

For confirmed bugs, please report:

Metadata

Assignees

No one assigned

    Labels

    MetricbeatMetricbeatbuggood first issueIndicates a good issue for first-time contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions