mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
Merge pull request #8159 from cransom/dd-agent
Allow custom tags to be set for datadog monitoring
This commit is contained in:
commit
e08bbc0bc1
@ -23,6 +23,7 @@ let
|
|||||||
# proxy_password: password
|
# proxy_password: password
|
||||||
|
|
||||||
# tags: mytag0, mytag1
|
# tags: mytag0, mytag1
|
||||||
|
${optionalString (cfg.tags != null ) "tags: ${concatStringsSep "," cfg.tags }"}
|
||||||
|
|
||||||
# collect_ec2_tags: no
|
# collect_ec2_tags: no
|
||||||
# recent_point_threshold: 30
|
# recent_point_threshold: 30
|
||||||
@ -80,6 +81,13 @@ in {
|
|||||||
type = types.str;
|
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 {
|
hostname = mkOption {
|
||||||
description = "The hostname to show in the Datadog dashboard (optional)";
|
description = "The hostname to show in the Datadog dashboard (optional)";
|
||||||
default = null;
|
default = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user