Tasos Katsoulas 9f1403de7d Covert our documentation links to GH absolute links (#14344) 2 лет назад
..
Makefile.am 36c2e1dbf3 Add a MongoDB connector to the exporting engine (#8416) 5 лет назад
README.md 9f1403de7d Covert our documentation links to GH absolute links (#14344) 2 лет назад
mongodb.c 9232bfb6a0 track memory footprint of Netdata (#14294) 2 лет назад
mongodb.h 943ee2482b Add HTTP and HTTPS support to the simple exporting connector (#9911) 4 лет назад

README.md

Export metrics to MongoDB

You can use the MongoDB connector for the exporting engine to archive your agent's metrics to a MongoDB database for long-term storage, further analysis, or correlation with data from other sources.

Prerequisites

To use MongoDB as an external storage for long-term archiving, you should first install libmongoc 1.7.0 or higher. Next, re-install Netdata from the source, which detects that the required library is now available.

Configuration

To enable data exporting to a MongoDB database, run ./edit-config exporting.conf in the Netdata configuration directory and set the following options:

[mongodb:my_instance]
    enabled = yes
    destination = mongodb://<hostname>
    database = your_database_name
    collection = your_collection_name

You can find more information about the destination string URI format in the MongoDB documentation

The default socket timeout depends on the exporting connector 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.