You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that when using `--split-cluster` you should also use direct connections, otherwise it just only connects to the same replica and reports its metrics as if all the replicas have exactly the same metric values.
| --mongodb.collstats-colls | List of comma separared databases.collections to get $collStats | --mongodb.collstats-colls=db1,db2.col2 |
10
10
| --mongodb.indexstats-colls | List of comma separared databases.collections to get $indexStats | --mongodb.indexstats-colls=db1.col1,db2.col2 |
11
-
| --[no-]mongodb.direct-connect | Whether or not a direct connect should be made. Direct connections are not valid if multiple hosts are specified or an SRV URI is used ||
11
+
| --[no-]mongodb.direct-connect | Whether or not a direct connect should be made. Direct connections are not valid if multiple hosts are specified or an SRV URI is used unless using --split-cluster||
12
12
| --[no-]mongodb.global-conn-pool | Use global connection pool instead of creating new pool for each http request ||
13
13
| --mongodb.uri | MongoDB connection URI ($MONGODB_URI) | --mongodb.uri=mongodb://user:pass@127.0.0.1:27017/admin?ssl=true |
14
-
| --split-cluster | Whether to treat cluster members from the connection URI as separate targets|
14
+
| --split-cluster | Whether to treat cluster members from the connection URI as separate targets, use with `--mongodb.direct-connect` and the `/scrapeall` endpoint||
15
15
| --web.listen-address | Address to listen on for web interface and telemetry | --web.listen-address=":9216" |
0 commit comments