diff options
author | Guillaume DELVIT <guiguid@free.fr> | 2023-10-29 21:44:49 +0100 |
---|---|---|
committer | Guillaume D <guiguid@free.fr> | 2023-10-30 18:37:50 +0100 |
commit | 7d517bfb76d71fa662228f99fae536f86d602b38 (patch) | |
tree | 150af735aa855b20036dab9059dc11c94d853577 /pkgs/tools/system/netdata | |
parent | 707696ccd6a493c062dd14b60cea1d1ab208fac0 (diff) | |
download | nixlib-7d517bfb76d71fa662228f99fae536f86d602b38.tar nixlib-7d517bfb76d71fa662228f99fae536f86d602b38.tar.gz nixlib-7d517bfb76d71fa662228f99fae536f86d602b38.tar.bz2 nixlib-7d517bfb76d71fa662228f99fae536f86d602b38.tar.lz nixlib-7d517bfb76d71fa662228f99fae536f86d602b38.tar.xz nixlib-7d517bfb76d71fa662228f99fae536f86d602b38.tar.zst nixlib-7d517bfb76d71fa662228f99fae536f86d602b38.zip |
netdata: add systemd-journal plugin
https://learn.netdata.cloud/docs/logs/systemd-journal/
Diffstat (limited to 'pkgs/tools/system/netdata')
-rw-r--r-- | pkgs/tools/system/netdata/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/tools/system/netdata/default.nix b/pkgs/tools/system/netdata/default.nix index 3c48c53bf90c..44230181dce6 100644 --- a/pkgs/tools/system/netdata/default.nix +++ b/pkgs/tools/system/netdata/default.nix @@ -13,6 +13,7 @@ , withConnPubSub ? false, google-cloud-cpp, grpc , withConnPrometheus ? false, snappy , withSsl ? true, openssl +, withSystemdJournal ? (!stdenv.isDarwin), systemd , withDebug ? false }: @@ -52,6 +53,7 @@ stdenv.mkDerivation rec { ++ lib.optionals withConnPubSub [ google-cloud-cpp grpc ] ++ lib.optionals withConnPrometheus [ snappy ] ++ lib.optionals (withCloud || withConnPrometheus) [ protobuf ] + ++ lib.optionals withSystemdJournal [ systemd ] ++ lib.optionals withSsl [ openssl ]; patches = [ @@ -93,6 +95,10 @@ stdenv.mkDerivation rec { $out/libexec/netdata/plugins.d/perf.plugin.org mv $out/libexec/netdata/plugins.d/slabinfo.plugin \ $out/libexec/netdata/plugins.d/slabinfo.plugin.org + ${lib.optionalString withSystemdJournal '' + mv $out/libexec/netdata/plugins.d/systemd-journal.plugin \ + $out/libexec/netdata/plugins.d/systemd-journal.plugin.org + ''} ${lib.optionalString withIpmi '' mv $out/libexec/netdata/plugins.d/freeipmi.plugin \ $out/libexec/netdata/plugins.d/freeipmi.plugin.org @@ -109,6 +115,8 @@ stdenv.mkDerivation rec { "--sysconfdir=/etc" "--disable-ebpf" "--with-jemalloc=${jemalloc}" + ] ++ lib.optionals (withSystemdJournal) [ + "--enable-plugin-systemd-journal" ] ++ lib.optionals (!withDBengine) [ "--disable-dbengine" ] ++ lib.optionals (!withCloud) [ |