diff --git a/index.html.markdown b/index.html.markdown index 4874f4d..58413cc 100644 --- a/index.html.markdown +++ b/index.html.markdown @@ -19,13 +19,13 @@ Use the navigation to the left to read about the available resources. ``` # Configure the Librato provider provider "librato" { - email = "ops@company.com" - token = "${var.librato_token}" + email = "ops@company.com" + token = "${var.librato_token}" } # Create a new space resource "librato_space" "default" { - ... + # ... } ``` diff --git a/r/alert.html.markdown b/r/alert.html.markdown index 6e7d731..67a904d 100644 --- a/r/alert.html.markdown +++ b/r/alert.html.markdown @@ -16,14 +16,15 @@ create and manage alerts on Librato. ``` # Create a new Librato alert resource "librato_alert" "myalert" { - name = "MyAlert" - description = "A Test Alert" - services = [ "${librato_service.myservice.id}" ] - condition { - type = "above" - threshold = 10 - metric_name = "librato.cpu.percent.idle" - } + name = "MyAlert" + description = "A Test Alert" + services = ["${librato_service.myservice.id}"] + + condition { + type = "above" + threshold = 10 + metric_name = "librato.cpu.percent.idle" + } } ``` @@ -55,7 +56,7 @@ Conditions (`condition`) support the following: * `type` - The type of condition. Must be one of `above`, `below` or `absent`. * `metric_name`- The name of the metric this alert condition applies to. -* `source`- A source expression which identifies which sources for the given metric to monitor. +* `source`- A source expression which identifies which sources for the given metric to monitor. * `detect_reset` - boolean: toggles the method used to calculate the delta from the previous sample when the summary_function is `derivative`. * `duration` - number of seconds condition must be true to fire the alert (required for type `absent`). * `threshold` - float: measurements over this number will fire the alert (only for `above` or `below`). diff --git a/r/service.html.markdown b/r/service.html.markdown index ee3cbc8..f1b0221 100644 --- a/r/service.html.markdown +++ b/r/service.html.markdown @@ -16,9 +16,10 @@ create and manage notification services on Librato. ``` # Create a new Librato service resource "librato_service" "email" { - title = "Email the admins" - type = "mail" - settings = <