summaryrefslogtreecommitdiffstats
path: root/streaming
diff options
context:
space:
mode:
authorvkalintiris <vasilis@netdata.cloud>2022-04-04 14:22:18 +0300
committerGitHub <noreply@github.com>2022-04-04 14:22:18 +0300
commit9c834eff9715d1347b33f9f1f8c3deaf5c162443 (patch)
tree8037c112c5e9864e72e0138f06f3b59779f8de77 /streaming
parentfeb2b193dbbf044fc89120b17371699a67190ab7 (diff)
Update ML-related charts (#12574)
* Move CPU usage stats under netdata charts Use the hostname in each chart's name, and the machine GUID in each chart's id. * Move anomaly_detection.* charts to child host instance. * Add option to enable/disable streaming of ML-related charts. * Update priority of prediction/training charts.
Diffstat (limited to 'streaming')
-rw-r--r--streaming/rrdpush.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/streaming/rrdpush.c b/streaming/rrdpush.c
index 04ba1e28f1..8829d1eeaf 100644
--- a/streaming/rrdpush.c
+++ b/streaming/rrdpush.c
@@ -133,6 +133,9 @@ static inline int should_send_chart_matching(RRDSET *st) {
if (unlikely(st->state->is_ar_chart))
return false;
+ if (rrdset_flag_check(st, RRDSET_FLAG_ANOMALY_DETECTION))
+ return ml_streaming_enabled();
+
if(unlikely(!rrdset_flag_check(st, RRDSET_FLAG_ENABLED))) {
rrdset_flag_clear(st, RRDSET_FLAG_UPSTREAM_SEND);
rrdset_flag_set(st, RRDSET_FLAG_UPSTREAM_IGNORE);