udpate prom add mongo

main
ycz008 2024-04-25 21:05:45 +08:00
parent ec4e2b8671
commit a147d13f6f
1 changed files with 5 additions and 11 deletions

View File

@ -18,17 +18,11 @@ spec:
image: percona/mongodb_exporter:0.40
imagePullPolicy: Always
args:
- "--mongodb.uri=mongodb://mongo_monitor:beaconfire123@mongo-rs0-0.mongo-rs0.base.svc:27017,mongo-rs0-1.mongo-rs0.base.svc:27017,mongo-rs0-2.mongo-rs0.base.svc:27017/admin,"
- "--mongodb.global-conn-pool"
- "--discovering-mode"
- "--collector.replicasetstatus"
- "--collector.dbstats"
- "--collector.dbstatsfreestorage"
- "--collector.topmetrics"
- "--collector.currentopmetrics"
- "--collector.indexstats"
- "--collector.collstats"
- "--collector.profile"
- '--mongodb.uri=mongodb://mongo_monitor:beaconfire123@mongo-rs0-0.mongo-rs0.base.svc:27017/admin,mongodb://mongo_monitor:beaconfire123@mongo-rs0-1.mongo-rs0.base.svc:27017/admin,mongodb://mongo_monitor:beaconfire123@mongo-rs0-2.mongo-rs0.base.svc:27017/admin'
- '--mongodb.global-conn-pool'
- '--collector.replicasetstatus'
- '--collector.dbstats'
- '--collector.profile'
resources:
requests:
cpu: 0.01