Skip to main content

Azure metrics

Overview

Microsoft Azure provides built-in monitoring and observability tools that allow users to collect and analyze metrics and logs from their Azure resources. Send Azure metrics seamlessly to Coralogix. Search, analyze, and visualize your data, gaining insights into application behavior, identifying errors, and troubleshooting problems.

For more information about this integration, click here.

How to use with Terraform

To deploy this integration using Terraform, you can use the coralogix_integration resource provided by the Coralogix Terraform provider. Below is an example configuration:

resource "coralogix_integration" "azure-metrics-collector" {
integration_key = "azure-metrics-collector"
version = "1.8.0"

parameters = {
IntegrationName = "AzureMetricsCollector"

AuthorizationEnabled = false
TenantId = "<TenantId>"
ClientId = <ClientId>
ClientSecret = <ClientSecret>
DiscoverSubscriptions = true

ApplicationName = "azure"
SubsystemName = "myapp"

EnableServiceBusMetrics = false
EnableUsageMetrics = true
EnableSqlDbMetrics = true
EnableApiUsageMetrics = true

ResourceTagFilter = "env:^prod$, system:(?i)prod, monitored, !testonly"
}
}

Replace the placeholder values with your actual configuration parameters. Refer to the parameter table below for required fields and their descriptions.

Note

TenantId is the Azure Directory (tenant) ID from Microsoft Entra ID > Overview for both authentication methods.

ClientId and ClientSecret are used only when AuthorizationEnabled = false, which corresponds to the Client Credentials flow.

Revisions

New configuration option for monitoring Azure ARM API rate limits. When enabled, the integration collects three metrics (azure_management_api_remaining_requests_subscription, azure_management_api_remaining_requests_global, azure_management_api_remaining_requests_tenant), reporting remaining API request quota at subscription, global, and tenant scopes for both read and write operations. See Azure API Rate Limits for details.

NameTypeRequiredDescription
IntegrationNameStringYesName identifying the integration.
TenantIdStringYesThe tenant ID found in the Azure app registration.
ClientIdStringNoThe client ID found in the Azure app registration.
AuthorizationEnabledBooleanNoTrue to use a multi-tenant app with admin consent. False to use an Azure App Registration with a client secret.
ClientSecretStringNoThe client secret, if AuthorizationEnabled is false.
DiscoverSubscriptionsBooleanYesMetrics will be collected for all visible subscriptions.
SubscriptionIdsListNoList of Subscription IDs for which to collect metrics. Must be present if DiscoverSubscriptions is false. Not allowed if DiscoverSubscriptions is true.
ResourceNameFilterStringNoSpecify a RegEx to serve as a filter based on the name of the Azure resource being monitored.
ResourceTagFilterStringNoOnly metrics for resources with tags matching the filter will be ingested. The filter is a comma-separated list of key or key:regex expressions. Prefix with ! to negate. Example: env:^prod$, env2:(?i)prod, !scope:"main scope", monitored, !testonly
ResourceTypesListNoSelect one or more Resource Types to filter the available options for the Metric Namespaces. If left unselected, all Metric Namespaces will be available. This option does not control what would be collected, it will only filter available options in Select Metric Namespaces.
MetricNamespacesListNoSpecify the Azure Metric Namespaces of the metrics that you want to pull into Coralogix or leave empty to pull all the metrics.
ApplicationNameStringNoThe default name of the application that the integration will be used with. This is used as a fallback when no labels match.
ApplicationLabelsListNoSelect labels whose values will be used as the Application Name. If more than one label can be matched, the first match in the list will be used.
SubsystemNameStringNoThe default name of the subsystem that the integration will be used with. This is used as a fallback when no labels match.
SubsystemLabelsListNoSelect labels whose values will be used as the Subsystem Name. If more than one label can be matched, the first match in the list will be used.
EnableServiceBusMetricsBooleanYesCreate metrics from Azure ServiceBus statistics.
EnableUsageMetricsBooleanYesCreate metrics from Azure Compute usage data.
EnableSqlDbMetricsBooleanNoCollect additional SQL Server metrics.
EnableVirtualNetworksMetricsBooleanNoCreate metrics from Azure Virtual networks data.
EnableApiUsageMetricsBooleanNoCollect Azure ARM API rate limit remaining requests metrics.
EnableSubscriptionLabelBooleanNoAdd subscription_name label to metrics.
Last updated on
Was this page helpful?