Skip to content

Commit

Permalink
update buildinfo (netdata#19506)
Browse files Browse the repository at this point in the history
* update buildinfo for systemd-journal and windows pluginsd

* add network-viewer plugin
  • Loading branch information
ktsaou authored Jan 28, 2025
1 parent 86bb893 commit 42a45b3
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packaging/cmake/config.cmake.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@
#cmakedefine ENABLE_PLUGIN_CUPS
#cmakedefine ENABLE_PLUGIN_CGROUP_NETWORK
#cmakedefine ENABLE_PLUGIN_EBPF
#cmakedefine ENABLE_PLUGIN_SYSTEMD_JOURNAL
#cmakedefine ENABLE_PLUGIN_NETWORK_VIEWER

// enabled sentry

Expand Down
44 changes: 44 additions & 0 deletions src/daemon/buildinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ typedef enum __attribute__((packed)) {
BIB_PLUGIN_LINUX_DISKSPACE,
BIB_PLUGIN_FREEBSD,
BIB_PLUGIN_MACOS,
BIB_PLUGIN_WINDOWS,
BIB_PLUGIN_STATSD,
BIB_PLUGIN_TIMEX,
BIB_PLUGIN_IDLEJITTER,
Expand All @@ -94,6 +95,9 @@ typedef enum __attribute__((packed)) {
BIB_PLUGIN_CUPS,
BIB_PLUGIN_EBPF,
BIB_PLUGIN_FREEIPMI,
BIB_PLUGIN_NETWORK_VIEWER,
BIB_PLUGIN_SYSTEMD_JOURNAL,
BIB_PLUGIN_WINDOWS_EVENTS,
BIB_PLUGIN_NFACCT,
BIB_PLUGIN_PERF,
BIB_PLUGIN_SLABINFO,
Expand Down Expand Up @@ -780,6 +784,14 @@ static struct {
.json = "macos",
.value = NULL,
},
[BIB_PLUGIN_WINDOWS] = {
.category = BIC_PLUGINS,
.type = BIT_BOOLEAN,
.analytics = NULL,
.print = "windows (monitor Windows systems)",
.json = "windows",
.value = NULL,
},
[BIB_PLUGIN_STATSD] = {
.category = BIC_PLUGINS,
.type = BIT_BOOLEAN,
Expand Down Expand Up @@ -844,6 +856,30 @@ static struct {
.json = "freeipmi",
.value = NULL,
},
[BIB_PLUGIN_NETWORK_VIEWER] = {
.category = BIC_PLUGINS,
.type = BIT_BOOLEAN,
.analytics = "NETWORK-VIEWER",
.print = "network-viewer (monitor TCP/UDP IPv4/6 sockets)",
.json = "network-viewer",
.value = NULL,
},
[BIB_PLUGIN_SYSTEMD_JOURNAL] = {
.category = BIC_PLUGINS,
.type = BIT_BOOLEAN,
.analytics = "SYSTEMD-JOURNAL",
.print = "systemd-journal (monitor journal logs)",
.json = "systemd-journal",
.value = NULL,
},
[BIB_PLUGIN_WINDOWS_EVENTS] = {
.category = BIC_PLUGINS,
.type = BIT_BOOLEAN,
.analytics = "WINDOWS-EVENTS",
.print = "windows-events (monitor Windows events)",
.json = "windows-events",
.value = NULL,
},
[BIB_PLUGIN_NFACCT] = {
.category = BIC_PLUGINS,
.type = BIT_BOOLEAN,
Expand Down Expand Up @@ -1069,6 +1105,8 @@ __attribute__((constructor)) void initialize_build_info(void) {
build_info_set_status(BIB_PLUGIN_MACOS, true);
#endif
#ifdef OS_WINDOWS
build_info_set_status(BIB_PLUGIN_WINDOWS, true);
build_info_set_status(BIB_PLUGIN_WINDOWS_EVENTS, true);
build_info_set_status(BIB_FEATURE_BUILT_FOR, true);
#if defined(__CYGWIN__) && defined(__MSYS__)
build_info_set_value(BIB_FEATURE_BUILT_FOR, "Windows (MSYS)");
Expand Down Expand Up @@ -1210,6 +1248,12 @@ __attribute__((constructor)) void initialize_build_info(void) {
#ifdef ENABLE_PLUGIN_FREEIPMI
build_info_set_status(BIB_PLUGIN_FREEIPMI, true);
#endif
#ifdef ENABLE_PLUGIN_SYSTEMD_JOURNAL
build_info_set_status(BIB_PLUGIN_SYSTEMD_JOURNAL, true);
#endif
#ifdef ENABLE_PLUGIN_NETWORK_VIEWER
build_info_set_status(BIB_PLUGIN_NETWORK_VIEWER, true);
#endif
#ifdef ENABLE_PLUGIN_NFACCT
build_info_set_status(BIB_PLUGIN_NFACCT, true);
#endif
Expand Down

0 comments on commit 42a45b3

Please sign in to comment.