Skip to content
STIRUP

TECHNOLOGY INTELLIGENCE

Understand what's next.

Challenges and Strategies in Self-Hosted Observability Systems

Self-hosted observability systems face challenges such as legacy code integration, sharding complexity, and indexing limitations, requiring careful planning and infrastructure understanding.

Share
AI-generated conceptual illustration accompanying: Challenges and Strategies in Self-Hosted Observability Systems
AI-generated editorial illustration of the article topic; not a photograph, product screenshot or measured result.

Challenges of Self-Hosted Observability Systems

Self-hosted observability systems present a range of challenges, particularly when dealing with legacy codebases and complex infrastructures. As noted in one discussion, providing observability into a large Perl monolith has proven to be a significant undertaking . Additionally, building a custom observability solution requires acknowledging the inherent complexities and potential pitfalls involved . One particularly difficult aspect is sharding, which often demands extensive manual effort, especially in environments where natural boundaries for sharding are absent. In such cases, creating additional federated instances to manage metrics becomes a necessary but cumbersome step . These challenges underscore the need for careful planning and a deep understanding of the system's architecture when opting for a self-hosted approach.

Scaling Strategies for Metrics Storage

When scaling metrics storage, strategies such as horizontal and vertical scaling play a critical role. According to InfoQ, VictoriaMetrics offers a clustering solution that enables horizontal scaling, allowing systems to grow by adding more nodes. InfoQ highlights that when storage limits are reached, options include vertical scaling—upgrading individual server capacity—or sharding, which involves splitting metrics across multiple servers. At Cloudflare, as noted in InfoQ, each time series in a head chunk consumes approximately 4 kilobytes, a figure that should be considered during capacity planning. These approaches provide flexibility depending on the specific needs and constraints of an organization. However, the choice between horizontal and vertical scaling, or the decision to shard, depends on factors such as data volume, query patterns, and infrastructure capabilities. Proper planning and understanding of these metrics can help avoid performance bottlenecks and ensure long-term scalability.

Distributed Query Engine and Horizontal Scaling

In distributed systems, the ability to scale query performance is critical for maintaining observability at scale. Thanos, while effective in many scenarios, faces limitations in highly distributed environments due to its reliance on pulling data from sidecars that run alongside Prometheus instances. This approach can become a bottleneck when dealing with large-scale, geographically dispersed infrastructures.

By contrast, using a distributed query engine with the appropriate configuration allows computation to be pushed down to the sidecars. These sidecars then return partial results, which are combined centrally. This architecture enables horizontal scaling of the Prometheus query layer without requiring significant changes to the underlying infrastructure, offering a more flexible and scalable solution for complex environments.

Complexity and Trade-offs in Telemetry Implementation

Implementing telemetry systems at scale introduces a range of complexity and trade-offs, as highlighted by developers working on self-hosted observability solutions. One challenge involves the integration of third-party libraries, such as OTel, which can add significant overhead due to their complex APIs. As one developer noted, the choice between a simple println statement and importing extensive telemetry libraries reflects the trade-off between ease of use and comprehensive monitoring capabilities. Additionally, the ability to search for specific data points, such as a user ID, depends on how the telemetry system is structured. While some features are still experimental and may not be fully integrated into mainstream tools like Prometheus, the ongoing evolution of these systems underscores the need for careful consideration of scalability, maintainability, and performance when designing observability architectures.

Limitations and Practical Considerations in Indexing

When implementing self-hosted observability solutions, limitations in indexing can significantly impact performance and scalability. As noted in the presentation, full-text search capabilities introduce additional complexity, as seen in the case where user 202 and 2070 encountered specific challenges (InfoQ). Another practical consideration is the restriction on dynamic fields within an index. Ingestion may halt if the number of dynamic fields exceeds predefined limits, requiring manual adjustments to configuration files such as YAML (InfoQ). These constraints highlight the need for careful planning and configuration when deploying observability systems at scale. While self-hosted solutions offer flexibility, they also demand a deep understanding of underlying indexing mechanisms and their limitations.

Sources and reporting notes

Based on published source material. No independent hands-on testing is claimed.

Read more