modify mongodb.toml

This commit is contained in:
Ulric Qin 2022-07-13 17:09:50 +08:00
parent c1598a9661
commit 2229312e4b
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@ log_level = "info"
labels = { instance="mongo-cluster-01" }
# mongodb dsn, see https://www.mongodb.com/docs/manual/reference/connection-string/
mongodb_uri = "mongodb://127.0.0.1:27017"
# mongodb_uri = "mongodb://127.0.0.1:27017"
mongodb_uri = ""
# if you don't specify the username or password in the mongodb_uri, you can set here.
# This will overwrite the dsn, it would be helpful when special characters existing in the username or password and you don't want to encode them.
# NOTICE! this user must be granted enough rights to query needed stats, see ../inputs/mongodb/README.md