percona / mongodb_exporter

A Prometheus exporter for MongoDB including sharding, replication and storage engines
Apache License 2.0
1.14k stars 421 forks source link

Missing mongodb_version_info metrics in --no-compatible-mode #856

Open BeckYeh opened 1 month ago

BeckYeh commented 1 month ago

Describe the bug mongodb_version_info will miss if start with option --no-compatible-mode. and I can't find the same metrics

To Reproduce helm chart deploy like

mongodb:
  uri: mongodb://user:pass@localhost:27017/?ssl=false&replicaSet=my_name&authSource=admin,mongodb://user:pass@localhost:27018/?ssl=false&replicaSet=my_name&authSource=admin,mongodb://user:pass@localhost:27019/?ssl=false&replicaSet=my_name&authSource=admin
extraArgs:
  - --collector.diagnosticdata
  - --collector.replicasetstatus
  - --discovering-mode
  - --collector.topmetrics
  - --log.level=warn
  - --mongodb.global-conn-pool
  - --no-compatible-mode
serviceMonitor:
  enabled: false
resources:
  limits:
    cpu: 800m
    memory: 512Mi
  requests:
    cpu: 500m
    memory: 318Mi