summaryrefslogtreecommitdiffstats
path: root/streaming
diff options
context:
space:
mode:
authorEmmanuel Vasilakis <mrzammler@mm.st>2022-05-24 11:48:47 +0300
committerGitHub <noreply@github.com>2022-05-24 11:48:47 +0300
commit2f4b6e059bedd77b9851a4a0bd654bf86b0c6a15 (patch)
treebbee2b66dd5e399d787efe43a40d56a121020e1e /streaming
parent080e0aee277ee636d98df536b00e98bae46cdf37 (diff)
Stream and advertise metric correlations to the cloud (#12940)
* stream and advertise mc to the cloud * better reporting * remove log * remove aclk debug
Diffstat (limited to 'streaming')
-rw-r--r--streaming/rrdpush.c2
-rw-r--r--streaming/sender.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/streaming/rrdpush.c b/streaming/rrdpush.c
index 783226066a..77774d8d3b 100644
--- a/streaming/rrdpush.c
+++ b/streaming/rrdpush.c
@@ -615,6 +615,8 @@ int rrdpush_receiver_thread_spawn(struct web_client *w, char *url) {
system_info->ml_capable = strtoul(value, NULL, 0);
else if(!strcmp(name, "ml_enabled"))
system_info->ml_enabled = strtoul(value, NULL, 0);
+ else if(!strcmp(name, "mc_version"))
+ system_info->mc_version = strtoul(value, NULL, 0);
else if(!strcmp(name, "tags"))
tags = value;
else if(!strcmp(name, "ver"))
diff --git a/streaming/sender.c b/streaming/sender.c
index 88febc0447..a95cc86734 100644
--- a/streaming/sender.c
+++ b/streaming/sender.c
@@ -335,6 +335,7 @@ if(!s->rrdpush_compression)
"&hops=%d"
"&ml_capable=%d"
"&ml_enabled=%d"
+ "&mc_version=%d"
"&tags=%s"
"&ver=%d"
"&NETDATA_INSTANCE_CLOUD_TYPE=%s"
@@ -380,6 +381,7 @@ if(!s->rrdpush_compression)
, host->system_info->hops + 1
, host->system_info->ml_capable
, host->system_info->ml_enabled
+ , host->system_info->mc_version
, (host->tags) ? host->tags : ""
, s->version
, (host->system_info->cloud_provider_type) ? host->system_info->cloud_provider_type : ""