Coder Social home page Coder Social logo

Comments (2)

masci avatar masci commented on June 30, 2024 1

Allowing self references is a feature that should be added upstream.
In the meantime, you can use this workaround

locals {
  disk_critical = 0.8
}

resource "datadog_monitor" "disk" {
  name                = "Disk"
  type                = "metric alert"
  query               = "avg(last_5m):avg:system.disk.in_use{device:/dev/ad1s1} > ${local.disk_critical}"
  message             = "test"

  thresholds {
    warning           = 0.1
    critical          = "${local.disk_critical}"
  }
}

Closing this.

from terraform-provider-datadog.

coretemp avatar coretemp commented on June 30, 2024

Can this be reopened?

I want to link to the dashboard id in the message, but that is not allowed.

Error: datadog_monitor.mine: datadog_monitor.mine: self reference not allowed: "datadog_monitor.mine.id"

Why should it have to be added upstream? It's just a matter of creating a monitor and then changing it to inject the id.

from terraform-provider-datadog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.