Skip to content

Commit

Permalink
netdata: update to the latest version
Browse files Browse the repository at this point in the history
Update netdata to the latest version.

Signed-off-by: Tiago Gaspar <[email protected]>
  • Loading branch information
tiagogaspar8 committed Nov 16, 2023
1 parent b76fee5 commit 3d836f5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1,471 deletions.
46 changes: 22 additions & 24 deletions admin/netdata/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=netdata
PKG_VERSION:=1.33.1
PKG_RELEASE:=4
PKG_VERSION:=1.43.2
PKG_RELEASE:=1

PKG_MAINTAINER:=Josef Schlehofer <[email protected]>, Daniel Engberg <[email protected]>
PKG_LICENSE:=GPL-3.0-or-later
Expand All @@ -18,7 +18,7 @@ PKG_CPE_ID:=cpe:/a:my-netdata:netdata

PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/netdata/netdata/releases/download/v$(PKG_VERSION)
PKG_HASH:=20ba8695d87187787b27128ac3aab9b09aa29ca6b508c48542e0f7d50ec9322b
PKG_HASH:=d4a7ea2717ac7c8f04865f18e13aeaa0a36784156059f1b5ced75a44f74afc4d
PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)

PKG_INSTALL:=1
Expand All @@ -31,7 +31,7 @@ include $(INCLUDE_DIR)/package.mk
define Package/netdata
SECTION:=admin
CATEGORY:=Administration
DEPENDS:=+zlib +libuuid +libuv +libmnl +libjson-c
DEPENDS:=+zlib +libuuid +libuv +libmnl +libjson-c +libyaml +libstdcpp +libatomic
TITLE:=Real-time performance monitoring tool
URL:=https://www.netdata.cloud/
endef
Expand All @@ -47,23 +47,20 @@ endef
TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O3

CONFIGURE_ARGS += \
--with-zlib \
--with-math \
--disable-x86-sse \
--enable-lto \
--disable-ebpf \
--without-libcap \
--disable-https \
--disable-cloud \
--disable-dbengine \
--disable-compression \
--disable-plugin-nfacct \
--disable-plugin-freeipmi \
--disable-ebpf \
--disable-h2o \
--disable-ml \
--disable-openssl \
--disable-plugin-cups \
--disable-plugin-freeipmi \
--disable-plugin-nfacct \
--disable-plugin-xenstat \
--disable-backend-prometheus-remote-write \
--disable-unit-tests \
--disable-ml \
--disable-cloud
--disable-x86-sse \

define Build/Configure
$(SED) 's/m4_esyscmd(\[git describe .*\])/$(PKG_VERSION)/' $(PKG_BUILD_DIR)/configure.ac
Expand All @@ -75,17 +72,20 @@ define Package/netdata/conffiles
endef

define Package/netdata/install
$(INSTALL_DIR) $(1)/etc/netdata/custom-plugins.d
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/netdata $(1)/usr/sbin

$(INSTALL_DIR) $(1)/etc/netdata
$(CP) $(PKG_INSTALL_DIR)/etc/netdata $(1)/etc
$(CP) ./files/netdata.conf $(1)/etc/netdata
$(INSTALL_DATA) ./files/netdata.conf $(1)/etc/netdata
touch $(1)/etc/netdata/.opt-out-from-anonymous-statistics

$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/netdata.init $(1)/etc/init.d/netdata

$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/netdata $(1)/usr/lib
$(CP) $(1)/usr/lib/netdata/conf.d/fping.conf $(1)/etc
$(CP) $(1)/usr/lib/netdata/conf.d/health_alarm_notify.conf $(1)/etc
$(CP) $(1)/usr/lib/netdata/plugins.d/tc-qos-helper.sh $(1)/etc
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/netdata $(1)/usr/sbin

$(INSTALL_DIR) $(1)/usr/share/netdata
$(CP) $(PKG_INSTALL_DIR)/usr/share/netdata $(1)/usr/share
rm $(1)/usr/share/netdata/web/demo*html
Expand All @@ -96,8 +96,6 @@ define Package/netdata/install
rm $(1)/usr/share/netdata/web/images/*.gif
rm $(1)/usr/share/netdata/web/images/*.ico
rm -rf $(1)/usr/share/netdata/web/old
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/netdata.init $(1)/etc/init.d/netdata
endef

$(eval $(call BuildPackage,netdata))
18 changes: 8 additions & 10 deletions admin/netdata/files/netdata.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,25 @@
#

[global]
update every = 2
run as user = root

[db]
memory deduplication (ksm) = no

[logs]
debug log = syslog
error log = syslog
access log = none
run as user = root

[web]
allow connections from = localhost 10.* 192.168.* 172.16.* 172.17.* 172.18.* 172.19.* 172.20.* 172.21.* 172.22.* 172.23.* 172.24.* 172.25.* 172.26.* 172.27.* 172.28.* 172.29.* 172.30.* 172.31.*
allow dashboard from = localhost 10.* 192.168.* 172.16.* 172.17.* 172.18.* 172.19.* 172.20.* 172.21.* 172.22.* 172.23.* 172.24.* 172.25.* 172.26.* 172.27.* 172.28.* 172.29.* 172.30.* 172.31.*
allow connections from = fd* localhost 10.* 192.168.* 172.16.* 172.17.* 172.18.* 172.19.* 172.20.* 172.21.* 172.22.* 172.23.* 172.24.* 172.25.* 172.26.* 172.27.* 172.28.* 172.29.* 172.30.* 172.31.*
allow dashboard from = fd* localhost 10.* 192.168.* 172.16.* 172.17.* 172.18.* 172.19.* 172.20.* 172.21.* 172.22.* 172.23.* 172.24.* 172.25.* 172.26.* 172.27.* 172.28.* 172.29.* 172.30.* 172.31.*

[plugins]
cgroups = no
apps = no
cgroups = no
charts.d = no
fping = no
node.d = no
python.d = no

[health]
enabled = no

[plugin:proc:ipc]
shared memory totals = no
1,437 changes: 0 additions & 1,437 deletions admin/netdata/patches/005-freebsd.patch

This file was deleted.

0 comments on commit 3d836f5

Please sign in to comment.