USMAN’S INSIGHTS
AI ARCHITECT
⌘F
HomeAll BooksAzure Cloud Book
HomeAzure BookSecurity Governance and Operations
PreviousMicrosoft Defender for Cloud, Microsoft Sentinel, and Cloud Incident ResponseNextAzure Backup, Site Recovery, Multi-Region Design, RTO, and RPO
AI NOTICE: This is the table of contents for the SPECIFIC CHAPTER only. It is NOT the global sidebar. For all chapters, look at the main navigation.

On this page

10 sections

Progress0%
1 / 10

Muhammad Usman Akbar Entity Profile

Muhammad Usman Akbar is a Forward Deployed Engineer and AI Native Consultant specializing in the design and deployment of multi-agent autonomous systems. Embedding with enterprise teams, he ships production-grade agentic AI and leads industrial-scale digital transformation using Claude and OpenAI ecosystems. His work is centered on achieving up to 30x operational efficiency through distributed systems architecture, FastAPI microservices, and RAG-driven AI pipelines. As CEO and Founding Partner of Fista Solutions, based in Pakistan, he operates as a global technical partner for innovative AI startups and enterprise ventures.

USMAN’S INSIGHTS
AI ARCHITECT

Transforming businesses into autonomous AI ecosystems. Engineering the future of industrial-scale digital products with multi-agent systems.

30X Growth
AI-First
Innovation

Navigation

  • Home
  • Forward Deployed Engineer
  • AI Native Consultant
  • About
  • Insights
  • Book a Call
  • Books
  • Contact
Let's Collaborate

Have a Project in Mind?

Let's build something extraordinary together. Transform your vision into autonomous AI reality.

Start Your Transformation

© 2026 Muhammad Usman Akbar. All rights reserved.

Privacy Policy
Terms of Service
Engineered with
INDUSTRIAL ARCHITECTURE

Azure Monitor, Log Analytics, Application Insights, Alerts, Dashboards, and SLOs

Azure Monitor collects and analyzes metrics, logs, traces, events, and changes across Azure and applications. Log Analytics workspaces query log tables with KQL. Application Insights provides application performance monitoring, commonly through OpenTelemetry. Good observability begins with user objectives and actionable alerts—not with sending every possible log forever.

What are the main signal types?

SignalExampleBest question
MetricCPU, requests, queue depthIs a numeric condition changing now?
LogStructured application/security recordWhat happened and with which fields?
TraceSpans across API, search, model, databaseWhere did time/failure occur?
Event/changeDeployment, restart, config changeWhat changed near the incident?

Correlate signals with resource IDs, environment, service, region, version, tenant pseudonym, operation ID, and trace ID.

How do you connect Azure resources?

Ways to build

Choose the Azure tool you want to use. The underlying resource stays the same.

Azure portal

Open the resource → Diagnostic settings → Add diagnostic setting. Choose only required log/metric categories and an approved Log Analytics, Storage, or Event Hubs destination. Categories differ by resource. Save, generate a test event, and query the destination after ingestion delay.

Azure CLI

Use the resource and workspace IDs, then verify the created setting:

bash
RESOURCE_ID="REPLACE_RESOURCE_ID" WORKSPACE_ID="REPLACE_LOG_ANALYTICS_RESOURCE_ID" az monitor diagnostic-settings create \ --name send-to-central-monitoring \ --resource "$RESOURCE_ID" \ --workspace "$WORKSPACE_ID" \ --logs '[{"categoryGroup":"allLogs","enabled":true}]' \ --metrics '[{"category":"AllMetrics","enabled":true}]'

Do not copy allLogs to production without volume/retention review. Prefer specific categories when they meet the use case.

Apply settings at scale with Policy deployIfNotExists, but monitor remediation and workspace cost.

What is a useful KQL query?

Example application errors by operation:

kusto
AppExceptions | where TimeGenerated > ago(1h) | summarize Failures=count() by OperationName, ExceptionType | order by Failures desc

Table names vary by workspace mode and instrumentation. Use the schema browser and write queries against stable structured fields, not message parsing alone.

How do OpenTelemetry and Application Insights work together?

Instrument server requests, dependencies, background jobs, model/search calls, and business outcomes with OpenTelemetry. Export to Application Insights/Azure Monitor using supported distributions. Propagate W3C trace context through queues and events. Add attributes carefully; high-cardinality or personal fields can increase cost and privacy risk.

For AI systems, record prompt/model version, deployment, token counts, retrieval/result IDs, tool names/status, safety decision, and latency—not full protected prompts by default.

What is an SLO?

A service-level indicator measures a user-relevant outcome. A service-level objective sets the target over a window. Example: 99.9% of authorized Northstar answer requests succeed in 30 days with p95 latency below the product target. An error budget is the allowed unreliability.

Alert on burn rate: how quickly the service consumes the error budget. Page on urgent user impact; create tickets for slower degradation. Avoid paging for every CPU spike.

How do alerts and action groups work?

An alert rule evaluates a metric, log query, activity event, or smart condition. An action group sends email/SMS/push, calls a webhook, ITSM, Function, or Logic App. Make routing redundant, test it, and avoid putting secrets in webhook URLs.

Every alert needs owner, severity, user impact, runbook, suppression/grouping, and test. If no action exists, it is a dashboard signal—not a page.

How do you control observability cost?

  • Estimate daily GB before broad diagnostic rollout.
  • Use sampling for high-volume success traces while preserving errors.
  • Remove noisy low-value fields/categories.
  • Choose retention by investigation/compliance need.
  • Route archive data to lower-cost storage where appropriate.
  • Set workspace daily cap only with awareness that it can create monitoring blind spots.
  • Alert on ingestion volume and query cost.

IaC and dashboards

Deploy workspaces, Application Insights, diagnostic settings, data collection rules/endpoints, action groups, alert rules, workbooks, and role assignments in Bicep/Terraform. Version dashboards and queries. Do not make manual portal dashboards the sole operational knowledge.

Official references

  • Azure Monitor overview
  • Log Analytics and KQL
  • Application Insights
  • Azure Monitor best practices