Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
Use this data source to retrieve metadata associated with a metric to use in other resources.
Using getMetricMetadata
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMetricMetadata(args: GetMetricMetadataArgs, opts?: InvokeOptions): Promise<GetMetricMetadataResult>
function getMetricMetadataOutput(args: GetMetricMetadataOutputArgs, opts?: InvokeOptions): Output<GetMetricMetadataResult>def get_metric_metadata(metric_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMetricMetadataResult
def get_metric_metadata_output(metric_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMetricMetadataResult]func LookupMetricMetadata(ctx *Context, args *LookupMetricMetadataArgs, opts ...InvokeOption) (*LookupMetricMetadataResult, error)
func LookupMetricMetadataOutput(ctx *Context, args *LookupMetricMetadataOutputArgs, opts ...InvokeOption) LookupMetricMetadataResultOutput> Note: This function is named LookupMetricMetadata in the Go SDK.
public static class GetMetricMetadata
{
public static Task<GetMetricMetadataResult> InvokeAsync(GetMetricMetadataArgs args, InvokeOptions? opts = null)
public static Output<GetMetricMetadataResult> Invoke(GetMetricMetadataInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMetricMetadataResult> getMetricMetadata(GetMetricMetadataArgs args, InvokeOptions options)
public static Output<GetMetricMetadataResult> getMetricMetadata(GetMetricMetadataArgs args, InvokeOptions options)
fn::invoke:
function: datadog:index/getMetricMetadata:getMetricMetadata
arguments:
# arguments dictionaryThe following arguments are supported:
- Metric
Name string - The metric for which to fetch metadata.
- Metric
Name string - The metric for which to fetch metadata.
- metric
Name String - The metric for which to fetch metadata.
- metric
Name string - The metric for which to fetch metadata.
- metric_
name str - The metric for which to fetch metadata.
- metric
Name String - The metric for which to fetch metadata.
getMetricMetadata Result
The following output properties are available:
- Description string
- The metric description.
- Id string
- The ID of this resource.
- Integration string
- The metric integration.
- Metric
Name string - The metric for which to fetch metadata.
- Per
Unit string - The per unit of the metric.
- Short
Name string - The metric short name.
- Statsd
Interval int - The metric statsd interval.
- Type string
- The metric type.
- Unit string
- The metric unit.
- Description string
- The metric description.
- Id string
- The ID of this resource.
- Integration string
- The metric integration.
- Metric
Name string - The metric for which to fetch metadata.
- Per
Unit string - The per unit of the metric.
- Short
Name string - The metric short name.
- Statsd
Interval int - The metric statsd interval.
- Type string
- The metric type.
- Unit string
- The metric unit.
- description String
- The metric description.
- id String
- The ID of this resource.
- integration String
- The metric integration.
- metric
Name String - The metric for which to fetch metadata.
- per
Unit String - The per unit of the metric.
- short
Name String - The metric short name.
- statsd
Interval Integer - The metric statsd interval.
- type String
- The metric type.
- unit String
- The metric unit.
- description string
- The metric description.
- id string
- The ID of this resource.
- integration string
- The metric integration.
- metric
Name string - The metric for which to fetch metadata.
- per
Unit string - The per unit of the metric.
- short
Name string - The metric short name.
- statsd
Interval number - The metric statsd interval.
- type string
- The metric type.
- unit string
- The metric unit.
- description str
- The metric description.
- id str
- The ID of this resource.
- integration str
- The metric integration.
- metric_
name str - The metric for which to fetch metadata.
- per_
unit str - The per unit of the metric.
- short_
name str - The metric short name.
- statsd_
interval int - The metric statsd interval.
- type str
- The metric type.
- unit str
- The metric unit.
- description String
- The metric description.
- id String
- The ID of this resource.
- integration String
- The metric integration.
- metric
Name String - The metric for which to fetch metadata.
- per
Unit String - The per unit of the metric.
- short
Name String - The metric short name.
- statsd
Interval Number - The metric statsd interval.
- type String
- The metric type.
- unit String
- The metric unit.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
