Vladimir Kobal 36c2e1dbf3 Add a MongoDB connector to the exporting engine (#8416) 5 лет назад
..
Makefile.am 36c2e1dbf3 Add a MongoDB connector to the exporting engine (#8416) 5 лет назад
README.md 9342704a41 Bulk add frontmatter to all documentation (#8354) 5 лет назад
mongodb.c 36c2e1dbf3 Add a MongoDB connector to the exporting engine (#8416) 5 лет назад
mongodb.conf 6262597923 Add MongoDB backend (#6524) 5 лет назад
mongodb.h 36c2e1dbf3 Add a MongoDB connector to the exporting engine (#8416) 5 лет назад

README.md

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](<>)