1. Packages
  2. Datadog Provider
  3. API Docs
  4. getMetricMetadata
Datadog v4.55.0 published on Friday, Sep 5, 2025 by Pulumi

datadog.getMetricMetadata

Explore with Pulumi AI

datadog logo
Datadog v4.55.0 published on Friday, Sep 5, 2025 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 dictionary

    The following arguments are supported:

    MetricName string
    The metric for which to fetch metadata.
    MetricName string
    The metric for which to fetch metadata.
    metricName String
    The metric for which to fetch metadata.
    metricName string
    The metric for which to fetch metadata.
    metric_name str
    The metric for which to fetch metadata.
    metricName 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.
    MetricName string
    The metric for which to fetch metadata.
    PerUnit string
    The per unit of the metric.
    ShortName string
    The metric short name.
    StatsdInterval 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.
    MetricName string
    The metric for which to fetch metadata.
    PerUnit string
    The per unit of the metric.
    ShortName string
    The metric short name.
    StatsdInterval 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.
    metricName String
    The metric for which to fetch metadata.
    perUnit String
    The per unit of the metric.
    shortName String
    The metric short name.
    statsdInterval 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.
    metricName string
    The metric for which to fetch metadata.
    perUnit string
    The per unit of the metric.
    shortName string
    The metric short name.
    statsdInterval 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.
    metricName String
    The metric for which to fetch metadata.
    perUnit String
    The per unit of the metric.
    shortName String
    The metric short name.
    statsdInterval 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 datadog Terraform Provider.
    datadog logo
    Datadog v4.55.0 published on Friday, Sep 5, 2025 by Pulumi