From 198c7fa3e34c71bc075bcfb067da80242e74bddf Mon Sep 17 00:00:00 2001 From: Vladimir Kobal Date: Mon, 13 May 2019 15:45:34 +0300 Subject: Add AWS Kinesis backend (#5914) * Add Kinesis backend * Separate config file * Send data in chunks * Fix minor issues * Add error handling * Use existing JSON functions * Do not retry on send failure * Implement building with autotools * Implement building with CMake * Fix CMake variables * Fix build when C++ compiler is not available * Add checks for C++11 * Don't reinitialize API * Don't reinitialize client * Minor cleanup * Fix Codacy warning * Separate sending records and receiving results * Add documentation * Make connection timeout configurable * Fix operation metrics * Fix typo * Change parameter names for credentials * Allow using the default SDK credentials configuration --- Makefile.am | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index ee5ba9f172..7f3604ef83 100644 --- a/Makefile.am +++ b/Makefile.am @@ -412,6 +412,13 @@ BACKENDS_PLUGIN_FILES = \ backends/prometheus/backend_prometheus.h \ $(NULL) +KINESIS_BACKEND_FILES = \ + backends/aws_kinesis/aws_kinesis.c \ + backends/aws_kinesis/aws_kinesis.h \ + backends/aws_kinesis/aws_kinesis_put_record.cc \ + backends/aws_kinesis/aws_kinesis_put_record.h \ + $(NULL) + DAEMON_FILES = \ daemon/common.c \ daemon/common.h \ @@ -471,13 +478,18 @@ NETDATA_COMMON_LIBS = \ $(OPTIONAL_ZLIB_LIBS) \ $(OPTIONAL_UUID_LIBS) \ $(NULL) - +# TODO: Find more graceful way to add libs for AWS Kinesis sbin_PROGRAMS += netdata netdata_SOURCES = $(NETDATA_FILES) netdata_LDADD = \ $(NETDATA_COMMON_LIBS) \ $(NULL) +if ENABLE_BACKEND_KINESIS + netdata_LINK = $(CXXLD) $(CXXFLAGS) -o $@ +else + netdata_LINK = $(CCLD) $(CFLAGS) -o $@ +endif if ENABLE_PLUGIN_APPS plugins_PROGRAMS += apps.plugin @@ -531,3 +543,8 @@ if ENABLE_PLUGIN_XENSTAT $(OPTIONAL_XENSTAT_LIBS) \ $(NULL) endif + +if ENABLE_BACKEND_KINESIS + netdata_SOURCES += $(KINESIS_BACKEND_FILES) + netdata_LDADD += $(OPTIONAL_KINESIS_LIBS) +endif -- cgit v1.2.3