Send correct aclk implementation used by agent to posthog. (#11247)

This commit is contained in:
Emmanuel Vasilakis 2021-06-15 17:09:58 +03:00 committed by GitHub
parent bde5fa0fc0
commit 3ef5ba029c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -411,13 +411,13 @@ void analytics_misc(void)
{
#ifdef ENABLE_ACLK
analytics_set_data(&analytics_data.netdata_host_cloud_available, "true");
#ifdef ACLK_NG
analytics_set_data_str(&analytics_data.netdata_host_aclk_implementation, "Next Generation");
#else
analytics_set_data_str(&analytics_data.netdata_host_aclk_implementation, "legacy");
#endif
if (aclk_ng)
analytics_set_data_str(&analytics_data.netdata_host_aclk_implementation, "Next Generation");
else
analytics_set_data_str(&analytics_data.netdata_host_aclk_implementation, "legacy");
#else
analytics_set_data(&analytics_data.netdata_host_cloud_available, "false");
analytics_set_data_str(&analytics_data.netdata_host_aclk_implementation, "");
#endif
#ifdef ENABLE_ACLK

View File

@ -325,6 +325,8 @@ 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_ACLK_NG) buffer_strcat (b, "|ACLK Next Generation");
if(FEAT_ACLK_LEGACY) buffer_strcat (b, "|ACLK Legacy");
if(FEAT_TLS_HOST_VERIFY) buffer_strcat (b, "|TLS Host Verification");
if(FEAT_JEMALLOC) buffer_strcat (b, "|jemalloc");