metrico / qryn

Polyglot Observability Stack. Lightweight & Drop-in compatible with Loki, Prometheus, Tempo, Pyroscope, Opentelemetry, Datadog & more! WASM powered ⭐️ Star to Support
https://qryn.dev
GNU Affero General Public License v3.0
1.05k stars 63 forks source link

Support pyroscope querier SelectMergeProfile for PGO #525

Open Cluas opened 1 week ago

Cluas commented 1 week ago

Background: https://grafana.com/blog/2024/03/11/how-to-use-pgo-and-grafana-pyroscope-to-optimize-go-applications/

This article introduces a case of using pyroscope with PGO. Qryn collects profile data, and ideally we can implement /querier.v1.QuerierService/SelectMergeProfile, the interface mentioned in the article that is actually called eventually: https://github.com/grafana/pyroscope/blob/269ea6d5afe4d3bcdc7591b44afc1397715fbf2d/cmd/profilecli/query.go#L145. This way we can provide the same capability as a real pyroscope server.