Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support opLatencies in mongodb input plugin #6725

Closed
rlodge opened this issue Nov 28, 2019 · 1 comment
Closed

Support opLatencies in mongodb input plugin #6725

rlodge opened this issue Nov 28, 2019 · 1 comment
Labels
area/mongodb feature request Requests for new plugin and for new features to existing plugins

Comments

@rlodge
Copy link
Contributor

rlodge commented Nov 28, 2019

Feature Request

The mongodb input plugin should read the opLatencies field of the serverStatus output and report those metrics.

Proposal:

Add DefaultLatencyStats to mongodb_data.go, and add LatencyStats and OpLatenciesStats structures go mongostat.go, and populate them if the data read from serverStatus contains the appropriate fields.

Current behavior:

No latency stats are reported.

Desired behavior:

Latency stats should be reported so that the plugin can more fully support monitoring mongo.

Use case:

We are replacing a proprietary monitoring system with one based on InfluxDB, and the one piece of data we use a lot in the existing system that the plugin doesn't support is the opLatencies values

rlodge added a commit to rlodge/telegraf that referenced this issue Nov 29, 2019
rlodge added a commit to rlodge/telegraf that referenced this issue Nov 29, 2019
@danielnelson danielnelson added area/mongodb feature request Requests for new plugin and for new features to existing plugins labels Dec 2, 2019
rlodge added a commit to rlodge/telegraf that referenced this issue Dec 6, 2019
@powersj
Copy link
Contributor

powersj commented Mar 7, 2022

Fixed in #6725. Closing.

@powersj powersj closed this as completed Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mongodb feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

No branches or pull requests

3 participants