elastic / elastic/beats

metricbeat/module/metricbeat: Implement connection reuse with a single long-lived MongoDB client

Open
#44,564 1 comment 0 reactions 0 assignees View on GitHub
enhancement Stalled Team:Obs-InfraObs
Dominant language
Go
Stars
12.7k
Forks
5k
Avg merge
2d 2h
Merged PRs (30d)
364

Description

**Describe the enhancement:** Implement connection reuse with a single long-lived MongoDB client to minimize connection pile-up at lower intervals, eliminating the overhead of constant connection creation and destruction. While the current implementation works adequately for intervals of 30-60+ seconds, this approach will provide significantly better performance and reliability across all interval configurations.

**Describe a specific use case for the enhancement or feature:** It applies to all use-cases.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.