文件操作 - README.md
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/src/netdata/backends/mongodb/README.md
编辑文件内容
<!-- --- title: "MongoDB backend" custom_edit_url: https://github.com/netdata/netdata/edit/master/backends/mongodb/README.md --- --> # MongoDB backend ## Prerequisites To use MongoDB as a backend, `libmongoc` 1.7.0 or higher should be [installed](http://mongoc.org/libmongoc/current/installing.html) first. Next, Netdata should be re-installed from the source. The installer will detect that the required libraries are now available. ## Configuration To enable data sending to the MongoDB backend set the following options in `netdata.conf`: ```conf [backend] enabled = yes type = mongodb ``` In the Netdata configuration directory run `./edit-config mongodb.conf` and set [MongoDB URI](https://docs.mongodb.com/manual/reference/connection-string/), database name, and collection name: ```yaml # URI uri = mongodb://<hostname> # database name database = your_database_name # collection name collection = your_collection_name ``` The default socket timeout depends on the backend update interval. The timeout is 500 ms shorter than the interval (but not less than 1000 ms). You can alter the timeout using the `sockettimeoutms` MongoDB URI option. [](<>)
修改文件时间
将文件时间修改为当前时间的前一年
删除文件