Behind the Scenes: Building K-Lens

Behind the Scenes: Building K-Lens

A Deeper Dive into APM Observability

A Deeper Dive into APM Observability

Published on

Nov 6, 2024

The growing complexity of modern architectures often leads to intricate challenges in pinpointing latency bottlenecks and root-causing performance issues. Enter K-Lens, a feature designed to simplify APM observability and provide actionable insights.

Figure 1. Heatmap visualization with ability to run K-Lens tool over selection area

Figure 2. K-Lens attribute-wise comparison over hundreds of attributes

Why Is K-Lens Needed?

Distributed systems generate an immense amount of trace data, and it is often a challenge to identify the “why” behind performance bottlenecks. Other tools in the market inundate users with raw latency data without highlighting anomalies or interesting patterns. Teams need a way to surface the most impactful issues quickly, particularly in large-scale systems with hundreds of interconnected services.

K-Lens was developed to address this very gap. It enables teams to dynamically "zoom in" on specific traces and spans, compare normal and anomalous behavior, and identify performance hotspots in a way that's visual, intuitive, and effective. Users can easily discover what’s different between two states in their system—but tailored to their specific workflows and needs.

The Impact of K-Lens

Since its implementation, K-Lens has had a transformative effect on how teams approach debugging and optimization in distributed systems. Key benefits include:

  1. Actionable Insights:
    K-Lens visually highlights deviations in trace data, making it easier to identify anomalies or patterns of interest.

  2. Root Cause Analysis Simplified:
    By comparing traces from normal and problematic states, teams can pinpoint what’s changed or deviated in a given workflow.

  3. Time-to-Resolution Improved:
    With K-Lens, teams spend less time sifting through trace data and more time resolving issues.

  4. Scalable Observability:
    It works seamlessly even in high-throughput environments, ensuring that the observability experience doesn’t degrade as systems scale.

Behind-the-Scenes: Challenges and Aha Moments

The journey to creating K-Lens was filled with both challenges and breakthroughs:

  • Challenge: Visualizing Complexity
    The biggest hurdle was designing a visualization system that could accommodate the vast amounts of data while remaining user-friendly. Early prototypes either overwhelmed users with too much information or oversimplified the trace data, losing valuable context.

  • The Dynamic Comparison Layer
    The breakthrough came with the introduction of a latency-based heatmap combined with a dynamic comparison layer. This layer allows users to focus on the differences between two sets of trace data (normal/baseline and anomalous), over hundreds of dimensions (attributes), effectively surfacing anomalies or unexpected behavior.

K-Lens in Action

Imagine a distributed system where a new deployment causes a spike in latency for a specific service. K-Lens allows engineers to compare trace latencies from before and after the deployment. With a clear visual breakdown of differences—highlighted dynamically—they can quickly narrow down the root cause to a configuration change or a bottleneck in a dependent service.

Another example is a common scenario where a distributed cache layer goes offline leading to cache misses hitting the slower database layer. This results in higher latencies observed while completing user requests. K-Lens can automatically parse through hundreds of attributes across millions of traces to figure out that the differences are due to latency attributes related to database vs.cache.

Here is also a short product video showing the capabilities of K-Lens.

Final Thoughts

K-Lens has elevated observability for distributed systems by making trace data more accessible and actionable. K-Lens uniquely integrates into our workflows and addresses challenges specific to our systems. It empowers teams to not just react to issues but to proactively understand and optimize their systems with confidence.

You can learn more about K-Lens in our documentation.

Observe. Analyze. Automate.

Observe. Analyze. Automate.

Observe. Analyze. Automate.

All Rights Reserved ® Kloudfuse 2024

Terms and Conditions

All Rights Reserved ® Kloudfuse 2024

Terms and Conditions

All Rights Reserved ® Kloudfuse 2024

Terms and Conditions