-
Notifications
You must be signed in to change notification settings - Fork 431
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
mongodb_connections metric not available #916
Comments
Hi @MehdiKammakh, you need to enable compatible node with |
@BupycHuk |
anyone have idea about this ? |
Hi, can you enable diagnostic data? |
@BupycHuk how to do it ? |
|
enabled it `version: '3.8' services: networks: still no connections available in metrics @BupycHuk |
Could you share metrics output one more time please? |
Had the same issue. It’s now working for me with the following command:
|
Describe the bug
mongodb_connections metric is not available for me
To Reproduce
Steps to reproduce the behavior:
--mongodb.uri=mongodb://mongo:27017
--mongodb.collstats-colls=planning.course
--collector.shards
--mongodb.global-conn-pool
--collector.replicasetstatus
--collector.dbstats
--collector.dbstatsfreestorage
--collector.collstats
--collector.indexstats
--collector.topmetrics
Expected behavior
mongodb_connections metrics available
Logs
Please provide logs relevant to the issue
Environment
Additional context
mongoDB docker compose
version: '3.8'
services:
mongo:
image: mongo:6.0.8
container_name: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
percona mongodb exporter docker compose
version: '3.8'
services:
mongodb_exporter:
image: percona/mongodb_exporter:0.41.0
container_name: mongodb_exporter
hostname: mongodb_exporter
ports:
- "9216:9216"
command: >
--mongodb.uri=mongodb://mongo:27017
--mongodb.collstats-colls=planning.course
--collector.shards
--mongodb.global-conn-pool
--collector.replicasetstatus
--collector.dbstats
--collector.dbstatsfreestorage
--collector.collstats
--collector.indexstats
--collector.topmetrics
networks:
- mongodb_default
environment:
- MONGODB_USER=mongodb_exporter
- MONGODB_PASSWORD=passwordExporter
The text was updated successfully, but these errors were encountered: