Data collection in Azure Monitor

Azure Monitor collects telemetry from Azure resources, applications, operating systems, Kubernetes clusters, custom clients, and hybrid or multicloud environments. Different sources and signals support different collection methods.

This article guides you through five planning steps:

  1. Identify the collection paths supported for your source and signal.
  2. Understand how collection affects cost.
  3. Choose a topology for your operational needs.
  4. Decide where to process data.
  5. Understand storage and connected experiences.

For a source-by-source catalog, see Azure Monitor data sources and data collection methods.

1. Identify supported collection paths

Azure Monitor provides three broad collection families:

Diagram comparing three collection paths that use a common cloud ingestion endpoint in Azure Monitor. With platform-native collection, Azure automatically collects platform logs and metrics. With direct collection, an instrumented application or client sends through an SDK or client API without a separate collector. With collector-based collection, an agent on the source sends through a shared pipeline outside the source.

These paths aren't mutually exclusive. For example, you can use platform-native collection for an Azure resource, Application Insights for its application, and Azure Monitor agent for its guest operating system.

2. Understand collection costs

There's no separate Azure Monitor usage charge for Azure Monitor agent. Azure Monitor charges are based on the data uploaded to the cloud and the ingestion, retention, or storage pricing for its destination. Azure Monitor cloud ingestion and storage volume exclude data that Azure Monitor agent filters out before upload.

You remain responsible for costs outside the Azure Monitor collection service. Depending on your topology, these costs can include compute for an Arc-enabled Kubernetes cluster, and network transfer or egress charges.

For pricing and optimization guidance, see Azure Monitor Logs cost calculations and options and Cost optimization in Azure Monitor.

3. Choose a topology for your operational needs

When your source supports multiple paths, choose based on the operational characteristics you need:

  • Use Azure Monitor agent for collection and resilience on each monitored machine or Kubernetes cluster.

Explore topology paths

Select a tab to view the complete reference topology or focus on one collection path.

4. Decide where to process data

Data collection rules (DCRs) provide a common Azure control plane for collection, processing, and routing in supported scenarios.

Processing can occur in the application or source, on Azure Monitor agent, and during Azure Monitor cloud ingestion. Choose the stage based on your requirements:

  • Process before cloud upload to reduce network traffic, ingestion volume, or exposure of data that shouldn't leave the environment.
  • Process at cloud ingestion when the transformation needs the Azure Monitor schema or consistent cloud-side application.
  • Retain raw data when you might need it for future analysis, reprocessing, audit, or troubleshooting. Filtering or aggregation before upload permanently removes that detail from the cloud destination.

You can combine processing stages. Cloud transformations complement source, and agent, but they occur after data has already been uploaded.

Note

Multi-stage transformations are in public preview. A single DCR can coordinate client-side processing on Azure Monitor agent and ingestion-time processing in Azure Monitor. Learn more about multi-stage transformations.

5. Understand storage and connected experiences

Depending on the signal and collection method, Azure Monitor stores collected data in either Azure Monitor Logs or Azure Monitor Metrics.

  • Microsoft Sentinel provides security analytics over data in a Sentinel-enabled Log Analytics workspace.
  • Platform-native export scenarios can also use destinations such as Azure Storage or Event Hubs where supported.

Not every collection method supports every destination. Review the documentation for the selected method before finalizing your architecture.