1. Packages
  2. Packages
  3. Chronosphere
  4. API Docs
  5. AzureMetricsIntegration
Viewing docs for Chronosphere v0.9.16
published on Friday, Jun 5, 2026 by Chronosphere
Viewing docs for Chronosphere v0.9.16
published on Friday, Jun 5, 2026 by Chronosphere

    Scrapes Azure Monitor metrics from the configured subscriptions, locations, and resource types using a service-principal credential.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pulumi = Chronosphere.Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
        var subscription = new Pulumi.AzureMetricsIntegration("subscription", new()
        {
            CountMetricsEnabled = true,
            Name = "Azure Metrics",
            Principal = new Pulumi.Inputs.AzureMetricsIntegrationPrincipalArgs
            {
                ClientId = "00000000-0000-0000-0000-000000000000",
                TenantId = "00000000-0000-0000-0000-000000000000",
            },
            PropagateTags = true,
            ScrapeConfig = new Pulumi.Inputs.AzureMetricsIntegrationScrapeConfigArgs
            {
                Locations = new[]
                {
                    "eastus",
                    "westus",
                },
                ResourceTypes = new[]
                {
                    new Pulumi.Inputs.AzureMetricsIntegrationScrapeConfigResourceTypeArgs
                    {
                        Name = "Microsoft.Compute/virtualMachines",
                    },
                    new Pulumi.Inputs.AzureMetricsIntegrationScrapeConfigResourceTypeArgs
                    {
                        MetricNames = new[]
                        {
                            "UsedCapacity",
                        },
                        Name = "Microsoft.Storage/storageAccounts",
                    },
                },
                SubscriptionIds = new[]
                {
                    "00000000-0000-0000-0000-000000000000",
                },
            },
            Slug = "azure-metrics",
        });
    
    });
    
    package main
    
    import (
    	"github.com/chronosphereio/pulumi-chronosphere/sdk/go/chronosphere"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := chronosphere.NewAzureMetricsIntegration(ctx, "subscription", &chronosphere.AzureMetricsIntegrationArgs{
    			CountMetricsEnabled: pulumi.Bool(true),
    			Name:                pulumi.String("Azure Metrics"),
    			Principal: &chronosphere.AzureMetricsIntegrationPrincipalArgs{
    				ClientId: pulumi.String("00000000-0000-0000-0000-000000000000"),
    				TenantId: pulumi.String("00000000-0000-0000-0000-000000000000"),
    			},
    			PropagateTags: pulumi.Bool(true),
    			ScrapeConfig: &chronosphere.AzureMetricsIntegrationScrapeConfigArgs{
    				Locations: pulumi.StringArray{
    					pulumi.String("eastus"),
    					pulumi.String("westus"),
    				},
    				ResourceTypes: chronosphere.AzureMetricsIntegrationScrapeConfigResourceTypeArray{
    					&chronosphere.AzureMetricsIntegrationScrapeConfigResourceTypeArgs{
    						Name: pulumi.String("Microsoft.Compute/virtualMachines"),
    					},
    					&chronosphere.AzureMetricsIntegrationScrapeConfigResourceTypeArgs{
    						MetricNames: pulumi.StringArray{
    							pulumi.String("UsedCapacity"),
    						},
    						Name: pulumi.String("Microsoft.Storage/storageAccounts"),
    					},
    				},
    				SubscriptionIds: pulumi.StringArray{
    					pulumi.String("00000000-0000-0000-0000-000000000000"),
    				},
    			},
    			Slug: pulumi.String("azure-metrics"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.chronosphere.AzureMetricsIntegration;
    import com.pulumi.chronosphere.AzureMetricsIntegrationArgs;
    import com.pulumi.chronosphere.inputs.AzureMetricsIntegrationPrincipalArgs;
    import com.pulumi.chronosphere.inputs.AzureMetricsIntegrationScrapeConfigArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var subscription = new AzureMetricsIntegration("subscription", AzureMetricsIntegrationArgs.builder()        
                .countMetricsEnabled(true)
                .name("Azure Metrics")
                .principal(AzureMetricsIntegrationPrincipalArgs.builder()
                    .clientId("00000000-0000-0000-0000-000000000000")
                    .tenantId("00000000-0000-0000-0000-000000000000")
                    .build())
                .propagateTags(true)
                .scrapeConfig(AzureMetricsIntegrationScrapeConfigArgs.builder()
                    .locations(                
                        "eastus",
                        "westus")
                    .resourceTypes(                
                        AzureMetricsIntegrationScrapeConfigResourceTypeArgs.builder()
                            .name("Microsoft.Compute/virtualMachines")
                            .build(),
                        AzureMetricsIntegrationScrapeConfigResourceTypeArgs.builder()
                            .metricNames("UsedCapacity")
                            .name("Microsoft.Storage/storageAccounts")
                            .build())
                    .subscriptionIds("00000000-0000-0000-0000-000000000000")
                    .build())
                .slug("azure-metrics")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as chronosphere from "@pulumi-chronosphere/pulumi-chronosphere";
    
    const subscription = new chronosphere.AzureMetricsIntegration("subscription", {
        countMetricsEnabled: true,
        name: "Azure Metrics",
        principal: {
            clientId: "00000000-0000-0000-0000-000000000000",
            tenantId: "00000000-0000-0000-0000-000000000000",
        },
        propagateTags: true,
        scrapeConfig: {
            locations: [
                "eastus",
                "westus",
            ],
            resourceTypes: [
                {
                    name: "Microsoft.Compute/virtualMachines",
                },
                {
                    metricNames: ["UsedCapacity"],
                    name: "Microsoft.Storage/storageAccounts",
                },
            ],
            subscriptionIds: ["00000000-0000-0000-0000-000000000000"],
        },
        slug: "azure-metrics",
    });
    
    import pulumi
    import pulumi_chronosphere as chronosphere
    
    subscription = chronosphere.AzureMetricsIntegration("subscription",
        count_metrics_enabled=True,
        name="Azure Metrics",
        principal=chronosphere.AzureMetricsIntegrationPrincipalArgs(
            client_id="00000000-0000-0000-0000-000000000000",
            tenant_id="00000000-0000-0000-0000-000000000000",
        ),
        propagate_tags=True,
        scrape_config=chronosphere.AzureMetricsIntegrationScrapeConfigArgs(
            locations=[
                "eastus",
                "westus",
            ],
            resource_types=[
                chronosphere.AzureMetricsIntegrationScrapeConfigResourceTypeArgs(
                    name="Microsoft.Compute/virtualMachines",
                ),
                chronosphere.AzureMetricsIntegrationScrapeConfigResourceTypeArgs(
                    metric_names=["UsedCapacity"],
                    name="Microsoft.Storage/storageAccounts",
                ),
            ],
            subscription_ids=["00000000-0000-0000-0000-000000000000"],
        ),
        slug="azure-metrics")
    
    resources:
      subscription:
        type: chronosphere:AzureMetricsIntegration
        properties:
          countMetricsEnabled: true
          name: Azure Metrics
          principal:
            clientId: 00000000-0000-0000-0000-000000000000
            tenantId: 00000000-0000-0000-0000-000000000000
          propagateTags: true
          scrapeConfig:
            locations:
              - eastus
              - westus
            resourceTypes:
              - name: Microsoft.Compute/virtualMachines
              - metricNames:
                  - UsedCapacity
                name: Microsoft.Storage/storageAccounts
            subscriptionIds:
              - 00000000-0000-0000-0000-000000000000
          slug: azure-metrics
    

    Create AzureMetricsIntegration Resource

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

    Constructor syntax

    new AzureMetricsIntegration(name: string, args: AzureMetricsIntegrationArgs, opts?: CustomResourceOptions);
    @overload
    def AzureMetricsIntegration(resource_name: str,
                                args: AzureMetricsIntegrationArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def AzureMetricsIntegration(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                name: Optional[str] = None,
                                count_metrics_enabled: Optional[bool] = None,
                                principal: Optional[AzureMetricsIntegrationPrincipalArgs] = None,
                                propagate_tags: Optional[bool] = None,
                                scrape_config: Optional[AzureMetricsIntegrationScrapeConfigArgs] = None,
                                slug: Optional[str] = None,
                                usage_metrics_enabled: Optional[bool] = None)
    func NewAzureMetricsIntegration(ctx *Context, name string, args AzureMetricsIntegrationArgs, opts ...ResourceOption) (*AzureMetricsIntegration, error)
    public AzureMetricsIntegration(string name, AzureMetricsIntegrationArgs args, CustomResourceOptions? opts = null)
    public AzureMetricsIntegration(String name, AzureMetricsIntegrationArgs args)
    public AzureMetricsIntegration(String name, AzureMetricsIntegrationArgs args, CustomResourceOptions options)
    
    type: chronosphere:AzureMetricsIntegration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "chronosphere_azuremetricsintegration" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AzureMetricsIntegrationArgs
    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 AzureMetricsIntegrationArgs
    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 AzureMetricsIntegrationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AzureMetricsIntegrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AzureMetricsIntegrationArgs
    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 azureMetricsIntegrationResource = new Pulumi.AzureMetricsIntegration("azureMetricsIntegrationResource", new()
    {
        Name = "string",
        CountMetricsEnabled = false,
        Principal = new Pulumi.Inputs.AzureMetricsIntegrationPrincipalArgs
        {
            ClientId = "string",
            TenantId = "string",
        },
        PropagateTags = false,
        ScrapeConfig = new Pulumi.Inputs.AzureMetricsIntegrationScrapeConfigArgs
        {
            Locations = new[]
            {
                "string",
            },
            ResourceTypes = new[]
            {
                new Pulumi.Inputs.AzureMetricsIntegrationScrapeConfigResourceTypeArgs
                {
                    MetricNames = new[]
                    {
                        "string",
                    },
                    Name = "string",
                },
            },
            SubscriptionIds = new[]
            {
                "string",
            },
        },
        Slug = "string",
        UsageMetricsEnabled = false,
    });
    
    example, err := chronosphere.NewAzureMetricsIntegration(ctx, "azureMetricsIntegrationResource", &chronosphere.AzureMetricsIntegrationArgs{
    	Name:                pulumi.String("string"),
    	CountMetricsEnabled: pulumi.Bool(false),
    	Principal: &chronosphere.AzureMetricsIntegrationPrincipalArgs{
    		ClientId: pulumi.String("string"),
    		TenantId: pulumi.String("string"),
    	},
    	PropagateTags: pulumi.Bool(false),
    	ScrapeConfig: &chronosphere.AzureMetricsIntegrationScrapeConfigArgs{
    		Locations: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		ResourceTypes: chronosphere.AzureMetricsIntegrationScrapeConfigResourceTypeArray{
    			&chronosphere.AzureMetricsIntegrationScrapeConfigResourceTypeArgs{
    				MetricNames: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				Name: pulumi.String("string"),
    			},
    		},
    		SubscriptionIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Slug:                pulumi.String("string"),
    	UsageMetricsEnabled: pulumi.Bool(false),
    })
    
    resource "chronosphere_azuremetricsintegration" "azureMetricsIntegrationResource" {
      name                  = "string"
      count_metrics_enabled = false
      principal = {
        client_id = "string"
        tenant_id = "string"
      }
      propagate_tags = false
      scrape_config = {
        locations = ["string"]
        resource_types = [{
          "metricNames" = ["string"]
          "name"        = "string"
        }]
        subscription_ids = ["string"]
      }
      slug                  = "string"
      usage_metrics_enabled = false
    }
    
    var azureMetricsIntegrationResource = new AzureMetricsIntegration("azureMetricsIntegrationResource", AzureMetricsIntegrationArgs.builder()
        .name("string")
        .countMetricsEnabled(false)
        .principal(AzureMetricsIntegrationPrincipalArgs.builder()
            .clientId("string")
            .tenantId("string")
            .build())
        .propagateTags(false)
        .scrapeConfig(AzureMetricsIntegrationScrapeConfigArgs.builder()
            .locations("string")
            .resourceTypes(AzureMetricsIntegrationScrapeConfigResourceTypeArgs.builder()
                .metricNames("string")
                .name("string")
                .build())
            .subscriptionIds("string")
            .build())
        .slug("string")
        .usageMetricsEnabled(false)
        .build());
    
    azure_metrics_integration_resource = chronosphere.AzureMetricsIntegration("azureMetricsIntegrationResource",
        name="string",
        count_metrics_enabled=False,
        principal={
            "client_id": "string",
            "tenant_id": "string",
        },
        propagate_tags=False,
        scrape_config={
            "locations": ["string"],
            "resource_types": [{
                "metric_names": ["string"],
                "name": "string",
            }],
            "subscription_ids": ["string"],
        },
        slug="string",
        usage_metrics_enabled=False)
    
    const azureMetricsIntegrationResource = new chronosphere.AzureMetricsIntegration("azureMetricsIntegrationResource", {
        name: "string",
        countMetricsEnabled: false,
        principal: {
            clientId: "string",
            tenantId: "string",
        },
        propagateTags: false,
        scrapeConfig: {
            locations: ["string"],
            resourceTypes: [{
                metricNames: ["string"],
                name: "string",
            }],
            subscriptionIds: ["string"],
        },
        slug: "string",
        usageMetricsEnabled: false,
    });
    
    type: chronosphere:AzureMetricsIntegration
    properties:
        countMetricsEnabled: false
        name: string
        principal:
            clientId: string
            tenantId: string
        propagateTags: false
        scrapeConfig:
            locations:
                - string
            resourceTypes:
                - metricNames:
                    - string
                  name: string
            subscriptionIds:
                - string
        slug: string
        usageMetricsEnabled: false
    

    AzureMetricsIntegration 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 AzureMetricsIntegration resource accepts the following input properties:

    Name string
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    CountMetricsEnabled bool
    If true, enables Azure count metrics for the configured resources.
    Principal Chronosphere.Pulumi.Inputs.AzureMetricsIntegrationPrincipal
    Azure managed identity principal used to authenticate with Azure Monitor.
    PropagateTags bool
    If true, propagates Azure resource, group, and subscription tags as metric labels.
    ScrapeConfig Chronosphere.Pulumi.Inputs.AzureMetricsIntegrationScrapeConfig
    Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
    Slug string
    Stable identifier for the integration. Generated from name if omitted. Immutable after creation.
    UsageMetricsEnabled bool
    If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
    Name string
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    CountMetricsEnabled bool
    If true, enables Azure count metrics for the configured resources.
    Principal AzureMetricsIntegrationPrincipalArgs
    Azure managed identity principal used to authenticate with Azure Monitor.
    PropagateTags bool
    If true, propagates Azure resource, group, and subscription tags as metric labels.
    ScrapeConfig AzureMetricsIntegrationScrapeConfigArgs
    Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
    Slug string
    Stable identifier for the integration. Generated from name if omitted. Immutable after creation.
    UsageMetricsEnabled bool
    If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
    name string
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    count_metrics_enabled bool
    If true, enables Azure count metrics for the configured resources.
    principal object
    Azure managed identity principal used to authenticate with Azure Monitor.
    propagate_tags bool
    If true, propagates Azure resource, group, and subscription tags as metric labels.
    scrape_config object
    Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
    slug string
    Stable identifier for the integration. Generated from name if omitted. Immutable after creation.
    usage_metrics_enabled bool
    If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
    name String
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    countMetricsEnabled Boolean
    If true, enables Azure count metrics for the configured resources.
    principal AzureMetricsIntegrationPrincipal
    Azure managed identity principal used to authenticate with Azure Monitor.
    propagateTags Boolean
    If true, propagates Azure resource, group, and subscription tags as metric labels.
    scrapeConfig AzureMetricsIntegrationScrapeConfig
    Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
    slug String
    Stable identifier for the integration. Generated from name if omitted. Immutable after creation.
    usageMetricsEnabled Boolean
    If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
    name string
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    countMetricsEnabled boolean
    If true, enables Azure count metrics for the configured resources.
    principal AzureMetricsIntegrationPrincipal
    Azure managed identity principal used to authenticate with Azure Monitor.
    propagateTags boolean
    If true, propagates Azure resource, group, and subscription tags as metric labels.
    scrapeConfig AzureMetricsIntegrationScrapeConfig
    Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
    slug string
    Stable identifier for the integration. Generated from name if omitted. Immutable after creation.
    usageMetricsEnabled boolean
    If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
    name str
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    count_metrics_enabled bool
    If true, enables Azure count metrics for the configured resources.
    principal AzureMetricsIntegrationPrincipalArgs
    Azure managed identity principal used to authenticate with Azure Monitor.
    propagate_tags bool
    If true, propagates Azure resource, group, and subscription tags as metric labels.
    scrape_config AzureMetricsIntegrationScrapeConfigArgs
    Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
    slug str
    Stable identifier for the integration. Generated from name if omitted. Immutable after creation.
    usage_metrics_enabled bool
    If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
    name String
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    countMetricsEnabled Boolean
    If true, enables Azure count metrics for the configured resources.
    principal Property Map
    Azure managed identity principal used to authenticate with Azure Monitor.
    propagateTags Boolean
    If true, propagates Azure resource, group, and subscription tags as metric labels.
    scrapeConfig Property Map
    Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
    slug String
    Stable identifier for the integration. Generated from name if omitted. Immutable after creation.
    usageMetricsEnabled Boolean
    If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AzureMetricsIntegration Resource

    Get an existing AzureMetricsIntegration 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?: AzureMetricsIntegrationState, opts?: CustomResourceOptions): AzureMetricsIntegration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            count_metrics_enabled: Optional[bool] = None,
            name: Optional[str] = None,
            principal: Optional[AzureMetricsIntegrationPrincipalArgs] = None,
            propagate_tags: Optional[bool] = None,
            scrape_config: Optional[AzureMetricsIntegrationScrapeConfigArgs] = None,
            slug: Optional[str] = None,
            usage_metrics_enabled: Optional[bool] = None) -> AzureMetricsIntegration
    func GetAzureMetricsIntegration(ctx *Context, name string, id IDInput, state *AzureMetricsIntegrationState, opts ...ResourceOption) (*AzureMetricsIntegration, error)
    public static AzureMetricsIntegration Get(string name, Input<string> id, AzureMetricsIntegrationState? state, CustomResourceOptions? opts = null)
    public static AzureMetricsIntegration get(String name, Output<String> id, AzureMetricsIntegrationState state, CustomResourceOptions options)
    resources:  _:    type: chronosphere:AzureMetricsIntegration    get:      id: ${id}
    import {
      to = chronosphere_azuremetricsintegration.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:
    CountMetricsEnabled bool
    If true, enables Azure count metrics for the configured resources.
    Name string
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    Principal Chronosphere.Pulumi.Inputs.AzureMetricsIntegrationPrincipal
    Azure managed identity principal used to authenticate with Azure Monitor.
    PropagateTags bool
    If true, propagates Azure resource, group, and subscription tags as metric labels.
    ScrapeConfig Chronosphere.Pulumi.Inputs.AzureMetricsIntegrationScrapeConfig
    Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
    Slug string
    Stable identifier for the integration. Generated from name if omitted. Immutable after creation.
    UsageMetricsEnabled bool
    If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
    CountMetricsEnabled bool
    If true, enables Azure count metrics for the configured resources.
    Name string
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    Principal AzureMetricsIntegrationPrincipalArgs
    Azure managed identity principal used to authenticate with Azure Monitor.
    PropagateTags bool
    If true, propagates Azure resource, group, and subscription tags as metric labels.
    ScrapeConfig AzureMetricsIntegrationScrapeConfigArgs
    Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
    Slug string
    Stable identifier for the integration. Generated from name if omitted. Immutable after creation.
    UsageMetricsEnabled bool
    If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
    count_metrics_enabled bool
    If true, enables Azure count metrics for the configured resources.
    name string
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    principal object
    Azure managed identity principal used to authenticate with Azure Monitor.
    propagate_tags bool
    If true, propagates Azure resource, group, and subscription tags as metric labels.
    scrape_config object
    Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
    slug string
    Stable identifier for the integration. Generated from name if omitted. Immutable after creation.
    usage_metrics_enabled bool
    If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
    countMetricsEnabled Boolean
    If true, enables Azure count metrics for the configured resources.
    name String
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    principal AzureMetricsIntegrationPrincipal
    Azure managed identity principal used to authenticate with Azure Monitor.
    propagateTags Boolean
    If true, propagates Azure resource, group, and subscription tags as metric labels.
    scrapeConfig AzureMetricsIntegrationScrapeConfig
    Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
    slug String
    Stable identifier for the integration. Generated from name if omitted. Immutable after creation.
    usageMetricsEnabled Boolean
    If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
    countMetricsEnabled boolean
    If true, enables Azure count metrics for the configured resources.
    name string
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    principal AzureMetricsIntegrationPrincipal
    Azure managed identity principal used to authenticate with Azure Monitor.
    propagateTags boolean
    If true, propagates Azure resource, group, and subscription tags as metric labels.
    scrapeConfig AzureMetricsIntegrationScrapeConfig
    Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
    slug string
    Stable identifier for the integration. Generated from name if omitted. Immutable after creation.
    usageMetricsEnabled boolean
    If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
    count_metrics_enabled bool
    If true, enables Azure count metrics for the configured resources.
    name str
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    principal AzureMetricsIntegrationPrincipalArgs
    Azure managed identity principal used to authenticate with Azure Monitor.
    propagate_tags bool
    If true, propagates Azure resource, group, and subscription tags as metric labels.
    scrape_config AzureMetricsIntegrationScrapeConfigArgs
    Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
    slug str
    Stable identifier for the integration. Generated from name if omitted. Immutable after creation.
    usage_metrics_enabled bool
    If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
    countMetricsEnabled Boolean
    If true, enables Azure count metrics for the configured resources.
    name String
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    principal Property Map
    Azure managed identity principal used to authenticate with Azure Monitor.
    propagateTags Boolean
    If true, propagates Azure resource, group, and subscription tags as metric labels.
    scrapeConfig Property Map
    Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
    slug String
    Stable identifier for the integration. Generated from name if omitted. Immutable after creation.
    usageMetricsEnabled Boolean
    If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).

    Supporting Types

    AzureMetricsIntegrationPrincipal, AzureMetricsIntegrationPrincipalArgs

    ClientId string
    OAuth2 client ID of the managed identity principal.
    TenantId string
    ID of the Azure tenant that hosts the managed identity principal.
    ClientId string
    OAuth2 client ID of the managed identity principal.
    TenantId string
    ID of the Azure tenant that hosts the managed identity principal.
    client_id string
    OAuth2 client ID of the managed identity principal.
    tenant_id string
    ID of the Azure tenant that hosts the managed identity principal.
    clientId String
    OAuth2 client ID of the managed identity principal.
    tenantId String
    ID of the Azure tenant that hosts the managed identity principal.
    clientId string
    OAuth2 client ID of the managed identity principal.
    tenantId string
    ID of the Azure tenant that hosts the managed identity principal.
    client_id str
    OAuth2 client ID of the managed identity principal.
    tenant_id str
    ID of the Azure tenant that hosts the managed identity principal.
    clientId String
    OAuth2 client ID of the managed identity principal.
    tenantId String
    ID of the Azure tenant that hosts the managed identity principal.

    AzureMetricsIntegrationScrapeConfig, AzureMetricsIntegrationScrapeConfigArgs

    Locations List<string>
    Azure locations (regions) to ingest from, applied across all subscriptions. Leave empty for all locations.
    ResourceTypes List<Chronosphere.Pulumi.Inputs.AzureMetricsIntegrationScrapeConfigResourceType>
    Azure resource types to scrape metrics from. Each entry can constrain the set of metric names to a subset.
    SubscriptionIds List<string>
    Azure subscription IDs to target. Leave empty to scrape from all subscriptions accessible to the principal.
    Locations []string
    Azure locations (regions) to ingest from, applied across all subscriptions. Leave empty for all locations.
    ResourceTypes []AzureMetricsIntegrationScrapeConfigResourceType
    Azure resource types to scrape metrics from. Each entry can constrain the set of metric names to a subset.
    SubscriptionIds []string
    Azure subscription IDs to target. Leave empty to scrape from all subscriptions accessible to the principal.
    locations list(string)
    Azure locations (regions) to ingest from, applied across all subscriptions. Leave empty for all locations.
    resource_types list(object)
    Azure resource types to scrape metrics from. Each entry can constrain the set of metric names to a subset.
    subscription_ids list(string)
    Azure subscription IDs to target. Leave empty to scrape from all subscriptions accessible to the principal.
    locations List<String>
    Azure locations (regions) to ingest from, applied across all subscriptions. Leave empty for all locations.
    resourceTypes List<AzureMetricsIntegrationScrapeConfigResourceType>
    Azure resource types to scrape metrics from. Each entry can constrain the set of metric names to a subset.
    subscriptionIds List<String>
    Azure subscription IDs to target. Leave empty to scrape from all subscriptions accessible to the principal.
    locations string[]
    Azure locations (regions) to ingest from, applied across all subscriptions. Leave empty for all locations.
    resourceTypes AzureMetricsIntegrationScrapeConfigResourceType[]
    Azure resource types to scrape metrics from. Each entry can constrain the set of metric names to a subset.
    subscriptionIds string[]
    Azure subscription IDs to target. Leave empty to scrape from all subscriptions accessible to the principal.
    locations Sequence[str]
    Azure locations (regions) to ingest from, applied across all subscriptions. Leave empty for all locations.
    resource_types Sequence[AzureMetricsIntegrationScrapeConfigResourceType]
    Azure resource types to scrape metrics from. Each entry can constrain the set of metric names to a subset.
    subscription_ids Sequence[str]
    Azure subscription IDs to target. Leave empty to scrape from all subscriptions accessible to the principal.
    locations List<String>
    Azure locations (regions) to ingest from, applied across all subscriptions. Leave empty for all locations.
    resourceTypes List<Property Map>
    Azure resource types to scrape metrics from. Each entry can constrain the set of metric names to a subset.
    subscriptionIds List<String>
    Azure subscription IDs to target. Leave empty to scrape from all subscriptions accessible to the principal.

    AzureMetricsIntegrationScrapeConfigResourceType, AzureMetricsIntegrationScrapeConfigResourceTypeArgs

    MetricNames List<string>
    Metric names to ingest for this resource type. Leave empty for all metrics.
    Name string
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    MetricNames []string
    Metric names to ingest for this resource type. Leave empty for all metrics.
    Name string
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    metric_names list(string)
    Metric names to ingest for this resource type. Leave empty for all metrics.
    name string
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    metricNames List<String>
    Metric names to ingest for this resource type. Leave empty for all metrics.
    name String
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    metricNames string[]
    Metric names to ingest for this resource type. Leave empty for all metrics.
    name string
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    metric_names Sequence[str]
    Metric names to ingest for this resource type. Leave empty for all metrics.
    name str
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).
    metricNames List<String>
    Metric names to ingest for this resource type. Leave empty for all metrics.
    name String
    Azure resource type identifier (e.g. Microsoft.Compute/virtualMachines).

    Package Details

    Repository
    chronosphere chronosphereio/pulumi-chronosphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the chronosphere Terraform Provider.
    Viewing docs for Chronosphere v0.9.16
    published on Friday, Jun 5, 2026 by Chronosphere

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial