» grafana_alert_notification

The alert notification resource allows an alert notification channel to be created on a Grafana server.

» Example Usage

resource "grafana_alert_notification" "email_someteam" {
  name = "Email that team"
  type = "email"
  is_default = false

  settings {
    "addresses" = "foo@example.net;bar@example.net"
    "uploadImage" = "false"
  }
}

» Argument Reference

The following arguments are supported:

  • name - (Required) The name of the alert notification channel.
  • type - (Required) The type of the alert notification channel.
  • is_default - (Optional) Is this the default channel for all your alerts.
  • settings - (Optional) Additional settings, for full reference lookup Grafana HTTP API documentation.

Note: In settings the strings "true" and "false" are mapped to boolean true and false when sent to Grafana.

» Attributes Reference

The resource exports the following attributes:

  • id - The ID of the resource