Quarkus project routes Grafana telemetry through MCP for AI root-cause analysis
The Quarkiverse application filters traces, logs and metrics before an LLM correlates failures, with optional source inspection and dashboard generation in Quarkus dev mode.
A new Quarkus engineering post documents an open-source application that sends correlated Grafana telemetry to a large language model for root-cause analysis, using Model Context Protocol servers as the integration layer.
The AI Root Cause Analysis project queries Tempo traces, Loki logs and Prometheus metrics, then asks an LLM to distinguish causes from downstream symptoms and propose remediation. The workflow can also inspect Quarkus application source code and produce a Grafana dashboard when the target application exposes Quarkus Dev MCP.
Filtering before inference
The notable design choice is not simply attaching an LLM to an observability stack. The application places a StripMcpClient decorator between MCP tools and the model to reduce telemetry before it enters the context window. Quarkus says the filters remove SDK metadata, duplicate log fields, static metrics, histogram buckets and some per-region breakdowns while retaining information used for diagnosis.
In the example reported by the project, metric filtering reduced 586 entries to roughly 35, a 94% reduction. That is the project's own measurement, not an independent benchmark, but it addresses a practical failure mode for telemetry agents: raw observability payloads can consume the model context before the evidence has been correlated.
The application supports OpenAI, Grok, Gemini and watsonx profiles through Quarkus LangChain4j integrations. Its web interface can analyze between one and 20 recent traces and return HTML, Markdown, plain text or AsciiDoc. It also displays run duration, model calls and token counts, giving developers some visibility into inference cost.
Dev-mode write access is optional
The core trace, log and metric analysis can run as a standalone uber-JAR against an existing Grafana LGTM deployment. Optional source inspection and automatic dashboard writes require monitored applications to run in Quarkus dev mode with quarkus.dev-mcp.enabled=true.
With that access enabled, the tool can map an identified problem to code locations and write generated dashboard JSON under src/main/resources/META-INF/dashboards/. Without application ports, it still generates analysis and can return dashboard JSON for manual import.
The project repository is Apache-2.0 licensed and shows release 0.1.4 as its latest tag, published October 30. Its test harness covers injected latency, resource pressure, cascading failures, deadlocks, database outages and connection-pool exhaustion, with a separate model acting as scorer. Those tests show that evaluation is part of the repository, but they do not establish production accuracy across arbitrary systems.
That distinction matters: the project is a working reference implementation with packaged artifacts and explicit test scenarios, not evidence that an LLM can replace an experienced incident responder. Its more durable contribution is the bounded pipeline—MCP retrieval, signal reduction, multi-source correlation and optional code lookup—that platform teams can inspect and adapt.
sources
comments · 0