terraform-provider-librato

command module
v0.0.0-...-e8c2687 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

README

Example:

provider "librato" {
  user = "your@email.com"
  token = "yourlibratotoken"
}

resource "librato_space" "space" {
  name = "Identity Prod"
}

resource "librato_space_chart" "chart" {
  space = "${librato_space.space.id}"
  name = "DynamoDB Read Capacity"
  min = 0
  label = "Units"

  stream {
    name = "Consumed Read Capacity"
    metric = "AWS.DynamoDB.ConsumedReadCapacityUnits"
    source = "*identity_prod_*"
    group_function = "breakout"
    summary_function = "sum"
    units_short = "U"
    units_long = "Units"
    min = 0
    transform_function = "x/p"
    period = 60
  }
}

resource "librato_service" "identity" {
  title = "PagerDuty Identity"
  type = "pagerduty"
  settings {
    service_key = "yourpagerdutytoken"
    event_type = "trigger"
    description = "PagerDuty Identity"
  }
}

resource "librato_alert" "alert" {
  name = "identity.important.alert"
  description = "The important alert"
  rearm_seconds = 60
  services = ["${librato_service.identity.id}"]
  conditions {
    condition_type = "above"
    metric_name = "AWS.DynamoDB.ConsumedReadCapacityUnits"
    threshold = 1
    source = "*"
    summary_function = "sum"
    duration = 60
  }
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL