From 8c4ec38841e7760cfe01a16b9b478bc0e8ce8cd2 Mon Sep 17 00:00:00 2001 From: Ryan Horiguchi Date: Tue, 6 May 2025 22:13:43 +0200 Subject: [PATCH] netdata: 2.4.0 -> 2.5.1 --- nixos/tests/netdata.nix | 8 ++++---- pkgs/tools/system/netdata/default.nix | 18 ++++++++---------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/nixos/tests/netdata.nix b/nixos/tests/netdata.nix index 97a033f831a1..77c34e70e7d0 100644 --- a/nixos/tests/netdata.nix +++ b/nixos/tests/netdata.nix @@ -33,12 +33,12 @@ import ./make-test-python.nix ( }; testScript = '' - start_all() + start_all() - netdata.wait_for_unit("netdata.service") + netdata.wait_for_unit("netdata.service") - # wait for the service to listen before sending a request - netdata.wait_for_open_port(19999) + # wait for the service to listen before sending a request + netdata.wait_for_open_port(19999) # check if the netdata main page loads. netdata.succeed("curl --fail http://127.0.0.1:19999") diff --git a/pkgs/tools/system/netdata/default.nix b/pkgs/tools/system/netdata/default.nix index dc2f5a516949..1c298715b44a 100644 --- a/pkgs/tools/system/netdata/default.nix +++ b/pkgs/tools/system/netdata/default.nix @@ -44,7 +44,7 @@ withConnPrometheus ? false, withConnPubSub ? false, withCups ? false, - withDBengine ? false, + withDBengine ? true, withDebug ? false, withEbpf ? false, withIpmi ? (stdenv.hostPlatform.isLinux), @@ -57,14 +57,14 @@ withML ? true, }: stdenv.mkDerivation (finalAttrs: { - version = "2.4.0"; + version = "2.5.1"; pname = "netdata"; src = fetchFromGitHub { owner = "netdata"; repo = "netdata"; rev = "v${finalAttrs.version}"; - hash = "sha256-egHsWmhnrl8D59gr7uD5hBnleCOI8gVEBGwdO5GSnOg="; + hash = "sha256-77k93mg7iED53k38jATbS2Y1N0eLKhjo0RYyinApkuE="; fetchSubmodules = true; }; @@ -133,10 +133,10 @@ stdenv.mkDerivation (finalAttrs: { ++ lib.optional withCloudUi ( replaceVars ./dashboard-v3-add.patch { # FIXME web.archive.org link can be replace once https://github.com/netdata/netdata-cloud/issues/1081 resolved - # last update 03/16/2025 23:56:24 + # last update 04/01/2025 04:45:14 dashboardTarball = fetchurl { - url = "https://web.archive.org/web/20250316235624/https://app.netdata.cloud/agent.tar.gz"; - hash = "sha256-Vtw+CbBgqGRenkis0ZR2/TLsoM83NjNA6mbndb95EK8="; + url = "https://web.archive.org/web/20250401044514/https://app.netdata.cloud/agent.tar.gz"; + hash = "sha256-NtmM1I3VrvFErMoBl+w63Nt0DzOOsaB98cxE/axm8mE="; }; } ); @@ -220,9 +220,7 @@ stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ "-DWEB_DIR=share/netdata/web" (lib.cmakeBool "ENABLE_DASHBOARD" withCloudUi) - # FIXME uncomment when https://github.com/netdata/netdata/issues/19901#issuecomment-2819701451 resolved - (lib.cmakeBool "ENABLE_DBENGINE" true) - # (lib.cmakeBool "ENABLE_DBENGINE" withDBengine) + (lib.cmakeBool "ENABLE_DBENGINE" withDBengine) (lib.cmakeBool "ENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE" withConnPrometheus) (lib.cmakeBool "ENABLE_JEMALLOC" true) (lib.cmakeBool "ENABLE_LIBBACKTRACE" withLibbacktrace) @@ -260,7 +258,7 @@ stdenv.mkDerivation (finalAttrs: { sourceRoot = "${finalAttrs.src.name}/src/go/plugin/go.d"; - vendorHash = "sha256-PgQs3+++iD9Lg8psTBVzF4b+kGJzhV5yNQBkw/+Dqks="; + vendorHash = "sha256-N03IGTtF78PCo4kf0Sdtzv6f8z47ohg8g3YIXtINRjU="; doCheck = false; proxyVendor = true;