diff options
Diffstat (limited to 'exporting/graphite')
-rw-r--r-- | exporting/graphite/README.md | 20 | ||||
-rw-r--r-- | exporting/graphite/graphite.c | 4 |
2 files changed, 15 insertions, 9 deletions
diff --git a/exporting/graphite/README.md b/exporting/graphite/README.md index 6c96c78c..afcdf798 100644 --- a/exporting/graphite/README.md +++ b/exporting/graphite/README.md @@ -1,14 +1,19 @@ <!-- title: "Export metrics to Graphite providers" description: "Archive your Agent's metrics to a any Graphite database provider for long-term storage, further analysis, or correlation with data from other sources." -custom_edit_url: https://github.com/netdata/netdata/edit/master/exporting/graphite/README.md -sidebar_label: Graphite +custom_edit_url: "https://github.com/netdata/netdata/edit/master/exporting/graphite/README.md" +sidebar_label: "Graphite" +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 Graphite providers -You can use the Graphite connector for the [exporting engine](/exporting/README.md) to archive your agent's metrics to -Graphite providers for long-term storage, further analysis, or correlation with data from other sources. +You can use the Graphite connector for +the [exporting engine](https://github.com/netdata/netdata/blob/master/exporting/README.md) to archive your agent's +metrics to Graphite providers for long-term storage, further analysis, or correlation with data from other sources. ## Configuration @@ -21,7 +26,8 @@ directory and set the following options: destination = localhost:2003 ``` -Add `:http` or `:https` modifiers to the connector type if you need to use other than a plaintext protocol. For example: `graphite:http:my_graphite_instance`, +Add `:http` or `:https` modifiers to the connector type if you need to use other than a plaintext protocol. For +example: `graphite:http:my_graphite_instance`, `graphite:https:my_graphite_instance`. You can set basic HTTP authentication credentials using ```conf @@ -29,7 +35,7 @@ Add `:http` or `:https` modifiers to the connector type if you need to use other password = my_password ``` -The Graphite connector is further configurable using additional settings. See the [exporting reference -doc](/exporting/README.md#options) for details. +The Graphite 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/graphite/graphite.c b/exporting/graphite/graphite.c index 0b33f642..f1964f3e 100644 --- a/exporting/graphite/graphite.c +++ b/exporting/graphite/graphite.c @@ -48,7 +48,7 @@ int init_graphite_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 graphite exporting connector instance %s", instance->config.name); return 1; @@ -96,7 +96,7 @@ void sanitize_graphite_label_value(char *dst, const char *src, size_t len) int format_host_labels_graphite_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; |