fastly_alert

Provides a Fastly Alert. Alerts send notifications to custom integrations (e.g., Slack channels, PagerDuty, Microsoft Teams and New Relic) when an observed metric either exceeds or falls below a threshold.

Example Usage

resource "fastly_service_vcl" "example" {
  name = "my_vcl_service"
  # ...
}

resource "fastly_integration" "example" {
  name = "my_integration"
  # ...
}

resource "fastly_alert" "example" {
  name = "my_vcl_service errors"
  service_id = fastly_service_vcl.example.id
  source = "stats"
  metric = "status_5xx"

  evaluation_strategy {
    type = "above_threshold"
    period = "5m"
    threshold = 10
  }

  integration_ids = [fastly_integration.example.id]
}

Import

Fastly Alerts can be imported using their ID, e.g.

$ terraform import fastly_alert.example xxxxxxxxxxxxxxxxxxxx

Schema

Required

Optional

Read-Only

Nested Schema for evaluation_strategy

Required:

Optional:

Nested Schema for dimensions

Optional: