diff options
author | lethalman <lucabru@src.gnome.org> | 2015-06-15 18:43:14 +0200 |
---|---|---|
committer | lethalman <lucabru@src.gnome.org> | 2015-06-15 18:43:14 +0200 |
commit | e08bbc0bc14a73db0f344e5a1af74dbe1dbd3a3b (patch) | |
tree | b6580f5584750f1c566428cdcee6f03fedbe8b4f /nixos | |
parent | 82fe884dc05dc6ef3f01ea2f9e429f9d2da533ef (diff) | |
parent | d3212beff9b4ff076d67e9334a83a967ab2baf6c (diff) | |
download | nixlib-e08bbc0bc14a73db0f344e5a1af74dbe1dbd3a3b.tar nixlib-e08bbc0bc14a73db0f344e5a1af74dbe1dbd3a3b.tar.gz nixlib-e08bbc0bc14a73db0f344e5a1af74dbe1dbd3a3b.tar.bz2 nixlib-e08bbc0bc14a73db0f344e5a1af74dbe1dbd3a3b.tar.lz nixlib-e08bbc0bc14a73db0f344e5a1af74dbe1dbd3a3b.tar.xz nixlib-e08bbc0bc14a73db0f344e5a1af74dbe1dbd3a3b.tar.zst nixlib-e08bbc0bc14a73db0f344e5a1af74dbe1dbd3a3b.zip |
Merge pull request #8159 from cransom/dd-agent
Allow custom tags to be set for datadog monitoring
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/monitoring/dd-agent.nix | 8 |
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; |