1. Registry
  2. Packages
  3. Mongodbatlas Provider
  4. API Docs
  5. MetricIntegration
Viewing docs for MongoDB Atlas v4.15.0
published on Friday, Aug 28, 2026 by Pulumi
mongodbatlas logo mongodbatlas logo
Viewing docs for MongoDB Atlas v4.15.0
published on Friday, Aug 28, 2026 by Pulumi

    mongodbatlas.MetricIntegration provides a resource for managing OpenTelemetry metric integrations at the project level. This resource allows you to push Atlas metrics to any OTLP-compatible endpoint such as Datadog, New Relic, or Dynatrace.

    To use this resource, the requesting Service Account or API Key must have the Organization Owner or Project Owner role.

    Note: After importing this resource, the headers attribute will show a diff on the first plan because the Atlas API redacts header values in GET responses. Run pulumi up once to reconcile the state.

    Example Usage

    The following example uses Datadog. To export to another provider, update providerType (CUSTOM, NEW_RELIC, or DYNATRACE), the endpoint, and the authentication headers to match that provider.

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    import * as mongodbatlas from "@pulumi/mongodbatlas";
    
    const atlasMetrics = new datadog.index.ApiKey("atlas_metrics", {name: "mongodb-atlas-metrics"});
    const exampleMetricIntegration = new mongodbatlas.MetricIntegration("example", {
        projectId: project.id,
        integrationType: "OTEL",
        providerType: "CUSTOM",
        authType: "HEADER",
        aggregationTemporality: "DELTA",
        endpoint: datadogEndpoint,
        metricSelections: ["ATLAS_STREAM_PROCESSING"],
        headers: [{
            name: "dd-api-key",
            value: atlasMetrics.key,
        }],
    });
    const example = mongodbatlas.getMetricIntegrationOutput({
        projectId: exampleMetricIntegration.projectId,
        metricIntegrationId: exampleMetricIntegration.metricIntegrationId,
    });
    export const metricIntegrationType = example.integrationType;
    const exampleGetMetricIntegrations = mongodbatlas.getMetricIntegrationsOutput({
        projectId: exampleMetricIntegration.projectId,
    });
    export const metricIntegrationIds = exampleGetMetricIntegrations.apply(exampleGetMetricIntegrations => .map(r => (r.metricIntegrationId)));
    
    import pulumi
    import pulumi_datadog as datadog
    import pulumi_mongodbatlas as mongodbatlas
    
    atlas_metrics = datadog.ApiKey("atlas_metrics", name=mongodb-atlas-metrics)
    example_metric_integration = mongodbatlas.MetricIntegration("example",
        project_id=project["id"],
        integration_type="OTEL",
        provider_type="CUSTOM",
        auth_type="HEADER",
        aggregation_temporality="DELTA",
        endpoint=datadog_endpoint,
        metric_selections=["ATLAS_STREAM_PROCESSING"],
        headers=[{
            "name": "dd-api-key",
            "value": atlas_metrics["key"],
        }])
    example = mongodbatlas.get_metric_integration_output(project_id=example_metric_integration.project_id,
        metric_integration_id=example_metric_integration.metric_integration_id)
    pulumi.export("metricIntegrationType", example.integration_type)
    example_get_metric_integrations = mongodbatlas.get_metric_integrations_output(project_id=example_metric_integration.project_id)
    pulumi.export("metricIntegrationIds", example_get_metric_integrations.apply(lambda example_get_metric_integrations: [r.metric_integration_id for r in example_get_metric_integrations.results]))
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    using Mongodbatlas = Pulumi.Mongodbatlas;
    
    return await Deployment.RunAsync(() => 
    {
        var atlasMetrics = new Datadog.ApiKey("atlas_metrics", new()
        {
            Name = "mongodb-atlas-metrics",
        });
    
        var exampleMetricIntegration = new Mongodbatlas.MetricIntegration("example", new()
        {
            ProjectId = project.Id,
            IntegrationType = "OTEL",
            ProviderType = "CUSTOM",
            AuthType = "HEADER",
            AggregationTemporality = "DELTA",
            Endpoint = datadogEndpoint,
            MetricSelections = new[]
            {
                "ATLAS_STREAM_PROCESSING",
            },
            Headers = new[]
            {
                new Mongodbatlas.Inputs.MetricIntegrationHeaderArgs
                {
                    Name = "dd-api-key",
                    Value = atlasMetrics.Key,
                },
            },
        });
    
        var example = Mongodbatlas.GetMetricIntegration.Invoke(new()
        {
            ProjectId = exampleMetricIntegration.ProjectId,
            MetricIntegrationId = exampleMetricIntegration.MetricIntegrationId,
        });
    
        var exampleGetMetricIntegrations = Mongodbatlas.GetMetricIntegrations.Invoke(new()
        {
            ProjectId = exampleMetricIntegration.ProjectId,
        });
    
        return new Dictionary<string, object?>
        {
            ["metricIntegrationType"] = example.Apply(getMetricIntegrationResult => getMetricIntegrationResult.IntegrationType),
            ["metricIntegrationIds"] = .Select(r => 
            {
                return r.MetricIntegrationId;
            }).ToList(),
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    
    pulumi {
      required_providers {
        mongodbatlas = {
          source = "pulumi/mongodbatlas"
        }
      }
    }
    
    data "mongodbatlas_getmetricintegration" "example" {
      project_id            = mongodbatlas_metricintegration.example.project_id
      metric_integration_id = mongodbatlas_metricintegration.example.metric_integration_id
    }
    data "mongodbatlas_getmetricintegrations" "exampleGetMetricIntegrations" {
      project_id = mongodbatlas_metricintegration.example.project_id
    }
    
    resource "datadog_apikey" "atlas_metrics" {
      name = "mongodb-atlas-metrics"
    }
    resource "mongodbatlas_metricintegration" "example" {
      project_id              = project.id
      integration_type        = "OTEL"
      provider_type           = "CUSTOM"
      auth_type               = "HEADER"
      aggregation_temporality = "DELTA"
      endpoint                = datadogEndpoint
      metric_selections       = ["ATLAS_STREAM_PROCESSING"]
      headers {
        name  = "dd-api-key"
        value = datadog_apikey.atlas_metrics.key
      }
    }
    output "metricIntegrationType" {
      value = data.mongodbatlas_getmetricintegration.example.integration_type
    }
    output "metricIntegrationIds" {
      value = [for r in data.mongodbatlas_getmetricintegrations.exampleGetMetricIntegrations.results : r.metricIntegrationId]
    }
    

    Further Examples

    • Metric Integration Examples

    Create MetricIntegration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MetricIntegration(name: string, args: MetricIntegrationArgs, opts?: CustomResourceOptions);
    @overload
    def MetricIntegration(resource_name: str,
                          args: MetricIntegrationArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def MetricIntegration(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          aggregation_temporality: Optional[str] = None,
                          auth_type: Optional[str] = None,
                          endpoint: Optional[str] = None,
                          integration_type: Optional[str] = None,
                          metric_selections: Optional[Sequence[str]] = None,
                          project_id: Optional[str] = None,
                          provider_type: Optional[str] = None,
                          headers: Optional[Sequence[MetricIntegrationHeaderArgs]] = None)
    func NewMetricIntegration(ctx *Context, name string, args MetricIntegrationArgs, opts ...ResourceOption) (*MetricIntegration, error)
    public MetricIntegration(string name, MetricIntegrationArgs args, CustomResourceOptions? opts = null)
    public MetricIntegration(String name, MetricIntegrationArgs args)
    public MetricIntegration(String name, MetricIntegrationArgs args, CustomResourceOptions options)
    
    type: mongodbatlas:MetricIntegration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "mongodbatlas_metric_integration" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args MetricIntegrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MetricIntegrationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MetricIntegrationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MetricIntegrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MetricIntegrationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var metricIntegrationResource = new Mongodbatlas.MetricIntegration("metricIntegrationResource", new()
    {
        AggregationTemporality = "string",
        AuthType = "string",
        Endpoint = "string",
        IntegrationType = "string",
        MetricSelections = new[]
        {
            "string",
        },
        ProjectId = "string",
        ProviderType = "string",
        Headers = new[]
        {
            new Mongodbatlas.Inputs.MetricIntegrationHeaderArgs
            {
                Name = "string",
                Value = "string",
            },
        },
    });
    
    example, err := mongodbatlas.NewMetricIntegration(ctx, "metricIntegrationResource", &mongodbatlas.MetricIntegrationArgs{
    	AggregationTemporality: pulumi.String("string"),
    	AuthType:               pulumi.String("string"),
    	Endpoint:               pulumi.String("string"),
    	IntegrationType:        pulumi.String("string"),
    	MetricSelections: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ProjectId:    pulumi.String("string"),
    	ProviderType: pulumi.String("string"),
    	Headers: mongodbatlas.MetricIntegrationHeaderArray{
    		&mongodbatlas.MetricIntegrationHeaderArgs{
    			Name:  pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    resource "mongodbatlas_metric_integration" "metricIntegrationResource" {
      lifecycle {
        create_before_destroy = true
      }
      aggregation_temporality = "string"
      auth_type               = "string"
      endpoint                = "string"
      integration_type        = "string"
      metric_selections       = ["string"]
      project_id              = "string"
      provider_type           = "string"
      headers {
        name  = "string"
        value = "string"
      }
    }
    
    var metricIntegrationResource = new MetricIntegration("metricIntegrationResource", MetricIntegrationArgs.builder()
        .aggregationTemporality("string")
        .authType("string")
        .endpoint("string")
        .integrationType("string")
        .metricSelections("string")
        .projectId("string")
        .providerType("string")
        .headers(MetricIntegrationHeaderArgs.builder()
            .name("string")
            .value("string")
            .build())
        .build());
    
    metric_integration_resource = mongodbatlas.MetricIntegration("metricIntegrationResource",
        aggregation_temporality="string",
        auth_type="string",
        endpoint="string",
        integration_type="string",
        metric_selections=["string"],
        project_id="string",
        provider_type="string",
        headers=[{
            "name": "string",
            "value": "string",
        }])
    
    const metricIntegrationResource = new mongodbatlas.MetricIntegration("metricIntegrationResource", {
        aggregationTemporality: "string",
        authType: "string",
        endpoint: "string",
        integrationType: "string",
        metricSelections: ["string"],
        projectId: "string",
        providerType: "string",
        headers: [{
            name: "string",
            value: "string",
        }],
    });
    
    type: mongodbatlas:MetricIntegration
    properties:
        aggregationTemporality: string
        authType: string
        endpoint: string
        headers:
            - name: string
              value: string
        integrationType: string
        metricSelections:
            - string
        projectId: string
        providerType: string
    

    MetricIntegration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MetricIntegration resource accepts the following input properties:

    AggregationTemporality string
    The temporality to send to the metric integration.
    AuthType string
    Authentication method the integration uses when exporting metrics to the endpoint. HEADER authenticates with the static HTTP headers provided in the headers field, which must be set when this value is used.
    Endpoint string
    OpenTelemetry collector endpoint URL. Must use HTTPS.
    IntegrationType string
    Type of metric integration. Identifies which protocol will be used for the integration. This value cannot be modified after the integration is created.
    MetricSelections List<string>
    Array of metric categories to export. Determines which types of metrics are sent to the integration.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    ProviderType string
    The provider type for the metric integration. Identifies the third-party service provider.
    Headers List<MetricIntegrationHeader>
    Required for auth_type: HEADER. HTTP headers for authentication and configuration. Total size limit 2KB.
    AggregationTemporality string
    The temporality to send to the metric integration.
    AuthType string
    Authentication method the integration uses when exporting metrics to the endpoint. HEADER authenticates with the static HTTP headers provided in the headers field, which must be set when this value is used.
    Endpoint string
    OpenTelemetry collector endpoint URL. Must use HTTPS.
    IntegrationType string
    Type of metric integration. Identifies which protocol will be used for the integration. This value cannot be modified after the integration is created.
    MetricSelections []string
    Array of metric categories to export. Determines which types of metrics are sent to the integration.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    ProviderType string
    The provider type for the metric integration. Identifies the third-party service provider.
    Headers []MetricIntegrationHeaderArgs
    Required for auth_type: HEADER. HTTP headers for authentication and configuration. Total size limit 2KB.
    aggregation_temporality string
    The temporality to send to the metric integration.
    auth_type string
    Authentication method the integration uses when exporting metrics to the endpoint. HEADER authenticates with the static HTTP headers provided in the headers field, which must be set when this value is used.
    endpoint string
    OpenTelemetry collector endpoint URL. Must use HTTPS.
    integration_type string
    Type of metric integration. Identifies which protocol will be used for the integration. This value cannot be modified after the integration is created.
    metric_selections list(string)
    Array of metric categories to export. Determines which types of metrics are sent to the integration.
    project_id string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    provider_type string
    The provider type for the metric integration. Identifies the third-party service provider.
    headers list(object)
    Required for auth_type: HEADER. HTTP headers for authentication and configuration. Total size limit 2KB.
    aggregationTemporality String
    The temporality to send to the metric integration.
    authType String
    Authentication method the integration uses when exporting metrics to the endpoint. HEADER authenticates with the static HTTP headers provided in the headers field, which must be set when this value is used.
    endpoint String
    OpenTelemetry collector endpoint URL. Must use HTTPS.
    integrationType String
    Type of metric integration. Identifies which protocol will be used for the integration. This value cannot be modified after the integration is created.
    metricSelections List<String>
    Array of metric categories to export. Determines which types of metrics are sent to the integration.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    providerType String
    The provider type for the metric integration. Identifies the third-party service provider.
    headers List<MetricIntegrationHeader>
    Required for auth_type: HEADER. HTTP headers for authentication and configuration. Total size limit 2KB.
    aggregationTemporality string
    The temporality to send to the metric integration.
    authType string
    Authentication method the integration uses when exporting metrics to the endpoint. HEADER authenticates with the static HTTP headers provided in the headers field, which must be set when this value is used.
    endpoint string
    OpenTelemetry collector endpoint URL. Must use HTTPS.
    integrationType string
    Type of metric integration. Identifies which protocol will be used for the integration. This value cannot be modified after the integration is created.
    metricSelections string[]
    Array of metric categories to export. Determines which types of metrics are sent to the integration.
    projectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    providerType string
    The provider type for the metric integration. Identifies the third-party service provider.
    headers MetricIntegrationHeader[]
    Required for auth_type: HEADER. HTTP headers for authentication and configuration. Total size limit 2KB.
    aggregation_temporality str
    The temporality to send to the metric integration.
    auth_type str
    Authentication method the integration uses when exporting metrics to the endpoint. HEADER authenticates with the static HTTP headers provided in the headers field, which must be set when this value is used.
    endpoint str
    OpenTelemetry collector endpoint URL. Must use HTTPS.
    integration_type str
    Type of metric integration. Identifies which protocol will be used for the integration. This value cannot be modified after the integration is created.
    metric_selections Sequence[str]
    Array of metric categories to export. Determines which types of metrics are sent to the integration.
    project_id str
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    provider_type str
    The provider type for the metric integration. Identifies the third-party service provider.
    headers Sequence[MetricIntegrationHeaderArgs]
    Required for auth_type: HEADER. HTTP headers for authentication and configuration. Total size limit 2KB.
    aggregationTemporality String
    The temporality to send to the metric integration.
    authType String
    Authentication method the integration uses when exporting metrics to the endpoint. HEADER authenticates with the static HTTP headers provided in the headers field, which must be set when this value is used.
    endpoint String
    OpenTelemetry collector endpoint URL. Must use HTTPS.
    integrationType String
    Type of metric integration. Identifies which protocol will be used for the integration. This value cannot be modified after the integration is created.
    metricSelections List<String>
    Array of metric categories to export. Determines which types of metrics are sent to the integration.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    providerType String
    The provider type for the metric integration. Identifies the third-party service provider.
    headers List<Property Map>
    Required for auth_type: HEADER. HTTP headers for authentication and configuration. Total size limit 2KB.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MetricIntegration resource produces the following output properties:

    HeadersRedacteds List<MetricIntegrationHeadersRedacted>
    HTTP headers for authentication and configuration. Values are redacted and never returned in plaintext.
    Id string
    The provider-assigned unique ID for this managed resource.
    MetricIntegrationId string
    Unique identifier of the metric integration configuration.
    HeadersRedacteds []MetricIntegrationHeadersRedacted
    HTTP headers for authentication and configuration. Values are redacted and never returned in plaintext.
    Id string
    The provider-assigned unique ID for this managed resource.
    MetricIntegrationId string
    Unique identifier of the metric integration configuration.
    headers_redacteds list(object)
    HTTP headers for authentication and configuration. Values are redacted and never returned in plaintext.
    id string
    The provider-assigned unique ID for this managed resource.
    metric_integration_id string
    Unique identifier of the metric integration configuration.
    headersRedacteds List<MetricIntegrationHeadersRedacted>
    HTTP headers for authentication and configuration. Values are redacted and never returned in plaintext.
    id String
    The provider-assigned unique ID for this managed resource.
    metricIntegrationId String
    Unique identifier of the metric integration configuration.
    headersRedacteds MetricIntegrationHeadersRedacted[]
    HTTP headers for authentication and configuration. Values are redacted and never returned in plaintext.
    id string
    The provider-assigned unique ID for this managed resource.
    metricIntegrationId string
    Unique identifier of the metric integration configuration.
    headers_redacteds Sequence[MetricIntegrationHeadersRedacted]
    HTTP headers for authentication and configuration. Values are redacted and never returned in plaintext.
    id str
    The provider-assigned unique ID for this managed resource.
    metric_integration_id str
    Unique identifier of the metric integration configuration.
    headersRedacteds List<Property Map>
    HTTP headers for authentication and configuration. Values are redacted and never returned in plaintext.
    id String
    The provider-assigned unique ID for this managed resource.
    metricIntegrationId String
    Unique identifier of the metric integration configuration.

    Look up Existing MetricIntegration Resource

    Get an existing MetricIntegration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MetricIntegrationState, opts?: CustomResourceOptions): MetricIntegration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aggregation_temporality: Optional[str] = None,
            auth_type: Optional[str] = None,
            endpoint: Optional[str] = None,
            headers: Optional[Sequence[MetricIntegrationHeaderArgs]] = None,
            headers_redacteds: Optional[Sequence[MetricIntegrationHeadersRedactedArgs]] = None,
            integration_type: Optional[str] = None,
            metric_integration_id: Optional[str] = None,
            metric_selections: Optional[Sequence[str]] = None,
            project_id: Optional[str] = None,
            provider_type: Optional[str] = None) -> MetricIntegration
    func GetMetricIntegration(ctx *Context, name string, id IDInput, state *MetricIntegrationState, opts ...ResourceOption) (*MetricIntegration, error)
    public static MetricIntegration Get(string name, Input<string> id, MetricIntegrationState? state, CustomResourceOptions? opts = null)
    public static MetricIntegration get(String name, Output<String> id, MetricIntegrationState state, CustomResourceOptions options)
    resources:  _:    type: mongodbatlas:MetricIntegration    get:      id: ${id}
    import {
      to = mongodbatlas_metric_integration.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AggregationTemporality string
    The temporality to send to the metric integration.
    AuthType string
    Authentication method the integration uses when exporting metrics to the endpoint. HEADER authenticates with the static HTTP headers provided in the headers field, which must be set when this value is used.
    Endpoint string
    OpenTelemetry collector endpoint URL. Must use HTTPS.
    Headers List<MetricIntegrationHeader>
    Required for auth_type: HEADER. HTTP headers for authentication and configuration. Total size limit 2KB.
    HeadersRedacteds List<MetricIntegrationHeadersRedacted>
    HTTP headers for authentication and configuration. Values are redacted and never returned in plaintext.
    IntegrationType string
    Type of metric integration. Identifies which protocol will be used for the integration. This value cannot be modified after the integration is created.
    MetricIntegrationId string
    Unique identifier of the metric integration configuration.
    MetricSelections List<string>
    Array of metric categories to export. Determines which types of metrics are sent to the integration.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    ProviderType string
    The provider type for the metric integration. Identifies the third-party service provider.
    AggregationTemporality string
    The temporality to send to the metric integration.
    AuthType string
    Authentication method the integration uses when exporting metrics to the endpoint. HEADER authenticates with the static HTTP headers provided in the headers field, which must be set when this value is used.
    Endpoint string
    OpenTelemetry collector endpoint URL. Must use HTTPS.
    Headers []MetricIntegrationHeaderArgs
    Required for auth_type: HEADER. HTTP headers for authentication and configuration. Total size limit 2KB.
    HeadersRedacteds []MetricIntegrationHeadersRedactedArgs
    HTTP headers for authentication and configuration. Values are redacted and never returned in plaintext.
    IntegrationType string
    Type of metric integration. Identifies which protocol will be used for the integration. This value cannot be modified after the integration is created.
    MetricIntegrationId string
    Unique identifier of the metric integration configuration.
    MetricSelections []string
    Array of metric categories to export. Determines which types of metrics are sent to the integration.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    ProviderType string
    The provider type for the metric integration. Identifies the third-party service provider.
    aggregation_temporality string
    The temporality to send to the metric integration.
    auth_type string
    Authentication method the integration uses when exporting metrics to the endpoint. HEADER authenticates with the static HTTP headers provided in the headers field, which must be set when this value is used.
    endpoint string
    OpenTelemetry collector endpoint URL. Must use HTTPS.
    headers list(object)
    Required for auth_type: HEADER. HTTP headers for authentication and configuration. Total size limit 2KB.
    headers_redacteds list(object)
    HTTP headers for authentication and configuration. Values are redacted and never returned in plaintext.
    integration_type string
    Type of metric integration. Identifies which protocol will be used for the integration. This value cannot be modified after the integration is created.
    metric_integration_id string
    Unique identifier of the metric integration configuration.
    metric_selections list(string)
    Array of metric categories to export. Determines which types of metrics are sent to the integration.
    project_id string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    provider_type string
    The provider type for the metric integration. Identifies the third-party service provider.
    aggregationTemporality String
    The temporality to send to the metric integration.
    authType String
    Authentication method the integration uses when exporting metrics to the endpoint. HEADER authenticates with the static HTTP headers provided in the headers field, which must be set when this value is used.
    endpoint String
    OpenTelemetry collector endpoint URL. Must use HTTPS.
    headers List<MetricIntegrationHeader>
    Required for auth_type: HEADER. HTTP headers for authentication and configuration. Total size limit 2KB.
    headersRedacteds List<MetricIntegrationHeadersRedacted>
    HTTP headers for authentication and configuration. Values are redacted and never returned in plaintext.
    integrationType String
    Type of metric integration. Identifies which protocol will be used for the integration. This value cannot be modified after the integration is created.
    metricIntegrationId String
    Unique identifier of the metric integration configuration.
    metricSelections List<String>
    Array of metric categories to export. Determines which types of metrics are sent to the integration.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    providerType String
    The provider type for the metric integration. Identifies the third-party service provider.
    aggregationTemporality string
    The temporality to send to the metric integration.
    authType string
    Authentication method the integration uses when exporting metrics to the endpoint. HEADER authenticates with the static HTTP headers provided in the headers field, which must be set when this value is used.
    endpoint string
    OpenTelemetry collector endpoint URL. Must use HTTPS.
    headers MetricIntegrationHeader[]
    Required for auth_type: HEADER. HTTP headers for authentication and configuration. Total size limit 2KB.
    headersRedacteds MetricIntegrationHeadersRedacted[]
    HTTP headers for authentication and configuration. Values are redacted and never returned in plaintext.
    integrationType string
    Type of metric integration. Identifies which protocol will be used for the integration. This value cannot be modified after the integration is created.
    metricIntegrationId string
    Unique identifier of the metric integration configuration.
    metricSelections string[]
    Array of metric categories to export. Determines which types of metrics are sent to the integration.
    projectId string
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    providerType string
    The provider type for the metric integration. Identifies the third-party service provider.
    aggregation_temporality str
    The temporality to send to the metric integration.
    auth_type str
    Authentication method the integration uses when exporting metrics to the endpoint. HEADER authenticates with the static HTTP headers provided in the headers field, which must be set when this value is used.
    endpoint str
    OpenTelemetry collector endpoint URL. Must use HTTPS.
    headers Sequence[MetricIntegrationHeaderArgs]
    Required for auth_type: HEADER. HTTP headers for authentication and configuration. Total size limit 2KB.
    headers_redacteds Sequence[MetricIntegrationHeadersRedactedArgs]
    HTTP headers for authentication and configuration. Values are redacted and never returned in plaintext.
    integration_type str
    Type of metric integration. Identifies which protocol will be used for the integration. This value cannot be modified after the integration is created.
    metric_integration_id str
    Unique identifier of the metric integration configuration.
    metric_selections Sequence[str]
    Array of metric categories to export. Determines which types of metrics are sent to the integration.
    project_id str
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    provider_type str
    The provider type for the metric integration. Identifies the third-party service provider.
    aggregationTemporality String
    The temporality to send to the metric integration.
    authType String
    Authentication method the integration uses when exporting metrics to the endpoint. HEADER authenticates with the static HTTP headers provided in the headers field, which must be set when this value is used.
    endpoint String
    OpenTelemetry collector endpoint URL. Must use HTTPS.
    headers List<Property Map>
    Required for auth_type: HEADER. HTTP headers for authentication and configuration. Total size limit 2KB.
    headersRedacteds List<Property Map>
    HTTP headers for authentication and configuration. Values are redacted and never returned in plaintext.
    integrationType String
    Type of metric integration. Identifies which protocol will be used for the integration. This value cannot be modified after the integration is created.
    metricIntegrationId String
    Unique identifier of the metric integration configuration.
    metricSelections List<String>
    Array of metric categories to export. Determines which types of metrics are sent to the integration.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project, also known as groupId in the official documentation.
    providerType String
    The provider type for the metric integration. Identifies the third-party service provider.

    Supporting Types

    MetricIntegrationHeader, MetricIntegrationHeaderArgs

    Name string
    Header name.
    Value string
    Header value.
    Name string
    Header name.
    Value string
    Header value.
    name string
    Header name.
    value string
    Header value.
    name String
    Header name.
    value String
    Header value.
    name string
    Header name.
    value string
    Header value.
    name str
    Header name.
    value str
    Header value.
    name String
    Header name.
    value String
    Header value.

    MetricIntegrationHeadersRedacted, MetricIntegrationHeadersRedactedArgs

    Name string
    Header name.
    Value string
    Redacted header value.
    Name string
    Header name.
    Value string
    Redacted header value.
    name string
    Header name.
    value string
    Redacted header value.
    name String
    Header name.
    value String
    Redacted header value.
    name string
    Header name.
    value string
    Redacted header value.
    name str
    Header name.
    value str
    Redacted header value.
    name String
    Header name.
    value String
    Redacted header value.

    Import

    Metric integration resource can be imported using the project ID and metric integration ID, separated by a slash, for example:

    $ pulumi import mongodbatlas:index/metricIntegration:MetricIntegration example 650972848269185c55f40ca1/6789abcd1234ef5678901234
    

    For more information see: MongoDB Atlas - OTel Integration Documentation.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    MongoDB Atlas pulumi/pulumi-mongodbatlas
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mongodbatlas Terraform Provider.
    mongodbatlas logo mongodbatlas logo
    Viewing docs for MongoDB Atlas v4.15.0
    published on Friday, Aug 28, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial