# AI Root Cause Analysis: LLM-Powered Root-Cause Analysis for Distributed Systems

DevFeed: [AI Root Cause Analysis: LLM-Powered Root-Cause Analysis for Distributed Systems](<https://devfeed.tech/articles/ai-root-cause-analysis-llm-powered-root-cause-analysis-for-distributed-systems-109739.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/ai-root-cause-analysis/>)

Author: Ales Justin

Published: 2026-10-22T00:00:00Z

Content type: tutorial

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [observability](<https://devfeed.tech/topics/observability.md>), [Grafana](<https://devfeed.tech/topics/grafana.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>), [tracing](<https://devfeed.tech/topics/tracing.md>), [dashboards](<https://devfeed.tech/topics/dashboards.md>), [Prometheus](<https://devfeed.tech/topics/prometheus.md>), [AI Integration Strategies](<https://devfeed.tech/topics/ai-integration-strategies.md>), [observability pipelines](<https://devfeed.tech/topics/observability-pipelines.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [analyze](<https://devfeed.tech/tags/analyze.md>), [application](<https://devfeed.tech/tags/application.md>), [applications](<https://devfeed.tech/tags/applications.md>), [bridges](<https://devfeed.tech/tags/bridges.md>), [but](<https://devfeed.tech/tags/but.md>), [cause](<https://devfeed.tech/tags/cause.md>), [complete](<https://devfeed.tech/tags/complete.md>), [context](<https://devfeed.tech/tags/context.md>), [details](<https://devfeed.tech/tags/details.md>), [developers](<https://devfeed.tech/tags/developers.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [distributed-system](<https://devfeed.tech/tags/distributed-system.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [don-t](<https://devfeed.tech/tags/don-t.md>), [llm](<https://devfeed.tech/tags/llm.md>), [root](<https://devfeed.tech/tags/root.md>), [root-cause-analysis](<https://devfeed.tech/tags/root-cause-analysis.md>), [systems](<https://devfeed.tech/tags/systems.md>)

## AI overview

AI Root Cause Analysis is an open-source Quarkus application that uses MCP to gather traces from Tempo, correlated logs from Loki, and time-matched metrics from Prometheus, then asks an LLM to produce structured findings on root causes, severity, cascading failures, and remediation. A StripMcpClient filters telemetry noise before it reaches the model; the source reports reducing one metrics set from 586 entries to about 35. Optional Quarkus Dev MCP integration lets it examine application code and write generated Grafana dashboards into app workspaces. Without that integration, core telemetry analysis still works, but source examination is disabled and dashboards must be copied from the UI and imported manually. The excerpt lists OpenAI (default), Grok, Gemini, and WatsonX profiles; Anthropic and native-image support are described as future priorities.

## Source excerpt

When something goes wrong in a distributed system, engineers face the same ritual: open Grafana, dig through traces in Tempo, correlate logs in Loki, check Prometheus metrics, and mentally piece together a causal chain across services. What if an LLM could do that for you -- pulling telemetry from the same tools you already use and producing a structured root-cause analysis in seconds? That's what AI Root Cause Analysis does. It's an open-source Quarkus application that connects to your existing Grafana LGTM stack via MCP (Model Context Protocol), feeds correlated traces, logs, and metrics to an LLM, and returns actionable analysis -- complete with root causes, severity assessments, and remediation suggestions. Who Is This For? AI Root Cause Analysis is built for developers who work with distributed systems but don't want to become observability experts. You know your LGTM stack is collecting traces, logs, and metrics -- but correlating them across services, spotting the root cause in a wall of spans, and distinguishing symptoms from causes takes experience and time. The AI handles that for you: it knows how to query Tempo, Loki, and Prometheus, understands what the telemetry means in context, and draws correlations that would take manual investigation to piece together. If you're comfortable with AI but not with the details of trace propagation, span hierarchies, or PromQL -- this tool bridges that gap. What It Does AI Root Cause Analysis is a standalone analysis engine. Point it at your LGTM stack and your running applications, and it will: Retrieve recent traces from Tempo via MCP and identify the interesting ones (errors, high latency, unusual patterns) Correlate logs for each trace from Loki, linking log entries to specific spans Pull Prometheus metrics at the time window of each trace to add system-level context Analyze everything together using an LLM, producing a structured report that distinguishes root causes from symptoms, identifies cascading failures, and s