grafana
19 TopicsAzure Resource Graph is now supported in Grafana's Azure Monitor data source
Azure Resource Graph (ARG) is a service in Azure that is designed to extend Azure Resource Management by providing efficient and performant resource exploration, with the ability to query at scale across a given set of subscriptions so that you can effectively govern your environment. By querying ARG, you can query resources with complex filtering, iteratively explore resources based on governance requirements, and assess the impact of applying policies in a vast cloud environment. With Grafana 8.0, we are happy to announce that Azure monitor data source now supports querying Azure resource graph. There is no extra configuration needed to use this service. Queries are written in the Kusto Query Language and Azure Resource Graph query results are formatted as table data. If your credentials give you access to multiple subscriptions, then you can select them before entering the query.12KViews2likes6CommentsManaged Identity support for Azure hosted Grafana and Azure Monitor data source
Customers who host Grafana in Azure (e.g., App Service, Azure Virtual Machines) and have managed identity enabled on their VM, will now be able to avail of managed identity based in Grafana. This will simplify the data source configuration and will allow Azure data sources (e.g., Azure Monitor) to be authenticated in Azure services via the managed identity without having to manually configure service identity via App Registration for each data source. To enable this, you will need to set the managed_identity_enabled = true in the grafana server config.3KViews3likes0CommentsWhat’s new in Azure SRE Agent at Microsoft Ignite 2026
At Microsoft Ignite 2026, Azure SRE Agent joins Microsoft Teams as a member of your team, with its own Microsoft Entra agent identity. It also now collaborates with other teams’ agents, investigates across AWS and Google Cloud, and starts work from the Azure Container Apps portal, Azure CLI, Grafana, and connector triggers.2.4KViews2likes0CommentsAnnouncing new security, maintenance and analytics features for PostgreSQL at Microsoft Build 2026
At Microsoft Build 2026, we’re announcing a major wave of PostgreSQL innovation across Azure. Alongside the public preview of Azure HorizonDB, we’re delivering a broad set of enhancements for our fully managed open-source PostgreSQL service: Azure Database for PostgreSQL flexible server. These updates span performance, analytics, security, operations, resilience and migration - helping you build faster, operate with more control, secure your workloads, and modernize with confidence. Here’s a quick tour of the top flexible server announcements at Build 2026. Feature Highlights pg_ivm Extension Defender Security assessments temporal_tables Extension Cross-tenant CMK Automatic Entra token refresh libraries New Powershell module: Az.PostgreSQLFlexibleServer More control over planned maintenance Pre-Upgrade validation checks New Built-in Grafana dashboards Chaos Studio supports Azure Database for PostgreSQL AI-assisted Oracle to PostgreSQL migration Migration Service for Azure Database for PostgreSQL improvements (EDB, AlloyDB) Performance, Scale & Analytics pg_ivm Extension Generally Available Materialized views are a useful way to optimize performance for queries that run regularly, but if underlying data becomes stale the result set needs to be recomputed. With the pg_ivm extension you can automatically maintain materialized views as the underlying data changes. This is particularly valuable for large datasets with small incremental changes that need real-time freshness, like dashboards, catalog analytics and SaaS usage reporting. We are pleased to announce the pg_ivm extension is now generally available in Azure Database for PostgreSQL. Learn more: pg_ivm. Security, Auditing & Identity Defender security assessments Preview Microsoft Defender Security Assessments for Azure Database for PostgreSQL enables continuous evaluation of your database security posture, helping identify vulnerabilities and misconfigurations across server and database configurations. Previously limited to reactive threat detection, in the latest preview release, Defender now provides proactive, risk-based insights through assessments tailored to PostgreSQL-specific best practices, delivering more relevant and actionable guidance. This helps you strengthen your security baseline, prioritize remediation, and align with best practices and compliance requirements. Learn more: https://aka.ms/Defender-Assessments-for-PG-Preview temporal_tables Extension Generally Available We’ve had many customer requests to support the temporal_tables extension, which provides built-in support for tracking and querying historical changes to data over time. Temporal tables are now generally available in Azure Database for PostgreSQL. With this extension enabled you can easily perform time-based queries, audit data changes, and maintain historical records without building custom tracking logic, simplifying application development and compliance scenarios. Learn more: temporal_tables Cross-tenant CMK Preview Azure Database for PostgreSQL now supports cross-tenant customer-managed keys (CMK) in public preview, allowing you to encrypt your data at rest using an Azure Key Vault key that resides in a separate Microsoft Entra tenant from the database service. This feature is designed for SaaS providers and enterprises that need to maintain strict separation of duties and ownership of encryption keys, enabling you to retain full control over key lifecycle management while PostgreSQL runs in a service provider’s tenant. Learn more: Data encryption at rest in Azure Database for PostgreSQL Automatic Entra token refresh libraries Preview We’re making it easier to use Entra ID authentication with Azure Database for PostgreSQL throughout the application stack by introducing new token refresh libraries for .NET, JavaScript, and Python. With Entra ID, access tokens are short-lived which can make managing their lifecycle complex in real-world applications. Developers need to be aware of token refresh and build additional handling around token expiration, connection retry, and session continuity. These new libraries remove that friction. By handling Entra token refresh seamlessly in the background, they allow applications to stay connected without interruption and with no custom logic required. The result is a simpler development experience and more resilient applications, especially for long-running or connection-heavy workloads. Across languages, the libraries provide a consistent and streamlined way to adopt secure, passwordless authentication, helping teams focus more on building their applications and less on managing authentication. Learn more: .NET, JavaScript, and Python. Operations, Maintenance & Monitoring New Powershell module: Az.PostgreSQLFlexibleServer Generally Available We’re excited to introduce the newly renamed Az.PostgreSQLFlexibleServer PowerShell module, delivering a streamlined experience for managing Azure Database for PostgreSQL with PowerShell. Building on the capabilities of the previous Az.PostgreSql module, the updated module aligns with the new features in the 2026-01-01 preview REST API. This module brings support for PostgreSQL 18, elastic clusters for scalable workloads and a range of enhancements designed to simplify management and improve performance. Whether you're provisioning new deployments or managing complex environments, this module ensures you can take full advantage of the latest platform capabilities directly from PowerShell. To learn more, visit our official documentation on PowerShell: Az.PostgreSql Module | Microsoft Learn More control over planned maintenance Generally Available We’ve seen many requests to provide more control when a maintenance update is applied to Azure Database for PostgreSQL. Sometimes when a critical workload is running you want to apply the maintenance when you’re ready. Announcing general availability this week, we’re building on the existing System and Custom maintenance window options and adding new self-service maintenance capabilities to the Azure portal. You can now reschedule upcoming maintenance updates for up to two weeks and apply maintenance on demand at a time that suits you. You can also view scheduled maintenance and review your server’s maintenance history after updates are complete. These options help you better align maintenance with your business schedules, reduce disruption during critical workload periods, and minimize the need for support-driven deferral requests. CLI and API support are coming soon. Learn more: https://aka.ms/azure-postgres-reschedule-maintenance Pre-Upgrade validation checks Preview Major version upgrades are critical for staying current with PostgreSQL features, security updates, and performance improvements, but you often discover blockers only after starting the upgrade workflow. Pre-Upgrade Validation Checks lets you validate upgrade readiness before initiating the actual upgrade by running Azure-specific upgrade checks and PostgreSQL pg_upgrade --check validations independently. The shift is simple: you can identify and fix upgrade blockers before the upgrade window begins. The feature surfaces actionable issues across configurations, extensions, dependencies, replication slots, event triggers, and other upgrade-sensitive objects. You can fix blockers, re-run validation until all checks pass, and proceed with the upgrade with greater predictability. Learn more: https://aka.ms/pg-flex-upgrade-checks New Built-in Grafana dashboards Generally Available Grafana dashboards are now built directly into the Azure portal for Azure Database for PostgreSQL - no setup, no extra cost, and no separate service to manage. You can open your PostgreSQL resource in the portal and immediately access prebuilt dashboards for key health and performance signals such as CPU, memory, storage, IOPS, connections, transactions, and availability. The key value is metrics + logs in one place. You can quickly correlate performance spikes with PostgreSQL logs, understand what changed, and troubleshoot faster using the familiar Grafana experience. Dashboards can also be customized, saved to your subscription, and shared across teams for ongoing operations. Learn more: https://aka.ms/azure-postgres-dashboards-grafana Resilience & Business Continuity Chaos Studio supports Azure Database for PostgreSQL Preview No matter how much you prepare, you only really know how good your database disaster recovery plan is when something breaks. With Chaos Studio support for Azure Database for PostgreSQL, you can simulate zone-down scenarios on PostgreSQL HA-enabled instances and validate the resilience of your mission-critical workloads. With Chaos Studio integration, you can proactively test failover behavior and gain confidence in how your applications respond to real-world zonal failures. This feature is currently available through a gated private preview. To get started, submit your subscription details using the form. Once reviewed, our team will enable the feature for your subscription, with guidance to help you begin testing. Getting started is simple: Create a Chaos Studio workspace via the Chaos Studio portal and configure your subscription, resource group, and region. Define the scope and assign the required managed identity and permissions. Review and verify your workspace setup. Browse available scenarios and select the PostgreSQL zone-down scenario. Configure the test (name, duration), then run it from My Library to begin validating failover behavior. With just a few steps, you’ll be able to simulate real-world failure conditions and gain confidence in your application’s resilience. To get started, please submit your details using this link: Private Preview Support for Chaos Studio Migration & Modernization AI-assisted Oracle to PostgreSQL migration Generally Available AI-assisted migration tooling has dramatically lowered the bar for moving between different databases and is changing the way people look at the return on investment for migration. The VS Code PostgreSQL extension comes with AI-Assisted migration tooling which converts Oracle schema and application code to Azure Database for PostgreSQL. This tooling uses GitHub Copilot, Microsoft Foundry, and custom Language Model tools to convert Oracle schema, database code and client applications into the PostgreSQL equivalents, and validates every change against a running flexible server instance. Learn more: Schema conversion, App conversion. Migration Service for Azure Database for PostgreSQL improvements (EDB, AlloyDB) Generally Available We’ve added AlloyDB and EDB Extended Server as new sources for migrating to PostgreSQL in the Azure Database for PostgreSQL Migration Service, with support for both online and offline migration support. Learn more: Migrate from AlloyDB, Migrate from EDB. Looking ahead That wraps up the Build 2026 announcements for Azure Database for PostgreSQL flexible server. There are also many great PostgreSQL technical sessions at Build this week, covering cloud-native app & AI development and migration. To find out more, here's a link to the Build session catalog for PostgreSQL sessions: https://aka.ms/Postgres-on-Azure_Build-2026. We'll continue to build out our roadmap over the coming months to deliver on your asks to improve the performance, security and stability of your PostgreSQL workloads. Check the Microsoft Blog for PostgreSQL for a regular monthly recap where we share the latest enhancements and product updates.1.7KViews2likes0CommentsManaging your data with Azure Managed Gafana integrations with Azure Monitor
Along with the announcement of Azure Managed Grafana, learn about new Grafana integrations with #Azure Monitor, including the ability to pin Azure Monitor visualizations from Azure Portal to Grafana dashboards and new out-of-the-box Azure Monitor dashboards! https://techcommunity.microsoft.com/t5/azure-observability-blog/enabling-full-stack-observability-with-azure-monitor-and-grafana/ba-p/3287145 How have you been using Azure Managed Grafana to manage your app data and infrastructure? How do you plan to use this new integration?1.1KViews0likes0CommentsHo w to correctly measure Bytes Received/sec &&&&& Bytes Sent/sec
I would like to correctly measure through log analytic and then in Grafana network traffic generated for one or more VMs. For test VMs I have enable Data collection rule and enabled collecting data every 60s for network Interface "Bytes Received/sec" and "Bytes Sent/sec". Inside metric is also enabled. Query that I use in log analytic is : Perf | where TimeGenerated between (datetime(2024-03-19) .. datetime(2024-03-20)) | where Computer == "***********" | where ObjectName == "Network Interface" and CounterName == "Bytes Received/sec" and InstanceName == "Microsoft Hyper-V Network Adapter _2" | summarize BytsSent = sum(CounterValue)/1073741824 by bin(TimeGenerated, 24h),CounterName InsightsMetrics | where TimeGenerated between (datetime(2024-03-19) .. datetime(2024-03-20)) | where Origin == "vm.azm.ms" | where Namespace == "Network" and Name == "ReadBytesPerSecond" | where Computer == "******" | extend NetworkInterface=tostring(todynamic(Tags)["vm.azm.ms/networkDeviceId"]) | summarize AggregatedValue = sum(Val) by bin(TimeGenerated, 1d), Computer, _ResourceId, NetworkInterface Results for Perf is 0,32339 GB/day and for InsightsMetrics is 14.7931 GB/day. If I go to network interface and select metric data for network interface is data that I get return from query in log analytic for Metric same/correct . I have now shorten sample period of data collection rule to 15s, I hope that this will ,give more accurate results. I’m I doing something wrong or I collect data the wrong way. I don’t want to activate inside metric for every VM, I want to activate any data that I’m interesting.801Views0likes1CommentQwen3.8-27B on a Lenovo laptop: run it on RTX Spark, watch it in Azure Monitor
Updated October 30, 2026: the sample now runs vLLM 0.32 with async scheduling, 14% more decode steps a second on the code benchmark, and the memory bandwidth figure is corrected. See the update at the end. In an earlier post I served Qwen3.8-27B from an H100 in Azure. The same model also runs on a laptop: the Lenovo Yoga 9n 2-in-1 (16", 11) with NVIDIA's RTX Spark N1X and 64 GB of unified memory. On a short code-generation benchmark it decodes 44.7 tokens a second for one request, and it holds the model's full 262,144-token context. Over three hours of an OpenCode agent reviewing two open-source repositories, it decoded replies at a steady 27 tokens a second per request, and the GPU averaged 41 W. A coding agent needs three things from a local model: replies fast enough to wait for, room for the whole conversation, and a machine that runs cool and steady for hours. In my testing, the Yoga 9n delivered all three. This post reviews it for that job, shows what three hours of agent traffic looked like on the dashboard, and walks through the setup: Windows on Arm, Docker, vLLM, a speculative decoder that suits the hardware, and the monitoring that measured it all. Disclosure: I work at Microsoft. Lenovo provided this laptop to Microsoft in July 2026 as a pre-release unit for software testing, and I used it for this post. Retail units may differ slightly. At a glance Verdict: the Yoga 9n 2-in-1 with RTX Spark is a practical machine for running a 27B coding model locally. Its 64 GB of unified memory holds Qwen3.8-27B, a draft model and the full 262,144-token context, and it served three hours of real agent work at a consistent speed and a modest power draw. What I liked: The model, its drafter and the full native context fit in the 64 GB configuration, alongside Windows. 44.7 tokens a second on a short code benchmark and about 27 per request in a long agent session, with a median first token in 2–3 seconds while a conversation stays cached. Sustained performance: 41 W of average GPU power, a 67 °C peak and a graphics clock near 2 GHz for three hours. The GPU's share of the memory is a setting in the NVIDIA app, so you can give a large model room and take it back afterward. The standard stack runs unchanged: Docker Desktop, the official vLLM ARM64 image, LiteLLM and OpenCode. No hourly bill. The H100 VM from the earlier post costs $6.98–$10.12 an hour at the October 2026 pay-as-you-go price, depending on the region. Good to know: It suits one agent session at a time; many parallel subagents wait their turn. Memory is shared with Windows, so give the model room while it runs. The NVFP4 checkpoint is a preview release from Unsloth. Who it's for: developers who want a capable coding model on their own machine, with the model's full context window and no per-hour or per-token bill. The machine Lenovo Yoga 9n 2-in-1 (16", 11), as tested Unit Pre-release, provided by Lenovo to Microsoft in July 2026 for software testing Chip NVIDIA RTX Spark N1X: 20-core Arm CPU, 6,144-core Blackwell GPU Memory 64 GB of LPDDR5X-9400, shared by the CPU and the GPU Software Windows 11 on Arm, Docker Desktop with Windows Subsystem for Linux (WSL) 2, NVIDIA's Windows driver Lenovo sells it configured to order on Lenovo.com, and in the US, Best Buy carries two fixed configurations: the 20-core N1X with 64 GB, as tested, and an 18-core N1X with a 5,120-core GPU and 32 GB (Notebookcheck). For this model, choose the 64 GB configuration; the next section explains why. Why it works for a 27B model Three specs decide whether a laptop can run a model this size for real work, and the Yoga 9n has all three. 64 GB of unified memory. The CPU and GPU share one pool of memory. On this laptop 32,704 MiB of it is set aside for the GPU, which Windows shows as dedicated GPU memory, and Windows keeps 30.8 GiB for itself. The GPU's share holds the model and its draft model (23.35 GiB once loaded) and a KV cache big enough for one full 262,144-token request. Windows backs about 10 GiB more of GPU allocations with system memory, which it shows as shared GPU memory. A 32 GB laptop has half as much memory to share between Windows and the GPU, and this model's weights alone are 19.1 GB. That split is a setting, not a fixed spec. In the NVIDIA app, Dedicated GPU Memory (GB) under System > Advanced sets how much of the unified memory the GPU gets, and a new value takes effect after a restart. That's handy for local models: give the GPU a large share while you serve a model this size, and give the memory back to Windows when you don't. I ran everything here with 32 GB for the GPU. Memory bandwidth. To generate a token, the GPU reads every weight of the model. LPDDR5X-9400 on the 256-bit bus that press reports describe works out to about 300 GB/s on paper. A simple read test inside the model's container measured 229 GB/s while the model was loaded; re-run against dedicated GPU memory, it reads about 270 GB/s (see the update at the end). For this model that bandwidth sets the speed, as Step 3 shows. 4-bit weights in hardware. Blackwell GPUs compute in NVFP4, a 4-bit floating-point format. The NVFP4 checkpoint reads 19.1 GB of weights per decode step, where the FP8 weights took 31.1 GB (29.0 GiB) on the H100. vLLM runs it with native FP4 kernels ( FlashInferCutlassNvFp4LinearKernel ). The software is ready too. vLLM's official image comes in a Linux ARM64 build with CUDA 13, and it runs unchanged in Docker Desktop's WSL 2 backend. The building blocks are the ones I used on the H100: vLLM behind a LiteLLM gateway, with OpenCode as the agent. How I measured The numbers in this post come from three different workloads, so read each one with its own conditions: Code benchmark Long-prompt benchmark Agent session Task Three code-generation prompts: a thread-safe LRU cache in Python with tests, a token-bucket rate limiter in TypeScript, and Dijkstra's algorithm in Go One question about a prompt cut from the source and docs of my own lab repository OpenCode asked to review every file in microsoft/agent-framework and microsoft/TypeScript Prompt 36–40 tokens 97,880 tokens, with a random first line so none of it came from the prefix cache 19,000 to 115,000 tokens, resent on every turn and mostly cached Reply 512 tokens each, temperature 0, thinking off 384 tokens, temperature 0, thinking off As long as the agent needed, thinking on How it was sent One request at a time, straight to vLLM One request, straight to vLLM Through LiteLLM from a second machine, one request running at a time Result 44.7 tok/s decode, mean of three 44.3 tok/s decode, 1,033 tok/s prefill 27 tok/s decode per request over three hours All three use the same model, drafter and quantization: Unsloth's NVFP4 checkpoint of Qwen3.8-27B, the DFlash 2 drafter quantized to FP8 and proposing seven tokens, an FP8 KV cache, and vLLM 0.31. What you're running and Step 2 give the details. The two benchmarks ran before I raised the context from 196,608 to the full 262,144 tokens; on the final profile the code benchmark measured 44.1 tokens a second. The sample's scripts/Invoke-SpeedBench.ps1 runs both benchmarks. With speculative decoding, decode speed depends on how predictable the text is. Each decode step produced 5.04 tokens on the code benchmark and 3.3 in the agent session, where most of the output was reasoning. A tokens-per-second figure is only comparable with one measured on the same workload and the same speculative-decoding settings. Three hours of real coding work The session in these screenshots is real OpenCode traffic: an agent asked to review every file in two open-source repositories, microsoft/agent-framework and microsoft/TypeScript, run from a second machine on the same network through LiteLLM, from 22:52 to about 01:50 UTC. For the first 32 minutes the agent worked in one conversation that grew from 19,000 to 77,000 tokens. That is the everyday case for a coding agent, and the Yoga 9n was quick and consistent through it: Fast first tokens. The median time to first token was 2.1–3.3 seconds in each ten-minute window, because 92% of the prompt tokens came from the prefix cache. Steady decode. Replies decoded at about 27 tokens a second per request, with 3.6 tokens produced per decode step. Low power. The GPU averaged 30 W and peaked at 59 °C. Agent traffic is harder than benchmark traffic. Over the whole session the model read 85 input tokens for every token it wrote, and 72% of the output tokens the gateway returned were thinking. Each step produced 3.3 tokens on average instead of the 5.04 it reached on the code benchmark in Step 3, because reasoning and prose are harder to guess than code. The first drafted token was accepted 71% of the time, the seventh 13%: Even so, replies averaged 27 tokens a second per request across three hours of agent traffic. Memory held steady The GPU used 30.7 of its 31.9 GiB throughout, and Windows backed another 9.9 GiB of GPU allocations with system memory. Windows kept 3.5 GiB or more available, and with one request at a time the KV cache peaked at 51%. vLLM preempted no requests in three hours. Cool and consistent for three hours Over three hours of continuous agent work, GPU power averaged 41 W and peaked at 74 W. The temperature averaged 55 °C and peaked at 67 °C, and the graphics clock held near 2 GHz from the first hour to the last, with no sign of thermal throttling. That is a modest, stable power draw for sustained inference. The setting that matters most: one request at a time With two requests running at once, each request's decode steps share the GPU with the other request's 8,192-token prefill chunks, and two long conversations push each other's prefixes out of the cache. With one, a reply decodes at full speed and its conversation stays cached. I ran the same OpenCode task with each setting: First 70 minutes Two requests at a time One request at a time Requests completed 74 111 Output tokens 45K 64K Input from the prefix cache 33% 62% Decode per request 9.7 tok/s 29.0 tok/s One request at a time completed 50% more requests and 42% more output in the same time, and per-request decode held between 25 and 38 tokens a second. The agent's subagents don't run in a fixed order, so the two runs reached their busy phases at different moments; take the exact margin as indicative. A synthetic replay agrees on the direction for long conversations: two conversations of 135K and 90K tokens finished 2.8 times sooner with one request at a time. For six short conversations with 200-token replies, two at a time was faster (214 against 297 seconds), so if your agent sends many small requests, measure both. What you're running The rest of this post is the setup, step by step. Qwen3.8-27B is a 27-billion-parameter dense model from Qwen under the Apache 2.0 license. My H100 post describes its architecture. The part that matters most here is its hybrid attention: 48 of its 64 layers keep a fixed-size state instead of a per-token KV cache, which is why a full-length context fits in 12 GiB. Two checkpoints, both pinned to a revision: The model: unsloth/Qwen3.8-27B-NVFP4 at revision 16b6615 , Unsloth's Dynamic V3.0 NVFP4 quantization: 19.1 GB of weights. It's a preview release from Unsloth, not an official Qwen checkpoint, so treat quality and speed results as results for this checkpoint. The draft model: incoai/Qwen3.8-27B-DFlash2 at revision 015e795 , a 1.86B-parameter DFlash 2 drafter that proposes seven tokens per pass. vLLM quantizes it to FP8 when it loads. Step 1: Prepare Windows The stack runs in Docker Desktop with the WSL 2 backend, which runs an ARM64 Linux engine on this laptop. Install NVIDIA's current Windows driver and the NVIDIA app, set Dedicated GPU Memory (GB) to 32 under System > Advanced in the app, and restart. Then install Docker Desktop and cap the WSL virtual machine's memory in %UserProfile%\.wslconfig (the sample's config/wslconfig.example ): [wsl2] memory=12GB swap=8GB autoMemoryReclaim=gradual Run wsl --shutdown after changing it. autoMemoryReclaim goes under [wsl2] on WSL 3.x; WSL 2.0 took it under [experimental] , which is where the first version of this post put it. The cap matters on unified memory. The GPU reservation and the shared GPU memory come out of the same 64 GB as Windows and WSL, so a VM that grows freely competes with the model. With 12 GB for WSL, Windows kept at least 3.5 GiB available through three hours of agent traffic. Two habits help: Stop the model before large downloads or image builds. They need memory of their own; pulling the weights while vLLM was running left Windows short of memory. Let it start in peace. Free memory dips to about 1 GiB for a moment while vLLM captures CUDA graphs at startup, and then recovers. Step 2: Serve the model with vLLM The model image ( images/vllm/Dockerfile ) builds on vllm/vllm-openai:v0.31.0 and downloads both checkpoints into the image at pinned revisions, so the stack starts offline. The sample's compose.yaml runs vLLM and the LiteLLM gateway: docker compose build docker compose up -d This is the serve command: vllm serve /models/Qwen3.8-27B-NVFP4 \ --served-model-name qwen3.8-27b \ --quantization compressed-tensors \ --trust-remote-code \ --max-model-len 262144 \ --kv-cache-memory-bytes 12616466432 \ --gpu-memory-utilization 0.05 \ --kv-cache-dtype fp8 \ --block-size 64 \ --max-num-seqs 1 \ --max-num-batched-tokens 8192 \ --enable-prefix-caching \ --speculative-config '{"method":"dflash","model":"/models/Qwen3.8-27B-DFlash2","num_speculative_tokens":7,"quantization":"fp8"}' \ --limit-mm-per-prompt '{"image":{"count":4,"width":1024,"height":1024},"video":0}' \ --mm-processor-cache-gb 0.25 \ --reasoning-parser qwen3 \ --enable-auto-tool-choice --tool-call-parser qwen3_coder Flag Why --quantization compressed-tensors The NVFP4 checkpoint's format. --max-model-len 262144 The model's native context window. --kv-cache-memory-bytes 12616466432 An 11.75-GiB cache: 740 blocks, 263,927 tokens, one full-length request. On unified memory an explicit size is more predictable than a share of "GPU memory". --gpu-memory-utilization 0.05 With an explicit cache size, vLLM uses this value for its startup memory check, not to size the cache. A low value keeps that check below the Windows GPU reservation. --kv-cache-dtype fp8 Half the bytes per cached token. --block-size 64 Needed for DFlash 2. Without it, vLLM pads the drafter's 64-token pages to the model's 1,648-token hybrid page, and a 196,608-token request needed 13.5 GiB of cache instead of 9.2. --max-num-seqs 1 One request at a time; others wait in the queue. This let the coding agent complete 50% more requests in the same time, as measured above. --max-num-batched-tokens 8192 The prefill chunk per step. --enable-prefix-caching Reuses the cached prefix of a conversation, so each agent turn computes only what's new. --speculative-config DFlash 2 drafts seven tokens in one pass. "quantization":"fp8" saved 1.73 GiB of memory and decoded slightly faster than BF16. --limit-mm-per-prompt , --mm-processor-cache-gb 0.25 Up to four images per prompt, with a small image-processing cache instead of the 4-GiB default, which vLLM keeps in two processes. --reasoning-parser , --tool-call-parser Thinking returned separately from the answer, and OpenAI-style tool calls. When it's ready, the startup log reports 263,927 tokens of KV cache, 1.01 full-length requests. Step 3: Make decode fast On this laptop, decode speed is a question of bytes. Each decode step reads the model's weights once, and speculative decoding lets one step produce several tokens: a small draft model guesses ahead, and the big model checks all the guesses in the same pass. So: tokens per second ≈ effective bandwidth ÷ bytes read per step × tokens accepted per step I calibrated the effective bandwidth on the first setup I ran: 203 GB/s, 89% of the 229 I had measured, or about 75% of the 270 GB/s the GPU reads from dedicated memory (see the update at the end). With that, the formula predicted the DFlash 2 result within 3% before I measured it. The measurements are the two single-request benchmarks from How I measured, not agent traffic: On vLLM 0.31 MTP, 3 draft tokens DFlash 2, 7 draft tokens, FP8 drafter Bytes read per step 25.5 GB: the model, plus the MTP head and output layer three times ~22.3 GB: the model, the drafter and the output layer once each Tokens per step, code benchmark 3.30 5.04 Predicted 26.3 tok/s 45.9 tok/s Measured, code benchmark 28.4 tok/s 44.7 tok/s Measured, 98K-token prompt benchmark 29.4 tok/s 44.3 tok/s The model's built-in multi-token prediction (MTP) head reads the output layer once per draft token. DFlash 2 drafts its seven-token block in one pass, so each step reads fewer bytes and accepts more tokens. From the MTP setup I started with (26.4 tokens a second on vLLM 0.24) to DFlash 2 on vLLM 0.31, the code benchmark got 69% faster; the vLLM upgrade alone was worth about 8%. Prefill, reading a new prompt, ran at 1,000–1,400 tokens a second on the 34K- and 98K-token benchmark prompts and slowed to 645 on a brand-new 240,000-token prompt, which took about six minutes to its first token. A follow-up turn that reused that prompt started in 4.9 seconds. Coding agents resend the conversation with every turn, so in practice the prefix cache does most of that work. Step 4: Connect a coding agent LiteLLM serves the model under a stable alias, local-llm , on port 4000, so clients don't change when the model does. This is the provider block for OpenCode, an open-source coding agent, from the sample's config/opencode.json ; use 127.0.0.1 on the laptop itself, or its LAN address from another machine: { "$schema": "https://opencode.ai/config.json", "model": "litellm-local/local-llm", "small_model": "litellm-local/local-llm", "provider": { "litellm-local": { "npm": "@ai-sdk/openai-compatible", "name": "Local LiteLLM (Qwen3.8-27B)", "options": { "baseURL": "http://127.0.0.1:4000/v1", "apiKey": "none", "timeout": false }, "models": { "local-llm": { "name": "Qwen3.8-27B (local)", "reasoning": true, "tool_call": true, "limit": { "context": 262144, "output": 16384 }, "modalities": { "input": ["text", "image"], "output": ["text"] } } } } } } The context limit tells OpenCode when to compact the conversation, and the 16K output cap covered every reply in the three-hour session with room to spare: the largest used 7,300 tokens. LiteLLM binds to localhost by default and has no authentication of its own, so if you open it to your network ( LITELLM_HOST_BIND in the sample's .env ), restrict the port to a trusted subnet in Windows Firewall. Before handing it real work, I checked it. A smoke test returned an exact answer, read an image and made a required tool call through LiteLLM; the sample's scripts/Test-LocalLlm.ps1 runs those three checks through the gateway. My local evaluation suites passed 15 of 16 basic cases, 4 of 5 large-context cases and 5 of 5 complex-reasoning cases, the same cases as the MTP setup on the same vLLM version. A needle placed at the very start of a 239,685-token prompt came back correct. Step 5: Watch it A server has memory of its own and a GPU with memory of its own. On this laptop one 64 GB pool feeds Windows, WSL, the GPU's share and the shared GPU memory Windows adds on top, so the signals that matter cross the line between the model and the operating system. The monitoring follows the earlier posts, adapted to Windows on Arm, and the sample has every piece of it. What runs where Windows on Arm nvidia-smi -> Export-NvidiaGpuMetrics.ps1, every 5 s -> textfile -> windows_exporter :9182 Docker Desktop (WSL 2) vLLM /metrics LiteLLM /metrics/ and spans OpenTelemetry Collector (linux/arm64): scrapes all three every 10 s, receives the spans | OTLP, Microsoft Entra ID v Application Insights with OTLP support metrics -> Azure Monitor workspace -> Azure Managed Grafana dashboard, Prometheus alert rules traces -> Application Insights vLLM reports tokens, the prefix cache, the queue, KV cache usage and speculative decoding, down to how often each draft position is accepted. LiteLLM reports what the gateway answered, and the sample's callback logs one line per request with its tokens, time to first token and status. When requests go missing, that is the count to compare with vLLM's. It also sends a span for every model call over OTLP. windows_exporter reports the memory Windows has available and the GPU's dedicated and shared memory, as Windows sees them. GPU power, temperature and clocks come from nvidia-smi . DCGM, which the H100 posts used, isn't available on Windows, so a small PowerShell script, run as a scheduled task, polls nvidia-smi and writes Prometheus text that windows_exporter's textfile collector serves. On RTX Spark, nvidia-smi also lists the NPU, with a temperature of its own; the script keeps only the GPU, so max() over these series means the GPU. Send it to Azure Monitor The sample uses the same collector as the H100 posts: the OpenTelemetry Collector, contrib distribution, as a linux/arm64 container next to the model. It scrapes the three Prometheus endpoints, receives LiteLLM's spans, labels everything with the laptop's name, and keeps only the Windows series the dashboard and alerts use, since Azure Monitor bills per sample ingested. Then it sends both signals over OTLP to an Application Insights resource with OTLP support: metrics land in its Azure Monitor workspace as Azure Monitor managed service for Prometheus data, and traces in Application Insights. Without a managed identity on the laptop, the collector signs in as a Microsoft Entra ID application, which needs the Monitoring Metrics Publisher role on the data collection rule that Application Insights creates. The part that talks to Azure Monitor, abridged from the sample's observability/otelcol/config.yaml : extensions: azure_auth: service_principal: tenant_id: ${env:AZURE_TENANT_ID} client_id: ${env:AZURE_CLIENT_ID} client_secret: ${env:AZURE_CLIENT_SECRET} scopes: [https://monitor.azure.com/.default] processors: resource: attributes: - {key: microsoft.applicationId, value: "${env:AZMON_APPLICATION_ID}", action: upsert} exporters: otlp_http/azuremonitor: traces_endpoint: ${env:AZMON_TRACES_ENDPOINT} metrics_endpoint: ${env:AZMON_METRICS_ENDPOINT} auth: authenticator: azure_auth Ingest OTLP data into Azure Monitor with the OpenTelemetry Collector walks through creating the resource, and my H100 post covers the details that tripped me up there. Two matter here. OTLP histograms arrive as native histograms, with no _sum or _count series, so a query reads histogram_sum(...) where remote-written data would use _sum . And each model call's span carries its token counts and time to first token; with message capture off it carries no prompts or responses, but it does carry the tool definitions the agent declares, so decide whether that's acceptable in your Application Insights resource. The dashboard I built the dashboard in these screenshots for this post through the Azure Managed Grafana MCP server: I described the panels and an agent created them with amgmcp_dashboard_update . The sample has it as JSON to import into any Azure Managed Grafana instance that reads your workspace, with its queries written for OTLP's native histograms. On a laptop, a few questions matter more than on a server: Question PromQL Is the GPU spilling into system memory? max(windows_gpu_adapter_memory_shared_bytes{phys="0"}) Is Windows running short? min(windows_memory_available_bytes) How fast does a reply decode? histogram_sum(sum(increase(vllm:request_generation_tokens[10m]))) / histogram_sum(sum(increase(vllm:request_decode_time_seconds[10m]))) How many tokens does each step produce? 1 + sum(rate(vllm:spec_decode_num_accepted_tokens_total[5m])) / sum(rate(vllm:spec_decode_num_drafts_total[5m])) Is the drafter's first guess landing? sum(increase(vllm:spec_decode_num_accepted_tokens_per_pos_total{position="0"}[1h])) / sum(increase(vllm:spec_decode_num_drafts_total[1h])) Are requests queuing? max(vllm:num_requests_waiting) How much power, how hot? max(nvidia_gpu_power_draw_watts) , max(nvidia_gpu_temperature_celsius) The decode-speed query divides the generated tokens of finished requests by their decode time. Both come from vLLM's per-request histograms, so the result doesn't depend on histogram buckets or on how many tokens each speculative step produced. Read the memory panels together. GPU memory in use against the GPU's share says whether the model and its cache fit the reservation, shared GPU memory says how much Windows backs with system memory, and the memory Windows has available says what's left for everything else. Any one of them alone can look fine while the pool runs out. The same MCP server can answer questions about the data, too: amgmcp_prometheus_query runs PromQL against the workspace, so an agent can tell you when requests started waiting during a session and how much memory Windows had at that moment. My H100 post covers what else it can do. Alerts A long agent run is a job you walk away from, and Azure Monitor evaluates Prometheus alert rules against the workspace whether or not you're looking at the dashboard. The sample's local-llm-alerts.bicep deploys four as a rule group: Alert Fires when Why Windows memory low Windows has had under 2 GiB available for 5 minutes Windows, WSL, the GPU's share and shared GPU memory draw on one pool. Slow first token The mean time to first token over 10 minutes passes 2 minutes The agent dropped requests that waited about five minutes, and neither server logged an error. Preemptions vLLM preempted a request in the last 10 minutes The KV cache ran out of room, and the work will be recomputed. Stale GPU metrics The GPU metrics haven't updated for 5 minutes The collector stopped, and windows_exporter keeps serving its last file. Each rule groups by the laptop's name, so one rule group covers every laptop that writes to the workspace, and a laptop that's asleep raises nothing. Getting the most out of it Keep subagent fan-out modest. The Yoga 9n is at its best with one conversation at a time. When the agent started 12 to 18 subagents at once, the request on the GPU kept decoding at 22–29 tokens a second, but the others waited their turn, and the mean time to a first token grew to about five minutes. In OpenCode, the task permission controls subagents. Deny it, or ask for fewer parallel subagents, for work you run locally, and keep wide fan-out for a data-center GPU. Watch for long waits. The client dropped requests that had waited about five minutes, and neither server recorded an error: vLLM counted no aborts, and its access log showed 200 , which a streaming response sends before its first token. Compare the requests arriving at vLLM with the requests the gateway answers; a gap is your sign. I haven't confirmed which layer sets the limit. LiteLLM's timeouts were an hour, and the OpenCode provider block above turns its own timeout off, which points to the client's HTTP stack giving up while it waits for response headers: LiteLLM appears to send them only with the first token. Leave Windows some memory. Keep a few GiB free for Windows while the model runs, and stop it before large downloads or builds. Mind the thinking. Nearly three-quarters of the output was reasoning. For routine edits, a lower reasoning_effort in the client can save more time than tuning the server. Laptop or H100? They're built for different jobs, and the laptop is well matched to its own. The H100 in the earlier post served many sessions at once and peaked at about 1,550 output tokens a second across 32 requests. The Yoga 9n serves one developer's coding session at about 27 tokens a second per request in real agent work, and 44.7 on short code generation, with the model's full context, on the machine that developer already carries, and with no hourly bill. The model runs locally, so requests are served on the laptop instead of by a model provider. The two setups differ in checkpoint, draft method and vLLM version as well as hardware, so read this as two working configurations, not a like-for-like benchmark: Lenovo Yoga 9n 2-in-1 Azure H100 NVL VM Running cost The laptop's own power $6.98–$10.12 an hour pay-as-you-go: about $5,100 a month or more if it stays on Where requests are served On the laptop In an Azure region Memory for the model 32 GB GPU share of 64 GB unified memory 94 GB of HBM Checkpoint Unsloth NVFP4 preview Qwen FP8 Speculative decoding DFlash 2, 7 draft tokens MTP, 3 draft tokens vLLM 0.31 (official ARM64 image) 0.24 (NVIDIA NGC 26.07) KV cache 263,927 tokens: one full-length request 1.45M tokens One short request, thinking off 44.7 tok/s on the code benchmark About 166 tok/s in the smoke test Best for One developer's interactive coding sessions A team, wide subagent fan-out, throughput The running cost is the October 2026 pay-as-you-go Linux price of Standard_NC40ads_H100_v5 , which depends on the region. The earlier post ran it as a Spot VM for about $2 an hour, but Azure can evict Spot capacity with 30 seconds' notice. Rules of thumb Buy for memory. 64 GB of unified memory and its bandwidth are what make a 27B model practical. The CPU and GPU core counts matter less for this job. Count bytes per step. Decode speed is roughly bandwidth divided by the bytes each step reads, times the tokens it accepts. A drafter that reads less and accepts more, like DFlash 2 in FP8, was the biggest lever I measured. Run one request at a time for one agent. It keeps decode fast and the conversation cached. Watch shared GPU memory and the memory Windows has available next to the KV cache. On unified memory, they're the same pool. The bottom line The Lenovo Yoga 9n 2-in-1 with RTX Spark makes a local 27B coding model practical. Its 64 GB of fast unified memory is the reason: Qwen3.8-27B, a draft model and the full 262,144-token context fit on the laptop, short code generation decodes at 44.7 tokens a second, and a real agent code review held at about 27 tokens a second per request for three hours at an average of 41 W of GPU power. For a developer who wants a capable coding model on their own machine, it's an easy configuration to recommend. Choose the 64 GB model, run one agent session at a time, and in my testing it made a dependable everyday coding machine. Update, October 30, 2026 Two more weeks with this setup turned up one correction and three improvements, measured with the benchmarks from How I measured. The sample is updated to match. Bandwidth. The 229 GB/s read test ran while the model was loaded, so its buffer sat in shared GPU memory, which Windows backs with system memory. Against dedicated GPU memory the same test reads about 270 GB/s, 283 at best, or 90% of the 300 GB/s spec; the model's container and the Windows host measure the same. The model's 203 GB/s is therefore about 75% of what the GPU can read, not 89%, and the rest is per-step overhead rather than memory placement: a profile that fits entirely in dedicated memory decodes at the same rate as the default one, which spills 8 GiB. The formula and predictions in Step 3 don't change. vLLM 0.32. The official 0.32 image runs this model on vLLM's new model runner and decodes 7–9% more steps a second than 0.31 on the same prompts, with the same prefill speed and the same evaluation results. Async scheduling. Passing --async-scheduling explicitly adds about 5% more steps a second, with identical outputs. A profiler trace showed why there was room: about 12 ms of each 114 ms decode step was the GPU waiting on small host-side copies. The WSL cap, measured. Without the cap from Step 1, the WSL VM's page cache grows at every model start, as vLLM reads 60 GB of weights, until Windows pages, and the model's shared GPU memory is what gets paged. On the same afternoon, the same profile decoded 15–25% slower and prefilled the 98K-token prompt 40% slower uncapped than capped. The first benchmark after a model start is slow for a few minutes either way. The cap's autoMemoryReclaim key belongs under [wsl2] on current WSL, which Step 1 now shows. Together, on vLLM 0.32 with async scheduling and the cap in place, the code benchmark runs at 9.70 decode steps a second against 8.53 for the 0.31 profile measured the day before, 14% more, or 47.6 tokens a second against the 44.7 above; the drafter accepts slightly fewer tokens per step on 0.32, 4.92 against 5.04. The 27K-token prompt prefills at 1,438 tokens a second and decodes at 51.7. Try it Sample code: wuyi-labs/2610-rtx-qwen-38-27b, with the Compose files, the model image, the LiteLLM configuration, the OpenCode provider block, the OpenTelemetry Collector and windows_exporter configuration, the GPU metrics script, the dashboard, the alert rules, the smoke test and the speed benchmark. Agent load: agent-bench drives read-only OpenCode reviews of microsoft/agent-framework and microsoft/TypeScript through your gateway, and reports the load and how much review work the agents finished. The machine: Lenovo's product page for the Yoga 9n 2-in-1 (16", 11), where you can configure one to order, and Best Buy's listing for the 64 GB configuration. The model: Qwen3.8-27B, Unsloth's NVFP4 checkpoint and the DFlash 2 drafter. The earlier posts: Qwen3.8-27B on a $2 H100 Azure Spot VM: does it pay off? for the server setup and its monitoring, and Qwen3.8-Flash-Next on two H100s in an Azure Spot VM for KV cache sizing under agent load. Monitoring: Ingest OTLP data into Azure Monitor with the OpenTelemetry Collector, Azure Monitor managed service for Prometheus and the Azure Managed Grafana MCP server. The agent: OpenCode and its permissions.799Views3likes0Comments