summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimotej S <6674623+underhood@users.noreply.github.com>2022-02-11 12:19:45 +0100
committerGitHub <noreply@github.com>2022-02-11 12:19:45 +0100
commit95446504e3f1263cda5ff72455b008b947730157 (patch)
tree3a2ef596ad918bcf9bfd0fbfd48d558b0e8919b7
parentbdd83fcc145212f6dc464aff67078ec4462b5a63 (diff)
Adds legacy protocol deprecation banner to agent log (#12065)
* Add legacy protocol deprecation banner to agent log
-rw-r--r--aclk/aclk.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/aclk/aclk.c b/aclk/aclk.c
index 09c4eed5f5..c25b7df684 100644
--- a/aclk/aclk.c
+++ b/aclk/aclk.c
@@ -819,6 +819,16 @@ void *aclk_main(void *ptr)
if (aclk_attempt_to_connect(mqttwss_client))
goto exit_full;
+#if defined(ENABLE_ACLK) && !defined(ENABLE_NEW_CLOUD_PROTOCOL)
+ error_report("############################ WARNING ###############################");
+ error_report("# Your agent is configured to connect to cloud but has #");
+ error_report("# no protobuf protocol support (uses legacy JSON protocol) #");
+ error_report("# Legacy protocol will be deprecated soon (planned 1st March 2022) #");
+ error_report("# Visit following link for more info and instructions how to solve #");
+ error_report("# https://www.netdata.cloud/blog/netdata-clouds-new-architecture #");
+ error_report("######################################################################");
+#endif
+
// warning this assumes the popcorning is relative short (3s)
// if that changes call mqtt_wss_service from within
// to keep OpenSSL, WSS and MQTT connection alive