summaryrefslogtreecommitdiffstats
path: root/exporting/pubsub
diff options
context:
space:
mode:
Diffstat (limited to 'exporting/pubsub')
-rw-r--r--exporting/pubsub/README.md8
-rw-r--r--exporting/pubsub/pubsub.c2
2 files changed, 7 insertions, 3 deletions
diff --git a/exporting/pubsub/README.md b/exporting/pubsub/README.md
index 2f9ac83d..10252f16 100644
--- a/exporting/pubsub/README.md
+++ b/exporting/pubsub/README.md
@@ -1,8 +1,12 @@
<!--
title: "Export metrics to Google Cloud Pub/Sub Service"
description: "Export Netdata metrics to the Google Cloud Pub/Sub Service for long-term archiving or analytical processing."
-custom_edit_url: https://github.com/netdata/netdata/edit/master/exporting/pubsub/README.md
-sidebar_label: Google Cloud Pub/Sub Service
+custom_edit_url: "https://github.com/netdata/netdata/edit/master/exporting/pubsub/README.md"
+sidebar_label: "Google Cloud Pub/Sub Service"
+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 Google Cloud Pub/Sub Service
diff --git a/exporting/pubsub/pubsub.c b/exporting/pubsub/pubsub.c
index b218338f..d65fc2c4 100644
--- a/exporting/pubsub/pubsub.c
+++ b/exporting/pubsub/pubsub.c
@@ -30,7 +30,7 @@ int init_pubsub_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 Pub/Sub exporting connector instance %s", instance->config.name);
return 1;