OpsCanary
Back to daily brief
observabilityPractitioner

Unlocking Performance: Pyroscope 2.0 for Continuous Profiling at Scale

5 min read Grafana Blog
Share
PractitionerHands-on experience recommended

Continuous profiling is essential for understanding not just that your code is slow, but why it is slow or expensive. Pyroscope 2.0 addresses this need by streamlining the profiling process, making it faster and more cost-effective for large-scale applications. By eliminating write-path replication, each profile is written exactly once to object storage, ensuring that you have a single source of truth for all profile data. This approach not only reduces redundancy but also enhances performance by storing profiles from the same service close together, which minimizes the symbol storage footprint.

The architecture of Pyroscope 2.0 is designed for scalability. The entire read path is stateless, allowing queriers to dynamically scale based on demand. This means that as your application grows, Pyroscope can adapt without the need for complex configurations. The integration of the OpenTelemetry Protocol (OTLP) standard further simplifies the ingestion of profiles, making it easier to incorporate into existing workflows. Grafana Cloud Profiles has been successfully running Pyroscope 2.0 in production since April 2025, showcasing its reliability and effectiveness in real-world scenarios.

When deploying Pyroscope 2.0, ensure that you configure object storage correctly, as it is crucial for distributed deployments. This setup will allow you to leverage the full capabilities of the platform while maintaining efficient data management. While the documentation does not specify anti-patterns, always assess your specific requirements and scale before implementing this solution.

Key takeaways

  • Understand continuous profiling as the key to identifying performance bottlenecks.
  • Utilize data co-location to reduce symbol storage footprint and enhance efficiency.
  • Leverage stateless queriers to scale your profiling solution based on demand.
  • Configure object storage correctly for distributed deployments to ensure data integrity.
  • Adopt the OpenTelemetry Protocol (OTLP) for seamless profile ingestion.

Why it matters

In production, Pyroscope 2.0 can drastically reduce the time and cost associated with performance tuning. By providing clear insights into code inefficiencies, it empowers teams to optimize applications effectively.

When NOT to use this

The official docs don't call out specific anti-patterns here. Use your judgment based on your scale and requirements.

Want the complete reference?

Read official docs

Test what you just learned

Quiz questions written from this article

Take the quiz →

Get the daily digest

One email. 5 articles. Every morning.

No spam. Unsubscribe anytime.