mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
Merge pull request #242116 from flurie/fix-datadog-agent
datadog-agent: 7.38.1 -> 7.45.1
This commit is contained in:
commit
d8001aae54
2 changed files with 17 additions and 5 deletions
|
@ -153,6 +153,18 @@ in {
|
|||
type = types.bool;
|
||||
};
|
||||
|
||||
processAgentPackage = mkOption {
|
||||
default = pkgs.datadog-process-agent;
|
||||
defaultText = literalExpression "pkgs.datadog-process-agent";
|
||||
description = lib.mdDoc ''
|
||||
Which DataDog v7 agent package to use. Note that the provided
|
||||
package is expected to have an overridable `pythonPackages`-attribute
|
||||
which configures the Python environment with the Datadog
|
||||
checks.
|
||||
'';
|
||||
type = types.package;
|
||||
};
|
||||
|
||||
enableTraceAgent = mkOption {
|
||||
description = lib.mdDoc ''
|
||||
Whether to enable the trace agent.
|
||||
|
@ -270,7 +282,7 @@ in {
|
|||
path = [ ];
|
||||
script = ''
|
||||
export DD_API_KEY=$(head -n 1 ${cfg.apiKeyFile})
|
||||
${pkgs.datadog-process-agent}/bin/process-agent --config /etc/datadog-agent/datadog.yaml
|
||||
${cfg.processAgentPackage}/bin/process-agent --config /etc/datadog-agent/datadog.yaml
|
||||
'';
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue