October 26, 2026
Automated Failure Diagnosis in Microservices via AIOps Agents
Alberto Marcondes Bougleux Neto; Carlos Henrique Rodrigues Sarro
DOI: 10.22167/2675-6528-202600482
Article derived from a Course Conclusion Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.
Summary
The adoption of microservices architectures in Cloud-Native environments has introduced significant operational complexity, generating telemetry volumes that exceed human analysis capacity. In this context, AIOps agents based on Large Language Models (LLMs) have emerged as a solution to automate Root Cause Analysis (RCA) of incidents in distributed systems, although they face challenges such as alert fatigue and token consumption cost. The present work comparatively analyzed the diagnostic effectiveness and operational cost of two AIOps agent activation architectures, Event-Driven (reactive, triggered by alerts) and Continuous Polling (proactive, with cyclic log scanning), both using the Gemini 2.5 Flash model. The experiment was conducted on the Google Online Boutique, subjected to five Chaos Engineering scenarios, with fifty total executions. The evaluation employed five Site Reliability Engineering (SRE) quality criteria and five FinOps metrics. The results indicated that the Event-Driven agent, configured with comprehensive alerts and cross-service log collection, demonstrated superiority over the Continuous agent. It was concluded that the quality of the underlying observability is the determining factor for the effectiveness of LLM-based AIOps agents.
Keywords: AIOps; Site Reliability Engineering; FinOps; Large Language Models; Microservices.
1. Introduction
Software engineering, in the last decade, has witnessed a transition from monolithic applications to microservices architectures, where each functional domain is encapsulated in an autonomous service with an independent lifecycle (Newman, 2021). This approach, combined with Cloud-Native infrastructures, offers benefits in scalability and fault isolation. However, it introduces substantial operational complexity. In microservices environments, a single user transaction can traverse dozens of services, each generating logs, metrics, and tracing signals. The resulting volume of telemetry quickly exceeds human analysis capacity.
In this scenario of high complexity and data volume, the AIOps (Artificial Intelligence for IT Operations) discipline gains relevance, applying artificial intelligence to automate IT operations (Gartner, 2023). With the rise of generative Large Language Models (LLMs), AIOps agents have evolved to interpret logs contextually, correlate events across services, and autonomously generate root cause analysis (RCA) reports. This capability positions them as automated reliability analysts, essential for observability in distributed systems (Majors, Fong-Jones, Miranda, 2022).
Despite the potential, the practical application of LLMs as operational agents faces challenges. A critical bottleneck is Alert Fatigue, where an excess of notifications, especially false ones, leads to team desensitization and compromises system trust (Beyer et al., 2018). LLMs can exacerbate this risk by literally interpreting the nominal severity of logs, diagnosing a record classified as “error” as an anomaly, even if harmless or expected in the environment, generating unnecessary alerts.
Another crucial aspect is the financial sphere. Commercial LLMs are priced per token, and sending thousands of log lines in each analysis cycle generates a cost proportional to the volume of data processed. In continuous scanning strategies, LLM API calls during normal operation periods, without anomalies, represent expenses with no diagnostic return. This fixed cost per cycle can limit large-scale adoption, especially in environments with high telemetry volume and operational stability.
The integration of generative artificial intelligence into monitoring can be implemented through different activation models. The Proactive model, or Continuous Polling, performs cyclic scans at fixed intervals, searching for anomalies even before traditional alerts. Although it offers broad coverage for subtle anomalies, it incurs a fixed cost per cycle and can generate noise. In contrast, the Reactive model, or Event-Driven, keeps the agent inactive until infrastructure thresholds are violated, resulting in zero cost during normal operation and high specificity, but depending entirely on alert configuration.
The complexity of modern microservice environments often exceeds the capacity of Site Reliability Engineering (SRE) teams to conduct manual Root Cause Analysis (RCA) with the required speed (Gartner, 2023). In this context, validating which AIOps agent activation strategy, reactive or proactive, preserves system credibility and optimizes operational cost is a direct contribution to the maturity of the SRE discipline. Additionally, measuring the cost difference between invoking an LLM only upon evidence of anomaly versus invoking it at each cycle provides concrete data for resource sizing and financial management in cloud operations (FinOps).
This work is justified by the need to investigate the effectiveness and economic viability of these approaches. The general objective was to comparatively analyze the diagnostic effectiveness and operational cost of two AIOps agent architectures, Event-Driven and Continuous Polling, based on the Gemini 2.5 Flash model, in a microservices environment subjected to controlled failure scenarios. To this end, we sought to implement two agents with an equalized scope of cross-service monitoring, design and execute five Chaos Engineering scenarios with progressive complexity, develop and apply quality criteria based on SRE principles, and measure the FinOps metrics associated with token consumption in both architectures.
2. Material and Methods
The research conducted was characterized as applied, with a quali-quantitative approach and of an exploratory-descriptive nature. The methodological design adopted was experimental, structured to compare the diagnostic efficacy and operational cost of two AIOps agent architectures. The study investigated the agent’s activation architecture, Event-Driven or Continuous Polling, and five simulated failure scenarios, as independent variables. The dependent variables measured were diagnostic quality, evaluated by Site Reliability Engineering (SRE) criteria, and operational cost, quantified by FinOps metrics. Each architecture and scenario combination was executed five times, totaling fifty experimental runs.
The experimental environment was built on a Google Compute Engine (GCE) instance and orchestrated via Docker Compose. The target application used was Google Online Boutique (v0.8.0), a demo e-commerce composed of eleven microservices. The relevant experimental flow was the checkout flow, which triggered internal gRPC calls between services. The choice of Docker Compose was deliberate to avoid the complexity of automatic scaling of Kubernetes environments, ensuring a more deterministic and controllable environment. The orchestration infrastructure comprised sixteen containers, with explicit CPU and memory limits configured for checkoutservice (0.25 vCPU/100 MiB) and frontend (0.50 vCPU/200 MiB).
The observability stack used Telegraf to collect CPU, memory, network, and I/O metrics via Docker socket, exposing them for collection by Prometheus. Four alerting rules were configured to monitor CPU (5%) and memory (90%, critical) on the checkoutservice and frontend containers. Alertmanager routed notifications via HTTP webhook to the Event-Driven agent. Both AIOps agents were developed in Python and integrated with the Gemini 2.5 Flash model (`google-generativeai`), with diagnostics published to Discord via webhooks. The complete source code for the agents was made available in the project repository.
The Event-Driven agent operated as a Flask application, triggered by webhooks from Alertmanager. After alert validation and deduplication, it collected the last two hundred log lines from the frontend and checkoutservice containers via Docker API. It then assembled a contextualized prompt with alert metadata and logs, submitting it to the LLM for Root Cause Analysis (RCA), including identifier correlation between services. In contrast, the Continuous Polling agent operated in an infinite loop, with a thirty-second interval. Each cycle, it collected incremental logs from both containers via Docker API (`since` parameter). A prompt instructed the model to identify anomalies and, in their absence, respond “STATUS: NORMAL”.
The equalization of the monitoring scope was crucial, carried out in two phases. Initially, the architectures operated with asymmetric scopes. In the second phase, Prometheus alerts were expanded to include the frontend, and cross-service log reading was implemented in the Event-Driven agent, allowing the collection of logs from both containers regardless of the alert’s origin. After this equalization, all tests were re-executed, and the results of the second phase constituted the definitive data of the study.
The five experimental scenarios were designed with progressive complexity: Baseline (control), Error Spike (L7 logic fault), Chaos Spike (L4/L7 mixed load), CPU Spike (CPU exhaustion), and OOM Test (OOMKill and container destruction). For the measurement of infrastructure metrics, K6 (Grafana Labs) was used to record latency, error rate, throughput, and checks, and `docker stats` was used to record the instantaneous CPU and memory utilization of each container.
The SRE quality criteria, a central instrument for diagnostic evaluation, were five: root cause accuracy, distributed tracing, signal-to-noise ratio, remediation quality, and analysis coverage. Each criterion received a score from zero to three points, totaling a maximum of fifteen. The score reported for each scenario corresponded to the median of the five runs to mitigate LLM variability outliers.
FinOps metrics, adapted for generative AI API consumption, included Total Cost per Execution, Cost per Useful Diagnosis, Average Diagnosis Latency, Alert Relevance Rate, and Idle Token Overhead. Token counts were extracted directly from the Gemini API and logged in the agent logs and Discord, enabling a detailed economic evaluation of the two architectures.
3. Results and Discussion
The analysis of data collected from fifty experimental runs revealed distinct patterns of diagnostic efficacy and operational cost between the two AIOps agent architectures investigated. The results were organized by failure scenario and integrated with infrastructure metrics, SRE quality assessments, and FinOps indicators, all pertaining to the equalized observability configuration. This approach allowed for an in-depth understanding of the nuances of each activation model, highlighting how the quality of the underlying telemetry directly influences the performance of Large Language Models in root cause analysis within microservices environments.
An overview of the results demonstrated that the Event-Driven agent outperformed or matched the performance of the Continuous agent in all five test scenarios, achieving an average advantage of 16.1 percentage points in the SRE score. This superiority was particularly notable in the Baseline scenarios, with a difference of 86.7 percentage points due to its perfect specificity, and in the OOM Test, with a 13.4 percentage point advantage, driven by the context provided by memory alerts. In financial terms, the total cost of Event-Driven for the twenty-five runs was 34% lower than that of Continuous, although in high-load scenarios such as Chaos Spike and CPU Spike, Event-Driven proved marginally more expensive, as each alert generated multiple LLM invocations to collect logs from two containers.
The relevance rate of the alerts also showed a clear distinction between the architectures. The Event-Driven registered a 100% rate of relevant alerts, corresponding to thirty-one out of thirty-one triggered alerts, while the Continuous obtained approximately 56% relevance, with fifty-five out of ninety-eight cycles identifying real anomalies. This fundamental disparity is attributed to the nature of each agent’s activation: the Event-Driven is triggered by infrastructure thresholds, which provide a deterministic anomaly signal, while the Continuous relies on textual analysis of logs, which can be more susceptible to noise and ambiguous interpretations by the Large Language Model.
Scenario 1: Baseline
In Scenario 1, named Baseline, the five executions demonstrated operational stability, with 100% success in K6 load checks, an average latency of 189.90 milliseconds, and low CPU utilization in the frontend and checkoutservice services. In this context of normality, the Event-Driven agent remained inactive, without triggering alerts, consuming tokens, or generating costs, which was considered the correct action and resulted in an SRE score of 100%. Its perfect specificity stemmed from the activation barrier based on metric thresholds, which proved robust against log noise.
In contrast, the Continuous agent executed an average of 4.8 cycles per run, generating 3.8 false alerts per run. The origin of these false positives was a “severity: error” log emitted by the frontend during initialization, regarding the inability to obtain attributes from the GCE metadata server. This error, although expected in the Docker Compose environment, was interpreted literally by the Large Language Model as an anomaly.
The average cost per execution of the Continuous agent in the Baseline scenario was US$0.043, with 44.6% of tokens consumed without diagnostic return, resulting in an SRE score of 13.3%. This difference of 86.7 percentage points compared to Event-Driven highlighted that Continuous, in the absence of contextualization mechanisms, interpreted environmental records as anomalies. This limitation could be mitigated by implementing a known issues document or by injecting baseline context directly into the LLM prompt, enhancing its ability to distinguish noise from actual failures.
Scenario 2: Error Spike
In Scenario 2, Error Spike, an HTTP failure rate of 25% was observed in checkouts, with an average latency of 165 milliseconds. Frontend CPU utilization ranged between 13% and 17%, a significant increase resulting from the volume of error responses, exceeding the configured threshold of 5%. This logical failure condition, which does not manifest directly in infrastructure metrics but rather in application logs, presented a detection challenge.
The Event-Driven agent was activated in all five runs by the HighCpuUsage_Frontend alert. The Large Language Model correctly identified the root cause, which was a card validation failure propagated via gRPC, and correlated session identifiers between the frontend and the checkoutservice. Its recommendations included implementing rate limiting, circuit breakers, and enhancing logging. Additionally, the agent pointed out an observability gap in the checkoutservice, which logged only information without detailed errors. The SRE score for Event-Driven in this scenario was 86.7%.
The Continuous agent demonstrated equivalent performance, identifying the same payment errors, correlating identifiers, and detecting the same observability gap, also achieving an SRE score of 86.7%. However, the Event-Driven consumed 40% fewer tokens, with a cost of US$0.034 compared to US$0.057 for the Continuous.
The Event-Driven failure detection was indirect, triggered by a CPU alert and not directly by the error rate. This suggests that in situations where L7 layer logical failures do not impact infrastructure metrics, the reactive model could remain inactive. This observation confirms that the effectiveness of application failure detection by the Event-Driven model depends on the manifestation of side effects in infrastructure metrics, which could be a limitation in scenarios of more subtle or isolated failures in the application layer.
Scenario 3: Chaos Spike
Scenario 3, Chaos Spike, resulted in the largest impact among scenarios that did not involve container drops. The success rate of checks fell to approximately 50%, and the average latency reached 331 milliseconds, representing a 74% degradation compared to the Baseline. The frontend service operated with about 50% CPU utilization, indicating a significant load on the system.
In this scenario, the Event-Driven agent triggered two alerts in all runs, specifically HighCpuUsage_Frontend and HighCpuUsage_CheckoutService, totaling ten diagnostics, all considered relevant. The diagnostics for the frontend identified the CPU elevation due to the volume of failing checkouts, while those for the checkoutservice revealed a high volume of PlaceOrder operations with elevated latency, ranging between 300 and 732 milliseconds. In one of the runs, the Large Language Model demonstrated its temporal analysis capability by mapping approximately 150 PlaceOrder entries in just six seconds. The Event-Driven SRE score was 86.7%.
The Continuous agent processed about 3.0 cycles per execution, with approximately 53% of real anomaly detection. Although it identified payment errors, its cross-service correlation consistency was lower, stating that the identifiers were not sufficient for deterministic tracking, despite the frontend session field matching the checkoutservice user_id. The Continuous SRE score in this scenario was 80.0%, lower than that of Event-Driven.
This scenario revealed that Event-Driven generated more diagnostic data and maintained a 100% relevance rate, in contrast to Continuous’s approximately 53%. The two alerts triggered by Event-Driven provided complementary insights that, together, allowed mapping the entire failure chain. The cost of Event-Driven was slightly higher, US$ 0.069 versus US$ 0.055 for Continuous, which is a predictable trade-off, indicating that more alerts and more comprehensive diagnostics result in a marginally higher cost.
Scenario 4: CPU Spike
In Scenario 4, CPU Spike, the system achieved the highest throughput, processing approximately 170 requests per second with forty virtual users performing complete checkouts. Despite CPU saturation, the average latency remained stable, between 186 and 193 milliseconds, indicating that the frontend’s Go runtime processed requests efficiently even under high load. This system resilience under CPU stress was an important finding.
Similarly to Chaos Spike, the Event-Driven agent triggered two alerts per execution, resulting in ten diagnostics that identified overload due to volume. In one of the executions, the Large Language Model demonstrated a sophisticated analytical capability by observing that “the frontend is completing these failing checkout requests quickly (http.resp.took_ms consistently very low, 6-10ms), indicating rapid, likely synchronous validation failure rather than a backend timeout”. This interpretation differentiated rapid validation failures from timeout failures, evidencing the depth of the diagnosis. The SRE score for Event-Driven was 86.7%.
The Continuous agent matched the performance of Event-Driven in this scenario, presenting the same root cause and observability gap identification, and also achieved an SRE score of 86.7%. The CPU Spike Scenario was characterized as a tie in terms of diagnostic effectiveness. However, the fundamental difference lay in activation efficiency: Event-Driven produced 100% relevant alerts, while Continuous achieved approximately 71% relevance.
This scenario demonstrated that, when configured with comprehensive alerts and cross-service log readability, the reactive model can be as effective as the proactive one in detecting and diagnosing anomalies. This condition is particularly relevant in high-traffic production scenarios, where event-driven activation benefits from clear signals of infrastructure degradation, ensuring accurate and relevant diagnostics without the constant cost of scanning.
Scenario 5: Out of Memory Test
Scenario 5, Out of Memory Test, represented the most critical impact on the system. With one hundred virtual users sending 2-megabyte payloads, the cumulative data injection exceeded container memory limits, resulting in OOMKill events. The frontend presented 0-byte consumption in three out of five runs, indicating a complete failure. Average latency rose to 548 milliseconds, with the 95th percentile reaching 2,550 milliseconds, and the checkout success rate dropped to approximately 6.5%.
The Event-Driven agent triggered alerts across all runs, including HighCpuUsage_Frontend, HighMemory_OOM_Risk_Frontend, and a combination of both, totaling six diagnostics. In the run where the memory alert was triggered, the Large Language Model explicitly identified the OOM risk, describing that “the frontend service is encountering memory pressure because a high volume of concurrent POST /cart/checkout requests are getting stuck in a slow, error-prone path”, with elevated latencies.
In another execution, the Event-Driven agent detected that the checkoutservice stopped emitting logs after a period, while the frontend continued sending requests. This constituted a detection by absence of logs and indirect evidence of a crash. However, no execution explicitly identified the OOMKill mechanism, which is logged by the kernel and not in the application logs. The Event-Driven SRE score in this scenario was 86.7%.
The Continuous agent processed an average of 3.3 out of 4.3 cycles per execution with anomalies, detecting service restarts and gRPC errors. However, it presented limitations compared to the Event-Driven approach: it did not identify log stoppages as indicative of a crash, did not perform latency analysis, and included diagnostic noise, such as adservice timeouts and GCE metadata errors. The Continuous agent’s SRE score in this scenario was 73.3%.
The superiority of Event-Driven, with a 13.4 percentage point advantage, derived from the context provided by the critical memory severity alert. This alert directed the Large Language Model to the central memory problem, resulting in a more focused and accurate diagnosis. Continuous, without this contextual basis, distributed its analysis among multiple signals, without converging to the root cause with the same depth. A common limitation to both agents was the inability to explicitly detect the OOMKill mechanism, a limitation mitigable by adding container status verification via Docker API.
Comparative Synthesis and Determinant Factors
The Earnings Management
The equalization of the monitoring scope between the Event-Driven and Continuous Polling agents resulted in a complete inversion of performance results. The Continuous agent’s performance remained stable between the asymmetric and equalized phases, maintaining an SRE score of 73.3% in both. In contrast, the Event-Driven agent’s performance saw a significant jump from approximately 53% to 89.4% after the observability expansion, representing a gain of 36.4 percentage points.
This Continuous stability confirmed that its performance is intrinsically determined by the nature of the logs it processes and the inherent limitations of the Large Language Model, such as literal interpretation and the absence of memory between analysis cycles. The sharp improvement of the Event-Driven, in turn, demonstrated that the quality of the underlying observability, rather than the activation architecture itself, constituted the determining factor for the effectiveness of LLM-based AIOps agents in this study.
Structural Advantages of Event-Driven
The main structural advantage of Event-Driven observed was its activation precision, which resulted in a 100% relevance rate for the thirty-one triggered alerts, compared to approximately 56% for Continuous. In the Baseline scenario, this difference reached 86.7 percentage points, directly attributable to the noise generated by Continuous’s constant polling. Each Event-Driven notification on the Discord channel corresponded to a confirmed anomaly, which is fundamental for the Site Reliability Engineering team’s confidence.
The context provided by the alerts also proved crucial for Event-Driven. When triggered, the Large Language Model received the alert name, the affected container, and the severity, which directed its analysis more effectively. This effect was particularly evident in the OOM Test, where the memory alert with critical severity guided the diagnosis to the correct problem. Continuous, without this contextual basis, tended to distribute its analysis among multiple signals, resulting in less diagnostic depth.
Additionally, Event-Driven demonstrated greater efficiency in token consumption, with a total cost 34% lower than Continuous. The savings were more pronounced in the Baseline scenario, where the cost of Event-Driven was zero in contrast to US$ 0.215 for Continuous. This token efficiency, which manifests as on-demand cost, represents a significant economic advantage for operations in stable environments, where agent activation is less frequent.
Vulnerabilities of Continuous and Caveats
Despite its consistent analytical capability, the Continuous agent presented vulnerabilities that limited its effectiveness. Alert Fatigue was the most critical, with a relevance rate of approximately 56%, indicating that almost half of the analyses performed were wasted on false positives. Infrastructure blindness, resulting from the absence of direct access to Prometheus metrics, restricted the depth of its analysis, especially in the OOM Test, where crucial information about the container’s state was unavailable.
The fixed cost per cycle of the Continuous also proved to be a significant disadvantage. In the Baseline scenario, where there were no useful diagnostics, the cost was US$ 0.215. Projected for 24/7 operation, this would represent approximately US$ 3,715 monthly in costs with no diagnostic return, in contrast to the zero cost of Event-Driven under normal conditions.
However, this limitation of Continuous is mitigable. Implementing a known issues document that lists log patterns to be discarded, or using Retrieval-Augmented Generation (RAG) mechanisms to inject the history of previous diagnoses, could significantly enhance its performance. Such approaches would reduce Alert Fatigue, allowing the agent to distinguish environmental noise from real anomalies from the first cycle, eliminating the false positives that dominated the Baseline scenario.
Observability Gaps
Both agents, consistently and independently, identified a critical observability gap in the checkoutservice in all failure scenarios. This service only logged with “severity: info”, without providing details about errors originating from downstream services, such as the paymentservice. This deficiency prevented a complete analysis of the request chain and the precise identification of the origin of failures.
As a unanimous recommendation, both agents suggested the implementation of “structured error logging” with “severity: error” and the inclusion of “OpenTelemetry correlation Ids”. This convergence of recommendations reinforces the validity of the observation. With cross-service log reading, implemented in the second phase of the study, this gap was partially mitigated, as the Large Language Model began to receive error logs from the frontend with complete failure messages. This finding reinforced the conclusion that the breadth of the log collection scope is as determining for the agents’ effectiveness as the coverage and quality of the alerts.
Architectural Recommendation
The obtained results supported the proposition of three adoption scenarios for AIOps agents. The recommended model is the Hybrid Architecture, which integrates the advantages of both paradigms. In this configuration, Event-Driven acts as the main pillar, triggered by infrastructure alerts, ensuring 100% accuracy and on-demand cost. Continuous Polling, in turn, operates as a safety net with increased scanning intervals, capturing L7 layer failures that do not manifest in metrics, with substantially reduced cost and Alert Fatigue.
The expansion of the polling interval in the hybrid model contributes to a linear reduction in costs and, when combined with a known issues document, eliminates the main source of false positives. For organizations opting for a single agent, the optimized Event-Driven is the indicated choice, provided it includes comprehensive alerts (CPU, memory, restarts, and application metrics such as HTTP 5xx error rate), cross-service log reading, context documentation, and health checks for containers and pods.
Finally, Continuous Polling can be considered as a primary choice in specific environments where low-volume L7 layer failures do not impact metrics, alert configuration is incomplete, and the cost per diagnosis is not a constraint. This scenario, although restricted to specific project conditions, is enhanced if the agent possesses contextualization mechanisms that reduce Alert Fatigue, improving its ability to discern real anomalies from operational noise.
In summary, the comparative analysis of the diagnostic efficacy and operational cost of Event-Driven and Continuous Polling architectures, using the Gemini 2.5 Flash model in a microservices environment, revealed that the quality of the underlying observability is the most determining factor for the effectiveness of AIOps agents based on Large Language Models. The equalization of the monitoring scope was crucial, demonstrating that the performance of Event-Driven significantly improved from 53% to 89.4% after expanding log and alert coverage, while Continuous maintained its stable performance at 73.3%. The results indicated that Event-Driven offered superiority in diagnostic quality, economic efficiency, and operational accuracy, with a 34% lower cost and a 100% relevance rate.
The different Chaos Engineering scenarios allowed for the identification of the advantages and vulnerabilities of each approach, evidencing that reactive activation, when supported by comprehensive alerts and cross-service log collection, can be as effective as proactive activation, with the advantage of on-demand cost and greater precision. The main fragility of Continuous Polling, Alert Fatigue, was associated with the absence of contextualization. Thus, the findings of this study point towards the adoption of a hybrid architecture as the most robust solution, combining the precision of Event-Driven with the coverage of Continuous Polling at larger intervals, mitigating alert fatigue and optimizing operational cost.
4. Conclusion
This study comparatively analyzed the diagnostic efficacy and operational cost of two AIOps agent architectures, Event-Driven and Continuous Polling, both based on the Gemini 2.5 Flash model, in a microservices environment subjected to controlled failure scenarios. It was found that the Event-Driven agent demonstrated superiority in diagnostic quality, economic efficiency, and operational accuracy, with an average advantage of 16.1 percentage points in SRE score and a total cost 34% lower than that of Continuous. The relevance rate of Event-Driven alerts was 100%, in contrast to approximately 56% for Continuous, highlighting the precision of activation by infrastructure thresholds. The findings revealed that the quality of underlying observability, including alert coverage and the breadth of cross-service log collection, constituted the determining factor for the effectiveness of AIOps agents based on Large Language Models, prevailing over the activation architecture itself. The main practical contribution of this work lies in the proposal of a Hybrid Architecture, which combines the reactive precision of Event-Driven with the proactive coverage of Continuous at larger intervals, mitigating alert fatigue and optimizing operational cost.
However, the study presented some limitations that deserve consideration. The sample of five executions per combination, although it provided consistent indicators, could be expanded for greater statistical significance, especially in the OOM Test scenario. The use of a single Large Language Model, Gemini 2.5 Flash, restricts the generalization of results to other models, although the identified structural advantages are model-independent. The experiment in Docker Compose did not fully reproduce the factors present in production Kubernetes environments, such as auto-scaling. For future studies, native instrumentation with OpenTelemetry for tracing with spans, reproduction of the experiment in Kubernetes to validate conclusions in environments with auto-scaling, and evaluation with multiple Large Language Models to distinguish model-dependent results from architectural properties are suggested. Additionally, the implementation of agents with memory via Retrieval-Augmented Generation (RAG) and the evaluation of self-hosted LLMs on private infrastructure represent promising avenues for enhancing the effectiveness and economic viability of AIOps agents.
Bibliographic References
Beyer, B.; Murphy, N.R.; Rensin, D.K.; Kawahara, K.; Thorne, S. 2018. The Site Reliability Workbook: Practical Ways to Implement SRE. 1ed. O’Reilly Media, Sebastopol, CA, EUA.
Gartner. 2023. Market Guide for AIOps Platforms. Gartner Research, Stamford, CT, EUA.
Majors, C.; Fong-Jones, L.; Miranda, G. 2022. Observability Engineering: Achieving Production Excellence. 1ed. O’Reilly Media, Sebastopol, CA, EUA.
Newman, S. 2021. Building Microservices: Designing Fine-Grained Systems. 2ed. O’Reilly Media, Sebastopol, CA, EUA.
Article originating from the Final Course Work of the Specialization in Software Engineering of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform