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

ops by collection #991

Open
AyoJin opened this issue Dec 13, 2024 · 2 comments
Open

ops by collection #991

AyoJin opened this issue Dec 13, 2024 · 2 comments

Comments

@AyoJin
Copy link

AyoJin commented Dec 13, 2024

i want to know the ops by mongodb collection

@idoqo
Copy link
Contributor

idoqo commented Dec 16, 2024

Hi @AyoJin , please provide further details about your issue/request.

@AyoJin
Copy link
Author

AyoJin commented Dec 24, 2024

Hi @AyoJin , please provide further details about your issue/request.

mongodb_exporter:
Version: v0.42.0

I enabled "--collector.topmetrics",but the "mongodb_top_commands_count" or "mongodb_top_commands_time" metric seems not correct.

this is my PromQL:
sum(rate(mongodb_top_commands_count{instance="$env",database="bcats"}[5m])) by (collection)

this is the PromQL query result:
image

as you can see, all collections are the same value, but that's not actually the case.

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

No branches or pull requests

2 participants