Provides a Datadog metric_metadata resource. This can be used to manage a metric's metadata.
# Manage a Datadog metric's metadata
resource "datadog_metric_metadata" "request_time" {
metric = "request.time"
short_name = "Request time"
description = "99th percentile request time in milliseconds"
type = "gauge"
unit = "millisecond"
}
metric
(String) The name of the metric.description
(String) A description of the metric.per_unit
(String) Per unit of the metric such as second
in bytes per second
.short_name
(String) A short name of the metric.statsd_interval
(Number) If applicable, statsd flush interval in seconds for the metric.type
(String) Metric type such as count
, gauge
, or rate
. Updating a metric of type distribution
is not supported. If you would like to see the distribution
type returned, contact Datadog support.unit
(String) Primary unit of the metric such as byte
or operation
.id
(String) The ID of this resource.Import is supported using the following syntax:
terraform import datadog_metric_metadata.request_time request.time