diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-08-01 21:47:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-01 21:47:14 +0300 |
commit | ccf0f6b6f48f12a30c45dd31c2d4c279e660e304 (patch) | |
tree | 5f2ca726e2b30378c637d7652439688a0937ad08 /daemon | |
parent | 8db672d4e685d49853c61ae988d7b983ef1fa5d9 (diff) |
/api/v1/weights endpoint (#13449)
* /api/v1/weights endpoints
* high resolution anomaly rate in parallel with queries; points and options in /api/v1/weights reflect the truth
* context printing
* merged metric_correlations with weights API; added parameter tier to select the tier to run the query; weight api now returns points per tier; added swagger info about weights api
* moved metric_correlations files to web/api/queries as weights
* added contexts filtering; renamed correlated_dimensions; weights API is always enabled; code cleanup
* allow returning zero results
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/common.h | 3 | ||||
-rw-r--r-- | daemon/main.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/daemon/common.h b/daemon/common.h index da96e2ac1c..2a45ffe70e 100644 --- a/daemon/common.h +++ b/daemon/common.h @@ -84,9 +84,6 @@ #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 f60cd34e2b..a2317c1b72 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -713,7 +713,9 @@ static void get_netdata_configured_variables() { // metric correlations enable_metric_correlations = config_get_boolean(CONFIG_SECTION_GLOBAL, "enable metric correlations", enable_metric_correlations); - default_metric_correlations_method = mc_string_to_method(config_get(CONFIG_SECTION_GLOBAL, "metric correlations method", mc_method_to_string(default_metric_correlations_method))); + default_metric_correlations_method = weights_string_to_method(config_get( + CONFIG_SECTION_GLOBAL, "metric correlations method", + weights_method_to_string(default_metric_correlations_method))); // -------------------------------------------------------------------- |