@cryptotaxi247 / netdata-1 / commits / 96a6492d9

Update node info payload (#18240)

Fetch full set of agent capabilities

Stelios Fragkakis committed Jul 30, 2024 at 17:58 UTC 96a6492d924e96529a56692f2f355ba8b4d951f5
1 file changed +1 -7
src/database/sqlite/sqlite_aclk_node.c
+1 -7
@@ -90,13 +90,7 @@ static void build_node_info(RRDHOST *host)
90 node_info.data.custom_info = config_get(CONFIG_SECTION_WEB, "custom dashboard_info.js", "");
91 node_info.data.machine_guid = host->machine_guid;
92
93 - struct capability node_caps[] = {
94 - {.name = "ml", .version = host->system_info->ml_capable, .enabled = host->system_info->ml_enabled},
95 - {.name = "mc",
96 - .version = host->system_info->mc_version ? host->system_info->mc_version : 0,
97 - .enabled = host->system_info->mc_version ? 1 : 0},
98 - {.name = NULL, .version = 0, .enabled = 0}};
99 - node_info.node_capabilities = node_caps;
93 + node_info.node_capabilities = (struct capability *)aclk_get_agent_capas();
94
95 node_info.data.ml_info.ml_capable = host->system_info->ml_capable;
96 node_info.data.ml_info.ml_enabled = host->system_info->ml_enabled;