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/json/README.md | 14 +++++++++----- exporting/json/json.c | 6 +++--- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'exporting/json') diff --git a/exporting/json/README.md b/exporting/json/README.md index d129ffbd7..23ff555cb 100644 --- a/exporting/json/README.md +++ b/exporting/json/README.md @@ -1,13 +1,17 @@ # Export metrics to JSON document databases -You can use the JSON connector for the [exporting engine](/exporting/README.md) to archive your agent's metrics to JSON +You can use the JSON connector for the [exporting engine](https://github.com/netdata/netdata/blob/master/exporting/README.md) to archive your agent's metrics to JSON document databases for long-term storage, further analysis, or correlation with data from other sources. ## Configuration @@ -29,7 +33,7 @@ Add `:http` or `:https` modifiers to the connector type if you need to use other password = my_password ``` -The JSON connector is further configurable using additional settings. See the [exporting reference -doc](/exporting/README.md#options) for details. +The JSON connector is further configurable using additional settings. See +the [exporting reference doc](https://github.com/netdata/netdata/blob/master/exporting/README.md#options) for details. diff --git a/exporting/json/json.c b/exporting/json/json.c index dd53f6f0a..4cafd4c04 100644 --- a/exporting/json/json.c +++ b/exporting/json/json.c @@ -37,7 +37,7 @@ int init_json_instance(struct instance *instance) instance->check_response = exporting_discard_response; - 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 json exporting connector instance %s", instance->config.name); return 1; @@ -96,7 +96,7 @@ int init_json_http_instance(struct instance *instance) instance->check_response = exporting_discard_response; - instance->buffer = (void *)buffer_create(0); + instance->buffer = (void *)buffer_create(0, &netdata_buffers_statistics.buffers_exporters); simple_connector_init(instance); @@ -119,7 +119,7 @@ int init_json_http_instance(struct instance *instance) int format_host_labels_json_plaintext(struct instance *instance, RRDHOST *host) { if (!instance->labels_buffer) - instance->labels_buffer = buffer_create(1024); + instance->labels_buffer = buffer_create(1024, &netdata_buffers_statistics.buffers_exporters); if (unlikely(!sending_labels_configured(instance))) return 0; -- cgit v1.2.3