summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorTimotej S <6674623+underhood@users.noreply.github.com>2022-09-27 18:31:24 +0200
committerGitHub <noreply@github.com>2022-09-27 18:31:24 +0200
commitf89f8845252370c70403c1f3badb26518aa63182 (patch)
tree3698d81640beb3066712e78ee5b15969422587e3 /daemon
parent3ea35e2dcd32e8fa7958298798608ff63798575f (diff)
Remove Chart/Dim based communication (#13650)
Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
Diffstat (limited to 'daemon')
-rw-r--r--daemon/main.c7
-rw-r--r--daemon/service.c7
-rw-r--r--daemon/unit_test.c36
3 files changed, 0 insertions, 50 deletions
diff --git a/daemon/main.c b/daemon/main.c
index a51e4a94c8..6d3ca585dd 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -736,12 +736,6 @@ static void get_netdata_configured_variables() {
}
// --------------------------------------------------------------------
- // rrdcontext
-
- rrdcontext_enabled = config_get_boolean(CONFIG_SECTION_CLOUD, "rrdcontexts", rrdcontext_enabled);
-
-
- // --------------------------------------------------------------------
// get various system parameters
get_system_HZ();
@@ -987,7 +981,6 @@ int main(int argc, char **argv) {
// No call to load the config file on this code-path
post_conf_load(&user);
get_netdata_configured_variables();
- rrdcontext_enabled = CONFIG_BOOLEAN_NO;
default_rrd_update_every = 1;
default_rrd_memory_mode = RRD_MEMORY_MODE_RAM;
default_health_enabled = 0;
diff --git a/daemon/service.c b/daemon/service.c
index f8371103b4..81b692dbef 100644
--- a/daemon/service.c
+++ b/daemon/service.c
@@ -61,9 +61,6 @@ static void svc_rrddim_obsolete_to_archive(RRDDIM *rd) {
}
else {
/* Do not delete this dimension */
-#ifdef ENABLE_ACLK
- queue_dimension_to_aclk(rd, calc_dimension_liveness(rd, now_realtime_sec()));
-#endif
return;
}
}
@@ -139,10 +136,6 @@ static void svc_rrdhost_cleanup_obsolete_charts(RRDHOST *host) {
rrdset_flag_clear(st, RRDSET_FLAG_OBSOLETE_DIMENSIONS);
svc_rrdset_archive_obsolete_dimensions(st, false);
}
-#ifdef ENABLE_ACLK
- else
- sql_check_chart_liveness(st);
-#endif
}
rrdset_foreach_done(st);
}
diff --git a/daemon/unit_test.c b/daemon/unit_test.c
index 9eade9f6b7..ba2ebf5416 100644
--- a/daemon/unit_test.c
+++ b/daemon/unit_test.c
@@ -1550,42 +1550,6 @@ int test_sqlite(void) {
BUFFER *sql = buffer_create(ACLK_SYNC_QUERY_SIZE);
char *uuid_str = "0000_000";
- buffer_sprintf(sql, TABLE_ACLK_CHART, uuid_str);
- rc = sqlite3_exec_monitored(db_meta, buffer_tostring(sql), 0, 0, NULL);
- buffer_flush(sql);
- if (rc != SQLITE_OK)
- goto error;
-
- buffer_sprintf(sql, TABLE_ACLK_CHART_PAYLOAD, uuid_str);
- rc = sqlite3_exec_monitored(db_meta, buffer_tostring(sql), 0, 0, NULL);
- buffer_flush(sql);
- if (rc != SQLITE_OK)
- goto error;
-
- buffer_sprintf(sql, TABLE_ACLK_CHART_LATEST, uuid_str);
- rc = sqlite3_exec_monitored(db_meta, buffer_tostring(sql), 0, 0, NULL);
- if (rc != SQLITE_OK)
- goto error;
- buffer_flush(sql);
-
- buffer_sprintf(sql, INDEX_ACLK_CHART, uuid_str, uuid_str);
- rc = sqlite3_exec_monitored(db_meta, buffer_tostring(sql), 0, 0, NULL);
- if (rc != SQLITE_OK)
- goto error;
- buffer_flush(sql);
-
- buffer_sprintf(sql, INDEX_ACLK_CHART_LATEST, uuid_str, uuid_str);
- rc = sqlite3_exec_monitored(db_meta, buffer_tostring(sql), 0, 0, NULL);
- if (rc != SQLITE_OK)
- goto error;
- buffer_flush(sql);
-
- buffer_sprintf(sql, TRIGGER_ACLK_CHART_PAYLOAD, uuid_str, uuid_str, uuid_str);
- rc = sqlite3_exec_monitored(db_meta, buffer_tostring(sql), 0, 0, NULL);
- if (rc != SQLITE_OK)
- goto error;
- buffer_flush(sql);
-
buffer_sprintf(sql, TABLE_ACLK_ALERT, uuid_str);
rc = sqlite3_exec_monitored(db_meta, buffer_tostring(sql), 0, 0, NULL);
if (rc != SQLITE_OK)