# Gather Azure resources metrics from Azure Monitor API [[inputs.azure_monitor]] # can be found under Overview->Essentials in the Azure portal for your application/service subscription_id = "<>" # can be obtained by registering an application under Azure Active Directory client_id = "<>" # can be obtained by registering an application under Azure Active Directory. # If not specified Default Azure Credentials chain will be attempted: # - Environment credentials (AZURE_*) # - Workload Identity in Kubernetes cluster # - Managed Identity # - Azure CLI auth # - Developer Azure CLI auth client_secret = "<>" # can be found under Azure Active Directory->Properties tenant_id = "<>" # Define the optional Azure cloud option e.g. AzureChina, AzureGovernment or AzurePublic. The default is AzurePublic. # cloud_option = "AzurePublic" # resource target #1 to collect metrics from [[inputs.azure_monitor.resource_target]] # can be found under Overview->Essentials->JSON View in the Azure portal for your application/service # must start with 'resourceGroups/...' ('/subscriptions/xxxxxxxx-xxxx-xxxx-xxx-xxxxxxxxxxxx' # must be removed from the beginning of Resource ID property value) resource_id = "<>" # the metric names to collect # leave the array empty to use all metrics available to this resource metrics = [ "<>", "<>" ] # metrics aggregation type value to collect # can be 'Total', 'Count', 'Average', 'Minimum', 'Maximum' # leave the array empty to collect all aggregation types values for each metric aggregations = [ "<>", "<>" ] # resource target #2 to collect metrics from [[inputs.azure_monitor.resource_target]] resource_id = "<>" metrics = [ "<>", "<>" ] aggregations = [ "<>", "<>" ] # resource group target #1 to collect metrics from resources under it with resource type [[inputs.azure_monitor.resource_group_target]] # the resource group name resource_group = "<>" # defines the resources to collect metrics from [[inputs.azure_monitor.resource_group_target.resource]] # the resource type resource_type = "<>" metrics = [ "<>", "<>" ] aggregations = [ "<>", "<>" ] # defines the resources to collect metrics from [[inputs.azure_monitor.resource_group_target.resource]] resource_type = "<>" metrics = [ "<>", "<>" ] aggregations = [ "<>", "<>" ] # resource group target #2 to collect metrics from resources under it with resource type [[inputs.azure_monitor.resource_group_target]] resource_group = "<>" [[inputs.azure_monitor.resource_group_target.resource]] resource_type = "<>" metrics = [ "<>", "<>" ] aggregations = [ "<>", "<>" ] # subscription target #1 to collect metrics from resources under it with resource type [[inputs.azure_monitor.subscription_target]] resource_type = "<>" metrics = [ "<>", "<>" ] aggregations = [ "<>", "<>" ] # subscription target #2 to collect metrics from resources under it with resource type [[inputs.azure_monitor.subscription_target]] resource_type = "<>" metrics = [ "<>", "<>" ] aggregations = [ "<>", "<>" ]