summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorEmmanuel Vasilakis <mrzammler@mm.st>2022-05-04 13:59:58 +0300
committerGitHub <noreply@github.com>2022-05-04 13:59:58 +0300
commit4078661e3342d7b311b2ec314f5323b6229c689c (patch)
treee5fd1b6becdd256d0435d450d77a765f85592507 /daemon
parente652e6054e6986cd1a6a5e91e5bf836a172955dc (diff)
Metric correlations (#12582)
* initial attempt at metric correlations * fix loop * simplify struct * change json * get points from query * comment * dont lock the host as much * add a configuration option to enable/disable metric correlations * remove KSfbar from header file * lock charts * add timeout * cast multiplication * add licencing info * better licencing * use onewayalloc * destroy owa
Diffstat (limited to 'daemon')
-rw-r--r--daemon/common.h3
-rw-r--r--daemon/main.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/daemon/common.h b/daemon/common.h
index 2a45ffe70e..da96e2ac1c 100644
--- a/daemon/common.h
+++ b/daemon/common.h
@@ -84,6 +84,9 @@
#include "commands.h"
#include "analytics.h"
+// metric correlations
+#include "database/metric_correlations.h"
+
// global netdata daemon variables
extern char *netdata_configured_hostname;
extern char *netdata_configured_user_config_dir;
diff --git a/daemon/main.c b/daemon/main.c
index 50d4fe417e..47017ba027 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -554,6 +554,10 @@ static void get_netdata_configured_variables() {
#endif
// --------------------------------------------------------------------
+ // metric correlations
+ enable_metric_correlations = config_get_boolean(CONFIG_SECTION_GLOBAL, "enable metric correlations", enable_metric_correlations);
+
+ // --------------------------------------------------------------------
// get various system parameters
get_system_HZ();