open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.08k stars 2.38k forks source link

[receiver/mongodb] Add missing replication lag metrics #36375

Open RutvikS-crest opened 9 hours ago

RutvikS-crest commented 9 hours ago

Component(s)

receiver/mongodb

Is your feature request related to a problem? Please describe.

Currently mongodb receiver doesn't have any metric that can be used to get the replication lag stats among replica sets.

Describe the solution you'd like

Utilise flowcontrol document under systemStatus to expose a new metric.

Describe alternatives you've considered

No response

Additional context

No response

github-actions[bot] commented 9 hours ago

Pinging code owners:

VihasMakwana commented 8 hours ago

This sounds like a valid enhancement. We already have ServerStatus command in mongodb receiver and we can extend that command to include the flowControl block to metrics. I'd love to get feedback from codeowners.