Orchestrate Librato with Terraform — Librato Blog

Orchestrate Librato with Terraform


Mike Julian


Every once in a while, two great things come together to form a wonderful new pairing. Peanut butter and jelly. Cookies and cream. Bacon and eggs. Today is one of those days.

It is our pleasure to announce something our friends over at Hashicorp have launched: a Librato provider for Terraform. Terraform, a tool for building, changing, and versioning infrastructure safely and efficiently, is popular for its ease-of-use and flexibility in describing and launching infrastructure resources using an expressive DSL.

The new Terraform provider makes it super easy to create dashboards and charts in Librato, right alongside the rest of your infrastructure code:

# Create a new Librato space
resource "librato_space” "widget_space" {
    name = “Widget Overview Space"
}

# Create a new chart
resource "librato_space_chart” "widget_count" {
  name = “Widget Count"
  space_id = "${librato_space.widget_space.id}"

  stream {
    metric = “widget.count"
    source = “*"
  }
}

Read more about the Librato provider in Terraform’s docs, and if you have not yet tried Librato, now is a great time to sign up for the free 30-day trial.