datadog_logs_metric (Resource)

Resource for interacting with the logs_metric API

Example Usage

resource "datadog_logs_metric" "testing_logs_metric" {
  name = "testing.logs.metric"
  compute {
    aggregation_type = "distribution"
    path             = "@duration"
  }
  filter {
    query = "service:test"
  }
  group_by {
    path     = "@status"
    tag_name = "status"
  }
  group_by {
    path     = "@version"
    tag_name = "version"
  }
}

Schema

Required

Optional

Read-Only

Nested Schema for compute

Required:

Optional:

Nested Schema for filter

Required:

Nested Schema for group_by

Required:

Import

Import is supported using the following syntax:

terraform import datadog_logs_metric.testing_logs_metric testing.logs.metric