summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorCasey Ransom <casey.ransom@lookout.com>2015-06-03 20:21:12 +0000
committerCasey Ransom <casey.ransom@lookout.com>2015-06-15 16:37:27 +0000
commitd3212beff9b4ff076d67e9334a83a967ab2baf6c (patch)
treec5268a876612a0e02b053e6f23a1670d77c8e4e1 /nixos
parent07c26ee6807b997a3d5412d3cb9a9784e19c38fc (diff)
downloadnixlib-d3212beff9b4ff076d67e9334a83a967ab2baf6c.tar
nixlib-d3212beff9b4ff076d67e9334a83a967ab2baf6c.tar.gz
nixlib-d3212beff9b4ff076d67e9334a83a967ab2baf6c.tar.bz2
nixlib-d3212beff9b4ff076d67e9334a83a967ab2baf6c.tar.lz
nixlib-d3212beff9b4ff076d67e9334a83a967ab2baf6c.tar.xz
nixlib-d3212beff9b4ff076d67e9334a83a967ab2baf6c.tar.zst
nixlib-d3212beff9b4ff076d67e9334a83a967ab2baf6c.zip
Allow custom tags to be set for datadog monitoring
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/monitoring/dd-agent.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/dd-agent.nix b/nixos/modules/services/monitoring/dd-agent.nix
index dc51a7c74866..3e90393a662d 100644
--- a/nixos/modules/services/monitoring/dd-agent.nix
+++ b/nixos/modules/services/monitoring/dd-agent.nix
@@ -23,6 +23,7 @@ let
     # proxy_password: password
 
     # tags: mytag0, mytag1
+    ${optionalString (cfg.tags != null ) "tags: ${concatStringsSep "," cfg.tags }"}
 
     # collect_ec2_tags: no
     # recent_point_threshold: 30
@@ -80,6 +81,13 @@ in {
       type = types.str;
     };
 
+    tags = mkOption {
+      description = "The tags to mark this Datadog agent";
+      example = [ "test" "service" ];
+      default = null;
+      type = types.nullOr (types.listOf types.str);
+    };
+
     hostname = mkOption {
       description = "The hostname to show in the Datadog dashboard (optional)";
       default = null;