summaryrefslogtreecommitdiffstats
path: root/daemon/buildinfo.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-05-19 12:33:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-05-19 12:33:59 +0000
commit1ee0c09c5742557e037df5421ca62abddb90ae22 (patch)
tree71c0fa48bb6d31d036c9badd7e038527f90d1a73 /daemon/buildinfo.c
parentReleasing debian version 1.30.1-1. (diff)
downloadnetdata-1ee0c09c5742557e037df5421ca62abddb90ae22.tar.xz
netdata-1ee0c09c5742557e037df5421ca62abddb90ae22.zip
Merging upstream version 1.31.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'daemon/buildinfo.c')
-rw-r--r--daemon/buildinfo.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/daemon/buildinfo.c b/daemon/buildinfo.c
index b16390544..ebeaa996d 100644
--- a/daemon/buildinfo.c
+++ b/daemon/buildinfo.c
@@ -2,6 +2,7 @@
#include <stdio.h>
#include "./config.h"
+#include "common.h"
// Optional features
@@ -312,3 +313,49 @@ void print_build_info_json(void) {
printf(" }\n");
printf("}\n");
};
+
+//return a list of enabled features for use in analytics
+//find a way to have proper |
+void analytics_build_info(BUFFER *b) {
+ if(FEAT_DBENGINE) buffer_strcat (b, "dbengine");
+ if(FEAT_NATIVE_HTTPS) buffer_strcat (b, "|Native HTTPS");
+ if(FEAT_CLOUD) buffer_strcat (b, "|Netdata Cloud");
+ if(FEAT_TLS_HOST_VERIFY) buffer_strcat (b, "|TLS Host Verification");
+
+ if(FEAT_JEMALLOC) buffer_strcat (b, "|jemalloc");
+ if(FEAT_JSONC) buffer_strcat (b, "|JSON-C");
+ if(FEAT_LIBCAP) buffer_strcat (b, "|libcap");
+ if(FEAT_CRYPTO) buffer_strcat (b, "|libcrypto");
+ if(FEAT_LIBM) buffer_strcat (b, "|libm");
+
+#ifndef ACLK_NG
+#if defined(ENABLE_ACLK)
+ {
+ char buf[20];
+ snprintfz(buf, 19, "|LWS v%d.%d.%d", LWS_LIBRARY_VERSION_MAJOR, LWS_LIBRARY_VERSION_MINOR, LWS_LIBRARY_VERSION_PATCH);
+ if(FEAT_LWS) buffer_strcat(b, buf);
+ }
+#else
+ if(FEAT_LWS) buffer_strcat(b, "|LWS");
+#endif
+ if(FEAT_MOSQUITTO) buffer_strcat(b, "|mosquitto");
+#endif
+ if(FEAT_TCMALLOC) buffer_strcat(b, "|tcalloc");
+ if(FEAT_ZLIB) buffer_strcat(b, "|zlib");
+
+ if(FEAT_APPS_PLUGIN) buffer_strcat(b, "|apps");
+ if(FEAT_CGROUP_NET) buffer_strcat(b, "|cgroup Network Tracking");
+ if(FEAT_CUPS) buffer_strcat(b, "|CUPS");
+ if(FEAT_EBPF) buffer_strcat(b, "|EBPF");
+ if(FEAT_IPMI) buffer_strcat(b, "|IPMI");
+ if(FEAT_NFACCT) buffer_strcat(b, "|NFACCT");
+ if(FEAT_PERF) buffer_strcat(b, "|perf");
+ if(FEAT_SLABINFO) buffer_strcat(b, "|slabinfo");
+ if(FEAT_XEN) buffer_strcat(b, "|Xen");
+ if(FEAT_XEN_VBD_ERROR) buffer_strcat(b, "|Xen VBD Error Tracking");
+
+ if(FEAT_KINESIS) buffer_strcat(b, "|AWS Kinesis");
+ if(FEAT_PUBSUB) buffer_strcat(b, "|GCP PubSub");
+ if(FEAT_MONGO) buffer_strcat(b, "|MongoDB");
+ if(FEAT_REMOTE_WRITE) buffer_strcat(b, "|Prometheus Remote Write");
+}