Describe the bug
Not all shard level metrics appear without the use of --compatible-mode
To Reproduce
Steps to reproduce the behavior:
- Start exporter with "--collector.shards", "--collector.diagnosticdata"
- Get available /metrics
- Start exporter with "--compatible-mode", "--collector.shards", "--collector.diagnosticdata"
- Get available /metrics
Expected behavior
Show all metrics without the compatible-mode flag.
with compatible-mode metrics
mongodb_mongos_db_collections_total
mongodb_mongos_db_data_size_bytes
mongodb_mongos_db_index_size_bytes
mongodb_mongos_db_indexes_total
mongodb_mongos_sharding_balancer_enabled
mongodb_mongos_sharding_chunks_is_balancer_running
mongodb_mongos_sharding_chunks_total
mongodb_mongos_sharding_collections_total
mongodb_mongos_sharding_databases_total
mongodb_mongos_sharding_shard_chunks_total
mongodb_mongos_sharding_shards_draining_total
mongodb_mongos_sharding_shards_total
vs without that flag
mongodb_mongos_sharding_shard_chunks_total
mongodb_shards_collection_chunks_count
- OS,
- environment (docker, k8s, etc) docker
- MongoDB version v7.0.15
Describe the bug
Not all shard level metrics appear without the use of --compatible-mode
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Show all metrics without the compatible-mode flag.
with compatible-mode metrics
mongodb_mongos_db_collections_total
mongodb_mongos_db_data_size_bytes
mongodb_mongos_db_index_size_bytes
mongodb_mongos_db_indexes_total
mongodb_mongos_sharding_balancer_enabled
mongodb_mongos_sharding_chunks_is_balancer_running
mongodb_mongos_sharding_chunks_total
mongodb_mongos_sharding_collections_total
mongodb_mongos_sharding_databases_total
mongodb_mongos_sharding_shard_chunks_total
mongodb_mongos_sharding_shards_draining_total
mongodb_mongos_sharding_shards_total
vs without that flag
mongodb_mongos_sharding_shard_chunks_total
mongodb_shards_collection_chunks_count