streamtime_observability_provider (Resource)

A monitoring service Streamtime sends metrics and logs to: Datadog, Grafana Cloud or New Relic.

Example Usage

resource "streamtime_observability_provider" "datadog" {
  identifier = "datadog"
  vendor     = "datadog"

  configuration = jsonencode({
    api_key = var.datadog_api_key
    site    = "datadoghq.com"
  })
}

variable "datadog_api_key" {
  type      = string
  sensitive = true
}

Schema

Required

  • configuration (String, Sensitive) The service’s settings, including its keys, set with jsonencode({…}). The settings depend on the vendor.
  • identifier (String) A short name for the provider, up to 24 lowercase letters, numbers and dashes. Changing it creates a new provider.
  • vendor (String) The monitoring service: datadog, grafana_cloud or newrelic. Changing it creates a new provider.

Read-Only

  • id (String) ID of the observability provider. Use it to import an existing one.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Import by the provider's identifier. Streamtime hides keys, so set them in your configuration.
terraform import streamtime_observability_provider.datadog datadog