summaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authorvkalintiris <vasilis@netdata.cloud>2023-12-18 21:52:17 +0200
committerGitHub <noreply@github.com>2023-12-18 21:52:17 +0200
commitf56ba4f8d66aea1c783b73fe85a24ade74b5b290 (patch)
treee64c4ada3b9209b4f1c462228e4066303c79e619 /collectors
parent1402ab96ea10b56753f4a326db25fe9a333d1fb9 (diff)
Remove includes outside of libnetdata. (#16607)
* Remove includes outside of libnetdata. libnetdata ended up using the header daemon/main.h. This commit tries to resolve this issue by: - Moving the thread tags under libnetdata/threads/threads.h - Dropping the definition of `send_analytics` from libnetdata/ and, thus, the requirement for an extra dummy function. - Adding a new analytics_statistic_send() function. - Changing netdata_cleanup_and_exit() to accept the raw parts of an analytics statistic. After this whole ordeal, only the declaration of netdata_cleanup_and_exit() is required from libnetdata/ * Fix function hidden under NETDATA_INTERNAL_CHECKS * Fix field access. Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> * s/action_data/data/g * Fix analytics statistics for START/CRASH. * Pass all args to netdata_cleanup_and_exit in FreeBSD plugin --------- Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
Diffstat (limited to 'collectors')
-rw-r--r--collectors/freebsd.plugin/plugin_freebsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/freebsd.plugin/plugin_freebsd.c b/collectors/freebsd.plugin/plugin_freebsd.c
index 976fe26fbe..6b77dcf3a2 100644
--- a/collectors/freebsd.plugin/plugin_freebsd.c
+++ b/collectors/freebsd.plugin/plugin_freebsd.c
@@ -91,7 +91,7 @@ void *freebsd_main(void *ptr)
// initialize FreeBSD plugin
if (freebsd_plugin_init())
- netdata_cleanup_and_exit(1);
+ netdata_cleanup_and_exit(1, NULL, NULL, NULL);
// check the enabled status for each module
int i;