1. Packages
  2. Chronosphere
  3. API Docs
  4. AzureMetricsIntegration
Chronosphere v0.9.10 published on Thursday, Oct 23, 2025 by Chronosphere

chronosphere.AzureMetricsIntegration

Get Started
chronosphere logo
Chronosphere v0.9.10 published on Thursday, Oct 23, 2025 by Chronosphere

    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.
    
    

    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),
    })
    
    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:

    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 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}
    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:

    Supporting Types

    AzureMetricsIntegrationPrincipal, AzureMetricsIntegrationPrincipalArgs

    ClientId string
    TenantId string
    ClientId string
    TenantId string
    clientId String
    tenantId String
    clientId string
    tenantId string
    clientId String
    tenantId String

    AzureMetricsIntegrationScrapeConfig, AzureMetricsIntegrationScrapeConfigArgs

    AzureMetricsIntegrationScrapeConfigResourceType, AzureMetricsIntegrationScrapeConfigResourceTypeArgs

    MetricNames List<string>
    Name string
    MetricNames []string
    Name string
    metricNames List<String>
    name String
    metricNames string[]
    name string
    metric_names Sequence[str]
    name str
    metricNames List<String>
    name String

    Package Details

    Repository
    chronosphere chronosphereio/pulumi-chronosphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the chronosphere Terraform Provider.
    chronosphere logo
    Chronosphere v0.9.10 published on Thursday, Oct 23, 2025 by Chronosphere
      Meet Neo: Your AI Platform Teammate