← Latest papers
💻 computer science

Dynamic Sampling for Telemetry in Microservices: A Reinforcement Learning and Entropy-Based Approach

This paper introduces RADAR, a Reinforcement Learning and entropy-based agent that dynamically optimizes microservices telemetry sampling to drastically reduce resource consumption while preserving critical observability and data quality.

Original authors: Renan Martins Alves, Jéferson Campos Nobre, Juliano Araujo Wickboldt

Published 2026-10-19
📖 6 min read🧠 Deep dive

Original authors: Renan Martins Alves, Jéferson Campos Nobre, Juliano Araujo Wickboldt

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Modern software often lives not as a single, massive program, but as a swarm of small, independent services talking to one another across a network. This approach, known as microservices, allows companies to update parts of their applications quickly and scale them up or down as needed. However, this flexibility comes with a hidden cost: it becomes incredibly difficult to see what is happening inside the system when things go wrong. To solve this, engineers use a technique called distributed tracing. Imagine a customer placing an order on a website; that single request might bounce through a dozen different services, checking inventory, calculating taxes, and processing payments. Distributed tracing follows that request from start to finish, creating a detailed map of its journey. This map is essential for finding bugs and understanding performance issues, but it generates a massive amount of data. If a system processes millions of requests, collecting every single trace would overwhelm the network, consume huge amounts of computing power, and fill up storage drives at an unsustainable rate.

The challenge, then, is to collect enough data to see the problems without drowning in the noise of routine, successful operations. Traditional methods often rely on simple rules, such as recording only one out of every hundred requests, or waiting until an error occurs to start recording. These approaches are often too rigid; they might miss rare but critical failures, or they might waste resources recording mundane traffic that offers no new insights. Researchers at the Federal University of Rio Grande do Sul in Brazil have developed a new way to handle this dilemma. They created a system called RADAR, which acts as an intelligent, self-adjusting filter for this data. Instead of using fixed rules, RADAR learns which traces are worth keeping by constantly testing different combinations of sampling rules and observing the results.

The core idea behind RADAR is to treat the collection of data as a learning process. The system uses a method called reinforcement learning, where a computer agent makes decisions, sees what happens, and adjusts its strategy to get better results over time. In this case, the agent's goal is to maximize the "information value" of the data it keeps while minimizing the amount of data it stores. To measure information value, the researchers used a concept from information theory known as entropy. In simple terms, entropy measures how diverse or unpredictable a set of data is. A collection of traces that are all identical has low entropy and low value, because they tell you nothing new. A collection that includes many different, rare, and unusual paths has high entropy and high value, because it reveals the complex behaviors and potential failures of the system. RADAR uses this measure of diversity as a reward signal. When the agent selects a set of rules that captures a wide variety of unique behaviors without collecting too much data, it receives a high reward and learns to repeat that choice.

To test this idea, the researchers built a simulated online store running on a cluster of computers, mimicking the complex environment of a real-world application. They introduced various types of traffic, including normal browsing and specific scenarios designed to trigger errors or unusual behavior. They then let the RADAR agent run for several hours, allowing it to experiment with different rules. Some rules focused on capturing slow requests, others on errors, and others on specific business events like high-value purchases. The agent would switch between these rules, observing how many traces were collected and how diverse they were. Over time, the agent learned to find the perfect balance. It discovered that it did not need to record every single request to understand the system. Instead, by focusing on the most diverse and informative paths, it could maintain a clear picture of the system's health while drastically cutting down on the volume of data.

The results of this experiment were striking. Compared to a system that recorded every single trace, RADAR reduced the amount of data sent over the network by 97.4 percent. It also reduced the computing power required to process that data by 99.0 percent. These savings are significant because they mean the system can run much cheaper and faster. Yet, the researchers were careful to ensure that this efficiency did not come at the cost of missing important information. They compared the data collected by RADAR against the full dataset to see if it had captured the rare and critical events. They found that RADAR retained approximately 85.6 percent of the rare trace patterns—those unique, one-off events that often signal the beginning of a serious problem. Furthermore, the average diversity of the data that was kept increased by about 25 percent, meaning the remaining data was much more useful for diagnosis than a random sample would have been.

This approach represents a shift from static, human-defined rules to dynamic, autonomous management. Traditional systems require engineers to manually decide which rules to apply, a task that becomes difficult as the system changes and grows. RADAR, by contrast, continuously adapts to the current state of the system. It does not need to be told what an error looks like in advance; it simply learns to recognize that a diverse set of behaviors is more valuable than a repetitive one. The system operates entirely within the standard tools used by modern software engineers, making it compatible with existing infrastructure without requiring invasive changes to the application code itself.

The study demonstrates that it is possible to drastically reduce the burden of monitoring complex systems without sacrificing the ability to see what is wrong. By using a mathematical measure of diversity to guide the collection process, the researchers showed that an intelligent agent can learn to filter out the noise and keep the signal. While the experiment was conducted in a controlled environment, the results suggest a viable path forward for managing the growing complexity of cloud-based applications. The work highlights that the future of system monitoring may not lie in collecting more data, but in collecting smarter data, guided by agents that understand the value of information in real time.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →