You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our currently displayed sample count in the UI is wrong. It seems to represent the sum of values multiplied by 10e9. In order to correct this we need to signal the sampling rate from the collection point (SDK/alloy/agent) and persist it in Pyroscope.
The OG Pyroscope endpoint has this metadata, which is unused by the adapter:
We then need to calculate the average sample rate for the profiles in a flamegraph (sample rate is a flamegraph wide parameter in flamebearer) and update our read path accordingly.
To Reproduce
Steps to reproduce:
Query e.g. a CPU profile:
Both the value in the tool tip and and the total value, are wrong and just derived by
Expected behavior
This is the hard part to define the right count of samples in a flameGraph.
For time unit profiles:
Sum of values / sampleRate, while the sampleRate is only valid per profile
For memory/object unit profiles:
Unsure what we can do here, go for example scales up the sampled in-use space to represent the actual memory usage
Next steps
Variant A:
Update the default value for CPU to be more correct for defaults:
Variant B:
Persist sample rate per profile
Adapt query path to use avg. sampleRate for profiles in a flamegraph
Adapt query path display indivual sample counts per flamegraph box
The text was updated successfully, but these errors were encountered:
simonswine
added a commit
to simonswine/pyroscope
that referenced
this issue
Jun 6, 2024
Describe the bug
Our currently displayed sample count in the UI is wrong. It seems to represent the sum of values multiplied by 10e9. In order to correct this we need to signal the sampling rate from the collection point (SDK/alloy/agent) and persist it in Pyroscope.
The OG Pyroscope endpoint has this metadata, which is unused by the adapter:
pyroscope/pkg/og/ingestion/ingestion.go
Line 50 in ff04262
We then need to calculate the average sample rate for the profiles in a flamegraph (sample rate is a flamegraph wide parameter in flamebearer) and update our read path accordingly.
To Reproduce
Steps to reproduce:
Both the value in the tool tip and and the total value, are wrong and just derived by
Expected behavior
This is the hard part to define the right count of samples in a flameGraph.
For time unit profiles:
For memory/object unit profiles:
Next steps
Variant A:
Variant B:
The text was updated successfully, but these errors were encountered: