diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-06 16:11:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-06 16:11:30 +0000 |
commit | aa2fe8ccbfcb117efa207d10229eeeac5d0f97c7 (patch) | |
tree | 941cbdd387b41c1a81587c20a6df9f0e5e0ff7ab /exporting/json | |
parent | Adding upstream version 1.37.1. (diff) | |
download | netdata-aa2fe8ccbfcb117efa207d10229eeeac5d0f97c7.tar.xz netdata-aa2fe8ccbfcb117efa207d10229eeeac5d0f97c7.zip |
Adding upstream version 1.38.0.upstream/1.38.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'exporting/json')
-rw-r--r-- | exporting/json/README.md | 14 | ||||
-rw-r--r-- | exporting/json/json.c | 6 |
2 files changed, 12 insertions, 8 deletions
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 @@ <!-- title: "Export metrics to JSON document databases" description: "Archive your Agent's metrics to a JSON document database for long-term storage, further analysis, or correlation with data from other sources." -custom_edit_url: https://github.com/netdata/netdata/edit/master/exporting/json/README.md -sidebar_label: JSON Document Databases +custom_edit_url: "https://github.com/netdata/netdata/edit/master/exporting/json/README.md" +sidebar_label: "JSON Document Databases" +learn_status: "Published" +learn_topic_type: "Tasks" +learn_rel_path: "Setup/Exporting connectors" +learn_autogeneration_metadata: "{'part_of_cloud': False, 'part_of_agent': True}" --> # 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; |