Skip to content

Conversation

korniltsev
Copy link
Contributor

Suggesting new metrics for these issues

https://github.com/grafana/pyroscope-squad/issues/557
https://github.com/grafana/pyroscope-squad/issues/346

  1. distributor_received_decompressed_bytes_total - incremented for each received profile as soon we try processing the profile, before any ratelimit/sampling checks
  2. distributor_processed_decompressed_bytes - incremented after ratelimit/sampling checks at the exit of the processing routine with defer (note : potentially after normalization if the profile is valid)

TODO: add tests

Copy link
Contributor

@aleks-p aleks-p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

receivedDecompressedBytesTotal: prometheus.NewHistogramVec(
prometheus.HistogramOpts{
Namespace: "pyroscope",
Name: "distributor_received_decompressed_bytes_total",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect this to be confused with the existing metric because they have an overlapping name, but I can't think of a better name. Perhaps once we validate that this metric works the way we want, we can remove or rename the existing one (potentially breaking dashboards in the process).

@korniltsev korniltsev merged commit f57601a into main Aug 12, 2025
24 checks passed
@korniltsev korniltsev deleted the korniltsev/distributor_new_metrics branch August 12, 2025 01:37
korniltsev added a commit that referenced this pull request Aug 12, 2025
korniltsev added a commit that referenced this pull request Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants