Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monitor setting new_host_delay never takes effect #100

Closed
christopherriley opened this issue Sep 26, 2018 · 1 comment
Closed

monitor setting new_host_delay never takes effect #100

christopherriley opened this issue Sep 26, 2018 · 1 comment

Comments

@christopherriley
Copy link

christopherriley commented Sep 26, 2018

terraform 0.11.8
datadog provider 1.3.0

datadog monitor will never be created/updated with non-default value for new_host_delay - new_host_delay is ALWAYS set to the default value of 300

Terraform Version

xxx:/conf/site# terraform -v
Terraform v0.11.8
+ provider.aws v1.35.0
+ provider.datadog v1.3.0

Affected Resource(s)

  • datadog_monitor

Terraform Configuration Files

resource "datadog_monitor" "mailgun_endpoint_health_check" {
  name = "Mailgun Endpoint Health Check (${var.site})"
  type = "service check"
  tags = "${concat("${local.monitor_tags}", "${list("service:mailgun")}")}"

  query = <<QUERY
  "supernova.health_check.mailgun.endpoint".over("site:${var.site}").by("site","endpoint","orgid").last(4).count_by_status()
QUERY

  message = "the_message"
  escalation_message = "the_escalation_message"

  thresholds {
    warning  = "${var.mailgun_warn_threshold}"
    critical = "${var.mailgun_critical_threshold}"
    ok       = "${var.mailgun_ok_threshold}"
  }

  include_tags      = true
  locked            = false
  notify_audit      = false
  notify_no_data    = true
  no_data_timeframe = 45
  renotify_interval = 30
  timeout_h         = 0
  new_host_delay = 0

Expected Behavior

datadog monitor should be created/updated with new_host_delay = 0

Actual Behavior

datadog monitor is always created/updated with new_host_delay = 300 (300 being the default)

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
  2. terraform apply
  3. terraform apply
    ... etc

References

@masci
Copy link
Contributor

masci commented Oct 1, 2018

Fixed in #101

@masci masci closed this as completed Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants