File tree 2 files changed +5
-5
lines changed
nixos/modules/services/monitoring/dd-agent
pkgs/tools/networking/dd-agent
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 23
23
etcfiles =
24
24
map ( i : { source = if builtins . hasAttr "config" i
25
25
then pkgs . writeText "${ i . name } .yaml" i . config
26
- else "${ pkgs . dd- agent} /agent/conf.d-system/${ i . name } .yaml" ;
26
+ else "${ cfg . agent } /agent/conf.d-system/${ i . name } .yaml" ;
27
27
target = "dd-agent/conf.d/${ i . name } .yaml" ;
28
28
}
29
29
) cfg . integrations ++
@@ -119,21 +119,21 @@ in {
119
119
path = [ cfg . agent pkgs . python pkgs . sysstat pkgs . procps ] ;
120
120
wantedBy = [ "multi-user.target" ] ;
121
121
serviceConfig = {
122
- ExecStart = "${ pkgs . dd- agent} /bin/dd-agent foreground" ;
122
+ ExecStart = "${ cfg . agent } /bin/dd-agent foreground" ;
123
123
User = "datadog" ;
124
124
Group = "datadog" ;
125
125
Restart = "always" ;
126
126
RestartSec = 2 ;
127
127
} ;
128
- restartTriggers = [ pkgs . dd- agent ddConf ] ++ etcSources ;
128
+ restartTriggers = [ cfg . agent ddConf ] ++ etcSources ;
129
129
} ;
130
130
131
131
systemd . services . dd-jmxfetch = lib . mkIf ( builtins . any ( i : i . name == "jmx" ) cfg . integrations ) {
132
132
description = "Datadog JMX Fetcher" ;
133
133
path = [ cfg . agent pkgs . python pkgs . sysstat pkgs . procps pkgs . jdk ] ;
134
134
wantedBy = [ "multi-user.target" ] ;
135
135
serviceConfig = {
136
- ExecStart = "${ pkgs . dd- agent} /bin/dd-jmxfetch" ;
136
+ ExecStart = "${ cfg . agent } /bin/dd-jmxfetch" ;
137
137
User = "datadog" ;
138
138
Group = "datadog" ;
139
139
Restart = "always" ;
Original file line number Diff line number Diff line change 5
5
# wrapper with their PYTHONPATH. This means overrideAttrs is not
6
6
# strong enough (it overrides too late), we need to call it
7
7
# beforehand.
8
- , extraBuildInputs ? [ pythonPackages . psutil ] } :
Has conversations. Original line has conversations.
8
+ , extraBuildInputs ? [ ] } :
9
9
let
10
10
inherit ( pythonPackages ) python ;
11
11
docker_1_10 = pythonPackages . buildPythonPackage rec {
You can’t perform that action at this time.