summaryrefslogtreecommitdiffstats
path: root/exporting/exporting_engine.h
diff options
context:
space:
mode:
authorVladimir Kobal <vlad@prokk.net>2020-05-14 10:54:23 +0300
committerGitHub <noreply@github.com>2020-05-14 10:54:23 +0300
commitb5f8c224a9636c071fc474634380b4a93ea21c28 (patch)
tree0676b067283d6c1fe46f091a7bba6afc6a362bc3 /exporting/exporting_engine.h
parentb8fce8d15bd9f97e8748305ca8f839a6de889199 (diff)
Add a Google Cloud Pub/Sub connector to the exporting engine (#8855)
* Implement formatters * Add specific configuration options * Add the connector to the Autotools and CMake configuration * Initialize a connector instance * Publish netdata metrics * Fix internal stats * Add unit tests * Improve the documentation
Diffstat (limited to 'exporting/exporting_engine.h')
-rw-r--r--exporting/exporting_engine.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/exporting/exporting_engine.h b/exporting/exporting_engine.h
index 94daf98e05..9673e823d6 100644
--- a/exporting/exporting_engine.h
+++ b/exporting/exporting_engine.h
@@ -50,6 +50,7 @@ typedef enum exporting_connector_types {
EXPORTING_CONNECTOR_TYPE_JSON, // Stores the data using JSON.
EXPORTING_CONNECTOR_TYPE_PROMETHEUS_REMOTE_WRITE, // The user selected to use Prometheus backend
EXPORTING_CONNECTOR_TYPE_KINESIS, // Send message to AWS Kinesis
+ EXPORTING_CONNECTOR_TYPE_PUBSUB, // Send message to Google Cloud Pub/Sub
EXPORTING_CONNECTOR_TYPE_MONGODB, // Send data to MongoDB collection
EXPORTING_CONNECTOR_TYPE_NUM // Number of backend types
} EXPORTING_CONNECTOR_TYPE;
@@ -87,6 +88,12 @@ struct aws_kinesis_specific_config {
char *secure_key;
};
+struct pubsub_specific_config {
+ char *credentials_file;
+ char *project_id;
+ char *topic_id;
+};
+
struct mongodb_specific_config {
char *database;
char *collection;