about summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/datadog-agent.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-08-09 15:33:22 +0200
committerVincent Ambo <mail@tazj.in>2018-08-09 17:25:23 +0200
commit924016f45f0fbe61b6a0db97ce9f2b41b8645dda (patch)
treea590648c12e44f79db4d399169bd66a60c869029 /nixos/modules/services/monitoring/datadog-agent.nix
parent5a07bb2fc7b743d3fea1c9e42a49f622a5ac5532 (diff)
downloadnixlib-924016f45f0fbe61b6a0db97ce9f2b41b8645dda.tar
nixlib-924016f45f0fbe61b6a0db97ce9f2b41b8645dda.tar.gz
nixlib-924016f45f0fbe61b6a0db97ce9f2b41b8645dda.tar.bz2
nixlib-924016f45f0fbe61b6a0db97ce9f2b41b8645dda.tar.lz
nixlib-924016f45f0fbe61b6a0db97ce9f2b41b8645dda.tar.xz
nixlib-924016f45f0fbe61b6a0db97ce9f2b41b8645dda.tar.zst
nixlib-924016f45f0fbe61b6a0db97ce9f2b41b8645dda.zip
dd-agent: Simplify inclusion of additional Datadog core integrations
Refactors the process used to build the Datadog core integrations to
be more easily extensible with integrations other than the ones built
and installed by default.

Documentation has been added in relevant parts of the module to
describe how the process works.

As a high-level overview:

The `datadog-integrations-core` attribute in the top-level package set
now accepts an extra parameter.

This parameter is an attribute set where each key is the name of a
Datadog integration as it appears in Datadog's integrations-core
repository[1], and the value is a function that receives the Python
package set and returns the required dependencies of this integration.

For example:

    datadog-integrations-core {
      ntp = (ps: [ ps.ntplib ]);
    };

This would build the default integrations and, additionally, the `ntp`
integration.

To support passing the modified Python environment to the
datadog-agent itself, the `python` key has been moved inside of the
derivation which means that it will be made overridable.

This relates to NixOS/nixpkgs#40399.

[1]: https://github.com/DataDog/integrations-core
Diffstat (limited to 'nixos/modules/services/monitoring/datadog-agent.nix')
0 files changed, 0 insertions, 0 deletions