published on Friday, Jun 5, 2026 by Chronosphere
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). - Count
Metrics boolEnabled - If true, enables Azure count metrics for the configured resources.
- Principal
Chronosphere.
Pulumi. Inputs. Azure Metrics Integration Principal - Azure managed identity principal used to authenticate with Azure Monitor.
- bool
- If true, propagates Azure resource, group, and subscription tags as metric labels.
- Scrape
Config Chronosphere.Pulumi. Inputs. Azure Metrics Integration Scrape Config - Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
- Slug string
- Stable identifier for the integration. Generated from
nameif omitted. Immutable after creation. - Usage
Metrics boolEnabled - 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 boolEnabled - If true, enables Azure count metrics for the configured resources.
- Principal
Azure
Metrics Integration Principal Args - Azure managed identity principal used to authenticate with Azure Monitor.
- bool
- If true, propagates Azure resource, group, and subscription tags as metric labels.
- Scrape
Config AzureMetrics Integration Scrape Config Args - Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
- Slug string
- Stable identifier for the integration. Generated from
nameif omitted. Immutable after creation. - Usage
Metrics boolEnabled - 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_ boolenabled - If true, enables Azure count metrics for the configured resources.
- principal object
- Azure managed identity principal used to authenticate with Azure Monitor.
- 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
nameif omitted. Immutable after creation. - usage_
metrics_ boolenabled - 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 BooleanEnabled - If true, enables Azure count metrics for the configured resources.
- principal
Azure
Metrics Integration Principal - Azure managed identity principal used to authenticate with Azure Monitor.
- Boolean
- If true, propagates Azure resource, group, and subscription tags as metric labels.
- scrape
Config AzureMetrics Integration Scrape Config - Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
- slug String
- Stable identifier for the integration. Generated from
nameif omitted. Immutable after creation. - usage
Metrics BooleanEnabled - 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 booleanEnabled - If true, enables Azure count metrics for the configured resources.
- principal
Azure
Metrics Integration Principal - Azure managed identity principal used to authenticate with Azure Monitor.
- boolean
- If true, propagates Azure resource, group, and subscription tags as metric labels.
- scrape
Config AzureMetrics Integration Scrape Config - Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
- slug string
- Stable identifier for the integration. Generated from
nameif omitted. Immutable after creation. - usage
Metrics booleanEnabled - 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_ boolenabled - If true, enables Azure count metrics for the configured resources.
- principal
Azure
Metrics Integration Principal Args - Azure managed identity principal used to authenticate with Azure Monitor.
- bool
- If true, propagates Azure resource, group, and subscription tags as metric labels.
- scrape_
config AzureMetrics Integration Scrape Config Args - Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
- slug str
- Stable identifier for the integration. Generated from
nameif omitted. Immutable after creation. - usage_
metrics_ boolenabled - 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 BooleanEnabled - If true, enables Azure count metrics for the configured resources.
- principal Property Map
- Azure managed identity principal used to authenticate with Azure Monitor.
- Boolean
- If true, propagates Azure resource, group, and subscription tags as metric labels.
- scrape
Config Property Map - Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
- slug String
- Stable identifier for the integration. Generated from
nameif omitted. Immutable after creation. - usage
Metrics BooleanEnabled - 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) -> AzureMetricsIntegrationfunc 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.
- Count
Metrics boolEnabled - 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. Azure Metrics Integration Principal - Azure managed identity principal used to authenticate with Azure Monitor.
- bool
- If true, propagates Azure resource, group, and subscription tags as metric labels.
- Scrape
Config Chronosphere.Pulumi. Inputs. Azure Metrics Integration Scrape Config - Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
- Slug string
- Stable identifier for the integration. Generated from
nameif omitted. Immutable after creation. - Usage
Metrics boolEnabled - If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
- Count
Metrics boolEnabled - If true, enables Azure count metrics for the configured resources.
- Name string
- Azure resource type identifier (e.g.
Microsoft.Compute/virtualMachines). - Principal
Azure
Metrics Integration Principal Args - Azure managed identity principal used to authenticate with Azure Monitor.
- bool
- If true, propagates Azure resource, group, and subscription tags as metric labels.
- Scrape
Config AzureMetrics Integration Scrape Config Args - Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
- Slug string
- Stable identifier for the integration. Generated from
nameif omitted. Immutable after creation. - Usage
Metrics boolEnabled - If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
- count_
metrics_ boolenabled - 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.
- 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
nameif omitted. Immutable after creation. - usage_
metrics_ boolenabled - If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
- count
Metrics BooleanEnabled - If true, enables Azure count metrics for the configured resources.
- name String
- Azure resource type identifier (e.g.
Microsoft.Compute/virtualMachines). - principal
Azure
Metrics Integration Principal - Azure managed identity principal used to authenticate with Azure Monitor.
- Boolean
- If true, propagates Azure resource, group, and subscription tags as metric labels.
- scrape
Config AzureMetrics Integration Scrape Config - Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
- slug String
- Stable identifier for the integration. Generated from
nameif omitted. Immutable after creation. - usage
Metrics BooleanEnabled - If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
- count
Metrics booleanEnabled - If true, enables Azure count metrics for the configured resources.
- name string
- Azure resource type identifier (e.g.
Microsoft.Compute/virtualMachines). - principal
Azure
Metrics Integration Principal - Azure managed identity principal used to authenticate with Azure Monitor.
- boolean
- If true, propagates Azure resource, group, and subscription tags as metric labels.
- scrape
Config AzureMetrics Integration Scrape Config - Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
- slug string
- Stable identifier for the integration. Generated from
nameif omitted. Immutable after creation. - usage
Metrics booleanEnabled - If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
- count_
metrics_ boolenabled - If true, enables Azure count metrics for the configured resources.
- name str
- Azure resource type identifier (e.g.
Microsoft.Compute/virtualMachines). - principal
Azure
Metrics Integration Principal Args - Azure managed identity principal used to authenticate with Azure Monitor.
- bool
- If true, propagates Azure resource, group, and subscription tags as metric labels.
- scrape_
config AzureMetrics Integration Scrape Config Args - Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
- slug str
- Stable identifier for the integration. Generated from
nameif omitted. Immutable after creation. - usage_
metrics_ boolenabled - If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
- count
Metrics BooleanEnabled - 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.
- Boolean
- If true, propagates Azure resource, group, and subscription tags as metric labels.
- scrape
Config Property Map - Scope of Azure subscriptions, locations, and resource types from which to ingest metrics.
- slug String
- Stable identifier for the integration. Generated from
nameif omitted. Immutable after creation. - usage
Metrics BooleanEnabled - If true, enables collection of Azure usage metrics under this principal (Microsoft.Compute, Microsoft.Network, Microsoft.Storage).
Supporting Types
AzureMetricsIntegrationPrincipal, AzureMetricsIntegrationPrincipalArgs
AzureMetricsIntegrationScrapeConfig, AzureMetricsIntegrationScrapeConfigArgs
- Locations List<string>
- Azure locations (regions) to ingest from, applied across all subscriptions. Leave empty for all locations.
- Resource
Types List<Chronosphere.Pulumi. Inputs. Azure Metrics Integration Scrape Config Resource Type> - 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 []string
- Azure locations (regions) to ingest from, applied across all subscriptions. Leave empty for all locations.
- Resource
Types []AzureMetrics Integration Scrape Config Resource Type - Azure resource types to scrape metrics from. Each entry can constrain the set of metric names to a subset.
- Subscription
Ids []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.
- resource
Types List<AzureMetrics Integration Scrape Config Resource Type> - 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 string[]
- Azure locations (regions) to ingest from, applied across all subscriptions. Leave empty for all locations.
- resource
Types AzureMetrics Integration Scrape Config Resource Type[] - Azure resource types to scrape metrics from. Each entry can constrain the set of metric names to a subset.
- subscription
Ids 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[AzureMetrics Integration Scrape Config Resource Type] - 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.
- resource
Types List<Property Map> - 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.
AzureMetricsIntegrationScrapeConfigResourceType, AzureMetricsIntegrationScrapeConfigResourceTypeArgs
- 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).
- Metric
Names []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).
- 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).
- metric
Names 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).
- 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).
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphereTerraform Provider.
published on Friday, Jun 5, 2026 by Chronosphere