services.datadog-agent.checks

NixOS option

Configuration for all Datadog checks. Keys of this attribute set will be used as the name of the check to create the appropriate configuration in conf.d/$check.d/conf.yaml. The configuration is converted into JSON from the plain Nix language configuration, meaning that you should write configuration adhering to Datadog’s documentation - but in Nix language. Refer to the implementation of this module (specifically the definition of defaultChecks) for an example. Note: The ‘disk’ and ‘network’ check are configured in separate options because they exist by default. Attempting to override their configuration here will have no effect.

type: attribute set of (attribute set)
Default
{ }
Example
{
  http_check = {
    init_config = null;
    instances = [
      {
        name = "some-service";
        tags = [
          "some-service"
        ];
        url = "http://localhost:1337/healthz";
      }
    ];
  };
}
declared in: nixos/modules/services/monitoring/datadog-agent.nixView source on NixOS/nixpkgs →