azure-monitor-query-java

Execute Kusto and metrics queries against Azure Log Analytics workspaces.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-monitor-query-java-davidrrowley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-monitor-query-java
Source: https://github.com/davidrrowley/CortexYouV3/tree/main/.agents/skills/azure-monitor-query-java
Command: npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-monitor-query-java-davidrrowley

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enable Java applications to run Kusto queries against Log Analytics workspaces and collect metrics from Azure resources so developers can retrieve, transform, and analyze telemetry without manual HTTP plumbing.

Core Features & Use Cases

  • Logs queries with Kusto: execute workspace and resource-scoped Kusto queries and iterate tables and rows for analysis.
  • Metrics retrieval and aggregation: query resource metrics with granularity and aggregation options across single or multiple resources.
  • Batching, mapping, and async support: run batched queries, map results to custom Java models, and use synchronous or asynchronous clients with error/status handling.
  • Operational needs: includes timeout/options configuration, sovereign cloud endpoints, and guidance for handling partial failures and migration to new packages.

Quick Start

Use the azure-monitor-query-java skill to run a Kusto query against a Log Analytics workspace and return results as mapped Java objects.

Frequently Asked Questions about azure-monitor-query-java

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query Azure Log Analytics workspaces from a Java application?

Use the Azure Monitor Query SDK to run Kusto queries against Log Analytics workspaces in Java. It handles authentication via TokenCredential and returns tabular results you can iterate over for telemetry analysis.

Can I retrieve Azure resource metrics with aggregation options in Java?

Yes, the Azure Monitor Query SDK supports querying Azure resource metrics with specified granularity and aggregation options across single or multiple resources directly from Java applications.

Does the Azure Monitor Query SDK support asynchronous clients and batch queries?

Yes, the SDK supports both synchronous and asynchronous client patterns for executing batch queries, mapping results to custom Java models, and handling partial failures or error statuses.

What authentication is required to run Kusto queries against Azure Log Analytics in Java?

TokenCredential authentication is required to execute Kusto queries against Azure Log Analytics workspaces in Java, along with valid workspace or resource identifiers to retrieve telemetry data.

How do I handle partial failures when executing batch queries in Azure Monitor Query for Java?

Handle partial failures during batch queries by leveraging the SDK's built-in error and status handling mechanisms, which manage individual query failures within the batch execution process.

Can I map Azure Log Analytics query results to custom Java objects?

Yes, the Azure Monitor Query SDK supports model mapping, allowing you to transform returned telemetry tables and rows into custom Java objects for application-specific analysis.