about summary refs log tree commit diff
path: root/pkgs/tools/networking/dd-agent
diff options
context:
space:
mode:
authorArmeen Mahdian <mahdianarmeen@gmail.com>2022-04-26 08:43:24 -0500
committersohalt <sohalt@sohalt.net>2022-09-14 14:11:14 +0200
commitaa20ba5563ee1a731969c553ee3b255b5548de98 (patch)
treee282231ce2d7a7178bf3a33fa6105e1e53a3ebf9 /pkgs/tools/networking/dd-agent
parentf85a63e3c935e2e46438bd1162c621a99508c3cd (diff)
downloadnixlib-aa20ba5563ee1a731969c553ee3b255b5548de98.tar
nixlib-aa20ba5563ee1a731969c553ee3b255b5548de98.tar.gz
nixlib-aa20ba5563ee1a731969c553ee3b255b5548de98.tar.bz2
nixlib-aa20ba5563ee1a731969c553ee3b255b5548de98.tar.lz
nixlib-aa20ba5563ee1a731969c553ee3b255b5548de98.tar.xz
nixlib-aa20ba5563ee1a731969c553ee3b255b5548de98.tar.zst
nixlib-aa20ba5563ee1a731969c553ee3b255b5548de98.zip
dd-agent: remove
Diffstat (limited to 'pkgs/tools/networking/dd-agent')
-rw-r--r--pkgs/tools/networking/dd-agent/40103-iostat-fix.patch30
-rw-r--r--pkgs/tools/networking/dd-agent/5.nix108
2 files changed, 0 insertions, 138 deletions
diff --git a/pkgs/tools/networking/dd-agent/40103-iostat-fix.patch b/pkgs/tools/networking/dd-agent/40103-iostat-fix.patch
deleted file mode 100644
index 9897a76c957d..000000000000
--- a/pkgs/tools/networking/dd-agent/40103-iostat-fix.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-diff --git a/checks/system/unix.py b/checks/system/unix.py
-index c37af3c3..58c72626 100644
---- a/checks/system/unix.py
-+++ b/checks/system/unix.py
-@@ -39,7 +39,7 @@ class IO(Check):
-         self.value_re = re.compile(r'\d+\.\d+')
- 
-     def _parse_linux2(self, output):
--        recentStats = output.split('Device:')[2].split('\n')
-+        recentStats = output.split('Device')[2].split('\n')
-         header = recentStats[0]
-         headerNames = re.findall(self.header_re, header)
-         device = None
-@@ -123,14 +123,14 @@ class IO(Check):
- 
-                 #                 Linux 2.6.32-343-ec2 (ip-10-35-95-10)   12/11/2012      _x86_64_        (2 CPU)
-                 #
--                # Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await  svctm  %util
-+                # Device         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await  svctm  %util
-                 # sda1              0.00    17.61    0.26   32.63     4.23   201.04    12.48     0.16    4.81   0.53   1.73
-                 # sdb               0.00     2.68    0.19    3.84     5.79    26.07    15.82     0.02    4.93   0.22   0.09
-                 # sdg               0.00     0.13    2.29    3.84   100.53    30.61    42.78     0.05    8.41   0.88   0.54
-                 # sdf               0.00     0.13    2.30    3.84   100.54    30.61    42.78     0.06    9.12   0.90   0.55
-                 # md0               0.00     0.00    0.05    3.37     1.41    30.01    18.35     0.00    0.00   0.00   0.00
-                 #
--                # Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await  svctm  %util
-+                # Device         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await  svctm  %util
-                 # sda1              0.00     0.00    0.00   10.89     0.00    43.56     8.00     0.03    2.73   2.73   2.97
-                 # sdb               0.00     0.00    0.00    2.97     0.00    11.88     8.00     0.00    0.00   0.00   0.00
-                 # sdg               0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
diff --git a/pkgs/tools/networking/dd-agent/5.nix b/pkgs/tools/networking/dd-agent/5.nix
deleted file mode 100644
index 6feaec38f70a..000000000000
--- a/pkgs/tools/networking/dd-agent/5.nix
+++ /dev/null
@@ -1,108 +0,0 @@
-{ lib, stdenv, fetchFromGitHub, python2
-, unzip, makeWrapper }:
-let
-  python' = python2.override {
-    packageOverrides = self: super: {
-      docker = self.buildPythonPackage rec {
-        name = "docker-${version}";
-        version = "1.10.6";
-
-        src = fetchFromGitHub {
-          owner = "docker";
-          repo = "docker-py";
-          rev = version;
-          sha256 = "1awzpbrkh4fympqzddz5i3ml81b7f0i0nwkvbpmyxjjfqx6l0m4m";
-        };
-
-        propagatedBuildInputs = with self; [
-          six
-          requests
-          websocket-client
-          docker_pycreds
-          uptime
-        ] ++ lib.optionals (self.pythonOlder "3.7") [ backports_ssl_match_hostname ];
-
-        # due to flake8
-        doCheck = false;
-      };
-
-      pymongo = super.pymongo.overridePythonAttrs (oldAttrs: rec {
-        version = "2.9.5";
-        src = oldAttrs.src.override {
-          inherit version;
-          sha256 = "912516ac6a355d7624374a38337b8587afe3eb535c0a5456b3bd12df637a6e70";
-        };
-      });
-    };
-  };
-
-in stdenv.mkDerivation rec {
-  version = "5.11.2";
-  pname = "dd-agent";
-
-  src = fetchFromGitHub {
-    owner  = "datadog";
-    repo   = "dd-agent";
-    rev    = version;
-    sha256 = "1iqxvgpsqibqw3vk79158l2pnb6y4pjhjp2d6724lm5rpz4825lx";
-  };
-
-  patches = [ ./40103-iostat-fix.patch ];
-
-  nativeBuildInputs = [ unzip makeWrapper ];
-  buildInputs = with python'.pkgs; [
-    requests
-    psycopg2
-    psutil
-    ntplib
-    simplejson
-    pyyaml
-    pymongo
-    python-etcd
-    consul
-    docker
-  ];
-  propagatedBuildInputs = with python'.pkgs; [ python tornado ];
-
-  buildCommand = ''
-    mkdir -p $out/bin
-    cp -R $src $out/agent
-    chmod u+w -R $out
-    (cd $out/agent; patchPhase)
-    PYTHONPATH=$out/agent:$PYTHONPATH
-    ln -s $out/agent/agent.py $out/bin/dd-agent
-    ln -s $out/agent/dogstatsd.py $out/bin/dogstatsd
-    ln -s $out/agent/ddagent.py $out/bin/dd-forwarder
-
-    # Move out default conf.d so that /etc/dd-agent/conf.d is used
-    mv $out/agent/conf.d $out/agent/conf.d-system
-
-    cat > $out/bin/dd-jmxfetch <<EOF
-    #!/usr/bin/env bash
-    exec ${python'.interpreter} $out/agent/jmxfetch.py $@
-    EOF
-    chmod a+x $out/bin/dd-jmxfetch
-
-    wrapProgram $out/bin/dd-forwarder \
-      --prefix PYTHONPATH : $PYTHONPATH
-    wrapProgram $out/bin/dd-agent \
-      --prefix PYTHONPATH : $PYTHONPATH
-    wrapProgram $out/bin/dogstatsd \
-      --prefix PYTHONPATH : $PYTHONPATH
-    wrapProgram $out/bin/dd-jmxfetch \
-      --prefix PYTHONPATH : $PYTHONPATH
-
-    patchShebangs $out
-  '';
-
-  meta = {
-    description = ''
-      Event collector for the DataDog analysis service
-      -- v5 Python implementation
-    '';
-    homepage    = "https://www.datadoghq.com";
-    license     = lib.licenses.bsd3;
-    platforms   = lib.platforms.all;
-    maintainers = with lib.maintainers; [ thoughtpolice domenkozar ];
-  };
-}