percona / mongodb_exporter

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

metrics labels and collector.shards not working properly #898

Closed M4theus-r0ss1 closed 1 week ago

M4theus-r0ss1 commented 3 weeks ago

Bug Description

To Reproduce Steps to reproduce the behavior:

  1. set the mongodb-uri": Example> "mongodb+srv://user:pass@cluster1.mongodb.net,mongodb+srv://user:pass@cluster2.mongodb.net"
  2. Set the extraargs --collector.shards
  3. deploy the exporter
  4. See pod logs to see the flag errors
  5. View the scraped metrics and verify there isn't metrics from 2 clusters.

Expected behavior

Logs Please provide logs relevant to the issue

Environment

Additional context I'm using the created secret option on values.yaml

image

BupycHuk commented 1 week ago

Hi, we haven't released these new features yet