resource "librato_alert" "${myResourceName}" {
name = "my-${myResourceName}"
description = "my-description-${myResourceName}"
services = [ "\${librato_service.myservice.id}" ]
condition {
type = "above"
threshold = 10
metric_name = "librato.cpu.percent.idle"
}
}
librato_alert
The code defines a resource named "librato_alert" and specifies the following properties:
name: "librato_alert"
description: "An alerted state for the myResourceName"
services: [ "${librato_service.myservice.id}" ]
condition {
type: "above"
threshold: 10
metric_name: "librato.cpu.percent.
Shortcut: tf_librato_alert
0 Comments
Add Comment
Log in to add a comment