0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-05-04 09:10:31 +00:00
netdata_netdata/backends/mongodb
Promise Akpan f5006d51e8 Fix Markdown Lint warnings ()
* make remark access all directories

* detailed fix after autofix by remark lint

* cross check autofix for this set of files

* crosscheck more files

* crosschecking and small fixes

* crosscheck autofixed md files
2019-08-15 13:06:39 +02:00
..
Makefile.am Add MongoDB backend () 2019-08-14 11:03:40 +03:00
mongodb.c Add MongoDB backend () 2019-08-14 11:03:40 +03:00
mongodb.conf Add MongoDB backend () 2019-08-14 11:03:40 +03:00
mongodb.h Add MongoDB backend () 2019-08-14 11:03:40 +03:00
README.md Fix Markdown Lint warnings () 2019-08-15 13:06:39 +02:00

MongoDB backend

Prerequisites

To use MongoDB as a backend, libmongoc 1.7.0 or higher should be installed 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:

[backend]
    enabled = yes
    type = mongodb

In the Netdata configuration directory run ./edit-config mongodb.conf and set MongoDB URI, database name, and collection name:

# 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.

analytics