diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-25 17:33:56 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-25 17:34:10 +0000 |
commit | 83ba6762cc43d9db581b979bb5e3445669e46cc2 (patch) | |
tree | 2e69833b43f791ed253a7a20318b767ebe56cdb8 /src/aclk/aclk_capas.c | |
parent | Releasing debian version 1.47.5-1. (diff) | |
download | netdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.tar.xz netdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.zip |
Merging upstream version 2.0.3+dfsg (Closes: #923993, #1042533, #1045145).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/aclk/aclk_capas.c')
-rw-r--r-- | src/aclk/aclk_capas.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/aclk/aclk_capas.c b/src/aclk/aclk_capas.c index 0f7870fdd..dee6bf0c5 100644 --- a/src/aclk/aclk_capas.c +++ b/src/aclk/aclk_capas.c @@ -4,7 +4,11 @@ #include "ml/ml.h" -#define HTTP_API_V2_VERSION 6 +#define HTTP_API_V2_VERSION 7 + +size_t aclk_get_http_api_version(void) { + return HTTP_API_V2_VERSION; +} const struct capability *aclk_get_agent_capas() { @@ -24,8 +28,8 @@ const struct capability *aclk_get_agent_capas() agent_capabilities[2].version = ml_capable() ? 1 : 0; agent_capabilities[2].enabled = ml_enabled(localhost); - agent_capabilities[3].version = enable_metric_correlations ? metric_correlations_version : 0; - agent_capabilities[3].enabled = enable_metric_correlations; + agent_capabilities[3].version = metric_correlations_version; + agent_capabilities[3].enabled = 1; agent_capabilities[7].enabled = localhost->health.health_enabled; @@ -40,9 +44,7 @@ struct capability *aclk_get_node_instance_capas(RRDHOST *host) struct capability ni_caps[] = { { .name = "proto", .version = 1, .enabled = 1 }, { .name = "ml", .version = ml_capable(), .enabled = ml_enabled(host) }, - { .name = "mc", - .version = enable_metric_correlations ? metric_correlations_version : 0, - .enabled = enable_metric_correlations }, + { .name = "mc", .version = metric_correlations_version, .enabled = 1 }, { .name = "ctx", .version = 1, .enabled = 1 }, { .name = "funcs", .version = functions ? 1 : 0, .enabled = functions ? 1 : 0 }, { .name = "http_api_v2", .version = HTTP_API_V2_VERSION, .enabled = 1 }, |