-
Notifications
You must be signed in to change notification settings - Fork 428
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
collstats metrics for shard cluster is incomplete #824
Comments
the |
Today we realized that the collstats (e.g. document counts) are just from a single shard... extraArgs::
- --web.listen-address=:9216
- --no-mongodb.direct-connect
- --discovering-mode
- --collector.collstats
- --collector.indexstats
- --collector.shards Environment MongoDB Atlas Version: 7.0.14 |
this is working as intended. The exporter collects data from a single shard. You can use aggregation functions to get the total values per cluster. |
I understand, but there is no extra label on the
In comparison, the arg
|
you are correct. I was seeing the |
Describe the bug
We are using mongodb_exporter on our shard cluster via SRV record, the collstats metrics like mongodb_collstats_storageStats_count{} return single shard count, and there is no label to identify which shard it is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect to have collstats (e.g. document counts, logical data size, etc.) for each shard on a sharded cluster, identify by shard name (replicaset name) or any other label.
Logs
no relevance error log.
Environment
The text was updated successfully, but these errors were encountered: