summaryrefslogtreecommitdiffstats
path: root/ml/ml.cc
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 /ml/ml.cc
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 'ml/ml.cc')
-rw-r--r--ml/ml.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ml/ml.cc b/ml/ml.cc
index faf363ecbd..44e200a236 100644
--- a/ml/ml.cc
+++ b/ml/ml.cc
@@ -214,6 +214,10 @@ void ml_dimension_update_name(RRDSET *RS, RRDDIM *RD, const char *Name) {
D->setAnomalyRateRDName(Name);
}
+bool ml_streaming_enabled() {
+ return Cfg.StreamADCharts;
+}
+
#if defined(ENABLE_ML_TESTS)
#include "gtest/gtest.h"