Skip to content

Not all shard metrics seen without the use of -compatible-mode #1265

Description

@sre-tvernick

Describe the bug
Not all shard level metrics appear without the use of --compatible-mode

To Reproduce
Steps to reproduce the behavior:

  1. Start exporter with "--collector.shards", "--collector.diagnosticdata"
  2. Get available /metrics
  3. Start exporter with "--compatible-mode", "--collector.shards", "--collector.diagnosticdata"
  4. 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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions