Created
June 9, 2018 06:17
-
-
Save SHyx0rmZ/ce023c53c74504116b392fc5e514cff2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/jobs/atc/spec b/jobs/atc/spec | |
| index 353b8efa..c4dcbcba 100644 | |
| --- a/jobs/atc/spec | |
| +++ b/jobs/atc/spec | |
| @@ -467,6 +467,22 @@ properties: | |
| Environment name to specify for errors emitted to Yeller. | |
| default: "" | |
| + datadog.agent_host: | |
| + description: | | |
| + If configured, detailed metrics will be emitted to the specified Datadog Agent's | |
| + dogstatsd server. | |
| + default: "" | |
| + | |
| + datadog.agent_port: | |
| + description: | | |
| + Port of the Datadog Agent's dogstatsd server to emit events to. | |
| + default: 8125 | |
| + | |
| + datadog.prefix: | |
| + description: | | |
| + An optional prefix for emitted Datadog events. | |
| + default: "" | |
| + | |
| riemann.host: | |
| description: | | |
| If configured, detailed metrics will be emitted to the specified Riemann | |
| diff --git a/jobs/atc/templates/atc_ctl.erb b/jobs/atc/templates/atc_ctl.erb | |
| index e40eaf39..c3e41bed 100644 | |
| --- a/jobs/atc/templates/atc_ctl.erb | |
| +++ b/jobs/atc/templates/atc_ctl.erb | |
| @@ -239,6 +239,13 @@ case $1 in | |
| <% if p("influxdb.insecure_skip_verify") %> \ | |
| --influxdb-insecure-skip-verify \ | |
| <% end %> \ | |
| + <% if_p("datadog.agent_host", "datadog.agent_port") do |host, port| %> \ | |
| + --datadog-agent-host <%= esc(host) %> \ | |
| + --datadog-agent-port <%= port.to_i %> \ | |
| + <% end %> \ | |
| + <% if_p("datadog.prefix") do |prefix| %> \ | |
| + --datadog-prefix <%= esc(prefix) %> \ | |
| + <% end %> \ | |
| <% if_p("riemann.host", "riemann.port") do |host, port| %> \ | |
| --riemann-host <%= esc(host) %> \ | |
| --riemann-port <%= port.to_i %> \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment