Azure Storage Monitoring: Metrics and Logs That Show Real Cost

Azure storage monitoring answers three questions: how much are you storing, how is it used, and what does it cost? Azure gives you two ways to answer them. Metrics are free and cover most cost questions. Logs cost money and answer only one extra question: who made a request. This guide walks through both, in the order you should use them.

Key Takeaways

  • Start with platform metrics. They are free, need no setup and are kept for 93 days.
  • BlobCapacity split by access tier shows how much data sits in Hot. Moving 30,000 GB of rarely read data from Hot to Cool LRS saves $168 a month at East US list prices.
  • Turn on StorageBlobLogs only when you need to know who made a request. On a busy account doing 50 million requests a day, Analytics logs can cost about $3,440 a month.
  • Managed disk metrics show IOPS and throughput used, not how full the disk is. For used space you need the Azure Monitor Agent.

What is Azure storage monitoring?

Azure storage monitoring means reading the data Azure collects about your storage accounts and disks. That data comes from three sources:

SourceSetupCostWhat it tells you
Platform metricsNone, always onFreeHow much is stored, how many requests, how fast
Resource logs (StorageBlobLogs)A diagnostic settingBilled per GB ingestedWho made each request, and what happened
Guest OS data (Azure Monitor Agent)Agent and a data collection ruleBilled per GB ingestedHow full a disk is inside the VM

Source: Microsoft Learn, Monitor Azure Blob Storage and Azure Monitor Metrics overview.

Microsoft's guide to monitoring Azure Blob Storage makes the split clear. Metrics are collected automatically. Logs "aren't collected and stored until you create a diagnostic setting."

The rule of thumb is simple. Use metrics to find waste, because they are free. Turn on logs only when a metric shows a problem and you need to know which app or user caused it.

Which storage account metrics should you watch?

Six metrics on each storage account answer most cost questions. The table lists them, and the notes below explain each one in the same order.

MetricUnitFinest time grain
UsedCapacityBytes1 hour
TransactionsCount1 minute
IngressBytes1 minute
EgressBytes1 minute
SuccessE2ELatencyMilliseconds1 minute
AvailabilityPercent1 minute

Source: Microsoft Learn, supported metrics for Microsoft.Storage/storageAccounts.

  1. UsedCapacity is the total data stored in the account, across blobs, files, tables and queues. This is the number your capacity bill follows.
  2. Transactions counts requests. Each request type has a price: in East US, Hot LRS bills $0.05 per 10,000 writes and $0.004 per 10,000 reads, so writes cost 12.5 times as much. Split Transactions by ApiName to see which operations drive cost, and by ResponseType to spot failed requests and retries that inflate the count.
  3. Ingress is data written into the account. A sudden jump usually means a new job or a backup started writing there.
  4. Egress is data read out of the account. It includes traffic that stays inside Azure, and Microsoft states it "does not reflect billable egress." Use it to spot unusual reads, then check the actual charge in Cost Management.
  5. SuccessE2ELatency is how long successful requests take. It matters for cost when teams move data to a cheaper tier and want to confirm the app is still fast enough.
  6. Availability is the share of requests that succeeded. A drop here often shows up as extra Transactions from retries.

How do you see which access tier your data is in?

Split the BlobCapacity metric by its Tier dimension. It shows how many bytes sit in Hot, Cool, Cold and Archive, which is where most Blob savings come from. BlobCount does the same for the number of objects.

Run this to see bytes per tier for one account:

ACCT=$(az storage account show -g <rg> -n <account> --query id -o tsv)

az monitor metrics list --resource "$ACCT/blobServices/default" --metric BlobCapacity

--filter "Tier eq '*'" --interval PT1H --aggregation Average -o table

You should see one row per tier. If you don't, check that the resource ID ends in /blobServices/default.

What to look for: a large Hot share with few read Transactions. That data is paying Hot prices for no reason and is a candidate for a lifecycle rule. Our Azure storage cost optimization guide covers how to write one.

For Azure Files, compare FileCapacity with FileShareCapacityQuota for each share. On provisioned shares you pay for the quota, so a share holding 2 TiB with a 10 TiB quota is mostly empty space. PercentFileShareUtilization gives you that ratio directly.

How fresh are the numbers, and how long are they kept?

Azure keeps platform metrics for 93 days. Request metrics such as Transactions update every minute. Capacity metrics such as UsedCapacity and BlobCapacity update less often: they are emitted hourly but recalculated only a few times a day, so don't expect them to move within the hour.

If you need more than 93 days of capacity history, export it yourself. A scheduled az monitor metrics list job writing to your own store is the simplest way.

To see many accounts at once, open Storage insights in Azure Monitor. It is free, needs no setup and charts capacity, transactions, latency and availability for up to 200 accounts. Its Capacity tab is the quickest way to rank accounts by size.

When do you need StorageBlobLogs, and what do they cost?

You need StorageBlobLogs when a metric shows a problem but not its cause, for example which app is listing millions of blobs or which caller is getting errors. For capacity and tier questions, you don't need them.

Each log record includes the operation, status code, duration, caller IP, URI and identity. Logs are split into three categories: StorageRead, StorageWrite and StorageDelete.

Logs sent to a Log Analytics workspace are billed by volume (East US, Nov 2026, Azure Retail Prices API):

  • Analytics Logs ingestion: first 5 GB free, then $2.30 per GB, with 31 days of retention included
  • Basic Logs ingestion: $0.50 per GB, with fewer query features
  • Retention beyond the included period: $0.10 per GB per month

To see how much you already ingest, run this in the workspace:

Usage

| where TimeGenerated > ago(30d)

| where DataType == "StorageBlobLogs" and IsBillable == true

| summarize IngestedGB = sum(Quantity) / 1000

Quantity is in MB, so dividing by 1,000 gives GB.

Which alerts should you set?

Set one alert on capacity and one on transactions for each important account. The first 10 monitored alert series are free; after that each costs $0.10 a month (East US, Nov 2026).

This alert fires when an account passes 5 TiB:

az monitor metrics alert create -n "sa-usedcapacity-over-5TiB" -g <rg> --scopes

"$ACCT" --condition "avg UsedCapacity > 5497558138880" --window-size 1h --evaluation-

frequency 1h

5 TiB is 5,497,558,138,880 bytes. Use a window of at least one hour, since capacity metrics don't update faster than that. Microsoft also suggests alerts on throttling, availability below 99% and egress above 500 GiB a day.

How do you monitor managed disks?

Managed disks have their own metrics on the VM. The most useful are Data Disk IOPS Consumed Percentage and Data Disk Bandwidth Consumed Percentage, which show how much of the disk's paid performance you actually use.

VM=$(az vm show -g <rg> -n <vm> --query id -o tsv)

az monitor metrics list --resource "$VM" --metric "Data Disk IOPS Consumed

Percentage" --dimension LUN --aggregation Maximum --interval PT1H --offset 7d -o

table

A disk whose peak stays in single digits for weeks is paying for performance it doesn't use.

These metrics don't show how full the disk is. For that, install the Azure Monitor Agent (VM insights), which sends free space per volume to Log Analytics:

InsightsMetrics

| where TimeGenerated > ago(24h)

| where Namespace == "LogicalDisk" and Name == "FreeSpacePercentage"

| summarize P90 = percentile(Val, 90) by Computer

| top 10 by P90 desc

This matters because you pay for the disk's provisioned size, not the data on it. In East US a 1 TiB P30 costs $135.17 a month and a 512 GiB P20 costs $73.22. A P30 holding 300 GiB would fit on a P20, a gap of $61.95 a month. See our Azure managed disk guide and Azure disk pricing for tier options.

Worked example: logs vs metrics only

Take one storage account serving 50 million requests a day. Assume all three log categories go to Analytics Logs and each record is about 1,000 bytes (measure yours with the _BilledSize column). That is 1.5 billion records and 1,500 GB of logs a month.

OptionArithmeticMonthly cost
All logs, Analytics plan(1,500 − 5) × $2.30$3,438.50
All logs, Basic plan1,500 × $0.50$750.00
Writes and deletes only (150 GB)(150 − 5) × $2.30$333.50
Metrics only, 3 alertsFree$0.00

For scale, if all 1.5 billion requests were Hot reads, the reads themselves would cost 150,000 × $0.004 = $600 a month. Full Analytics logging costs about 5.7 times that.

Now use the free metrics instead. BlobCapacity shows 40,000 GB in Hot, and read Transactions show that 30,000 GB of it is rarely touched. Moving that 30,000 GB to Cool saves 30,000 × ($0.0208 − $0.0152) = $168 a month. Cool has a 30-day minimum and tier changes are billed per object, so check BlobCount first.

The takeaway: metrics find the waste for free. Logs explain behavior, at a price.

How do you change monitoring settings safely?

  1. Confirm the problem with free metrics before turning on any logs.
  2. Turn on one log category at a time, starting with StorageWrite and StorageDelete. Add StorageRead only if you need read details.
  3. After 24 hours, run the Usage query and compare GB per day with your estimate.
  4. Remove the diagnostic setting when the investigation ends.
  5. Check the Log Analytics line in Cost analysis after the next refresh.
  6. For tier changes, test a lifecycle rule on one container first, keep soft delete on, and watch BlobCapacity by Tier the next day.

WS=$(az monitor log-analytics workspace show -g <rg> -n <workspace> --query id -o tsv)

az monitor diagnostic-settings create -n blob-write-delete --resource "$ACCT/blobServices/default" --workspace "$WS" --logs

'[{"category":"StorageWrite","enabled":true},

{"category":"StorageDelete","enabled":true}]'

For managed disks, take an incremental snapshot before any resize or type change.

Where Lucidity fits

Metrics tell you a disk is oversized. Acting on that safely is the slow part. Lucidity's Assessment gives a read-only Free Insights report of disk utilization across your subscriptions. AutoScaler then expands and shrinks live managed disks with zero downtime, and the Disk Tiering, Idle Disk and Blob modules cover the wrong tier, unused disks and object storage. Get free insights to see where your storage spend goes.

Frequently Asked Questions

Are Azure storage metrics free?

Yes. Platform metrics cost nothing to collect and are kept for 93 days. You pay only for exporting them or for alerts beyond the first 10 series.

Why doesn't the Egress metric match my bandwidth bill?

Egress counts all data leaving the storage service, including traffic within Azure. Microsoft states it "does not reflect billable egress." Use Cost Management for the billed amount.

How often does BlobCapacity update?

It is emitted hourly but recalculated only a few times a day. Use time grains of one hour or more.

Can I see managed disk used space in Azure Monitor metrics?

No. Disk metrics cover IOPS, throughput, latency and burst credits. Used space needs the Azure Monitor Agent or VM insights.

Should I send StorageBlobLogs to a storage account instead?

You can. It avoids Log Analytics ingestion charges, but you lose KQL queries and pay for the storage instead. You can't send logs to the account being monitored.

Table of Contents

Author
Pranshu Mishra

Pranshu Mishra

Experienced AWS Cloud Engineer with a demonstrated history of working in the information technology and services industry.