0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-24 05:13:08 +00:00
netdata_netdata/ml/Config.h
vkalintiris 9c834eff97
Update ML-related charts ()
* 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.
2022-04-04 14:22:18 +03:00

54 lines
996 B
C++

// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef ML_CONFIG_H
#define ML_CONFIG_H
#include "ml-private.h"
namespace ml {
class Config {
public:
bool EnableAnomalyDetection;
unsigned MaxTrainSamples;
unsigned MinTrainSamples;
unsigned TrainEvery;
unsigned DBEngineAnomalyRateEvery;
unsigned DiffN;
unsigned SmoothN;
unsigned LagN;
double RandomSamplingRatio;
unsigned MaxKMeansIters;
double DimensionAnomalyScoreThreshold;
double HostAnomalyRateThreshold;
double ADMinWindowSize;
double ADMaxWindowSize;
double ADIdleWindowSize;
double ADWindowRateThreshold;
double ADDimensionRateThreshold;
bool StreamADCharts;
std::string HostsToSkip;
SIMPLE_PATTERN *SP_HostsToSkip;
std::string ChartsToSkip;
SIMPLE_PATTERN *SP_ChartsToSkip;
std::string AnomalyDBPath;
std::vector<uint32_t> RandomNums;
void readMLConfig();
};
extern Config Cfg;
} // namespace ml
#endif /* ML_CONFIG_H */