Browse Source

nixos/datadog: allow specifying dd_url (#97775)

Useful when you want to point datadog to another endpoint, either
because you need a proxy to send out data, or because you use their EU
endpoint.

(cherry picked from commit 2865a8867f)
wip-nanopi-m4v2
Florian Klink 6 years ago
committed by zimbatm
parent
commit
778cd18c87
No known key found for this signature in database GPG Key ID: 71BAF6D40C1D63D7
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      nixos/modules/services/monitoring/datadog-agent.nix

+ 13
- 1
nixos/modules/services/monitoring/datadog-agent.nix View File

@@ -6,7 +6,7 @@ let
cfg = config.services.datadog-agent;

ddConf = {
dd_url = "https://app.datadoghq.com";
dd_url = cfg.ddUrl;
skip_ssl_validation = false;
confd_path = "/etc/datadog-agent/conf.d";
additional_checksd = "/etc/datadog-agent/checks.d";
@@ -77,6 +77,18 @@ in {
type = types.path;
};

ddUrl = mkOption {
description = ''
Custom dd_url to configure the agent with.
Useful when you want to point datadog to another endpoint, either
because you need a proxy to send out data, or because you use their EU
endpoint.
'';
default = "https://app.datadoghq.com";
example = "https://app.datadoghq.eu";
type = types.str;
};

tags = mkOption {
description = "The tags to mark this Datadog agent";
example = [ "test" "service" ];


Loading…
Cancel
Save