From aa2fe8ccbfcb117efa207d10229eeeac5d0f97c7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 Feb 2023 17:11:30 +0100 Subject: Adding upstream version 1.38.0. Signed-off-by: Daniel Baumann --- exporting/mongodb/README.md | 13 +++++++++---- exporting/mongodb/mongodb.c | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'exporting/mongodb') diff --git a/exporting/mongodb/README.md b/exporting/mongodb/README.md index b10d54716..0cbe8f059 100644 --- a/exporting/mongodb/README.md +++ b/exporting/mongodb/README.md @@ -1,14 +1,19 @@ # Export metrics to MongoDB -You can use the MongoDB connector for the [exporting engine](/exporting/README.md) to archive your agent's metrics to a -MongoDB database for long-term storage, further analysis, or correlation with data from other sources. +You can use the MongoDB connector for +the [exporting engine](https://github.com/netdata/netdata/blob/master/exporting/README.md) to archive your agent's +metrics to a MongoDB database for long-term storage, further analysis, or correlation with data from other sources. ## Prerequisites diff --git a/exporting/mongodb/mongodb.c b/exporting/mongodb/mongodb.c index 850d07fb3..186a7dcfd 100644 --- a/exporting/mongodb/mongodb.c +++ b/exporting/mongodb/mongodb.c @@ -106,7 +106,7 @@ int init_mongodb_instance(struct instance *instance) instance->prepare_header = NULL; instance->check_response = NULL; - instance->buffer = (void *)buffer_create(0); + instance->buffer = (void *)buffer_create(0, &netdata_buffers_statistics.buffers_exporters); if (!instance->buffer) { error("EXPORTING: cannot create buffer for MongoDB exporting connector instance %s", instance->config.name); return 1; -- cgit v1.2.3