grafana/grafana

Pyroscope/flamegraph: Move "other" out of the TOP table and explain it better

Open

#110677 opened on Sep 5, 2025

View on GitHub
 (3 comments) (0 reactions) (0 assignees)TypeScript (73,744 stars) (13,868 forks)batch import
area/panel/flame-graphgood first issueinternalkind/enhancement

Description

Why is this needed:

Especially in larger deployments and queries over wider time windows. The "other" node becomes the biggest self contributor to resource consumption. Esp. its prominent position in the top table is confusing:

What would you like to be added:

While it is mathematically correct, it is not helpful to list "other" in the top table, as it doesn't show an actionable resource consumption.

In Pyroscope's flamegraph query endpoints we limit the size of the flamegraph to the maxNodes parameters, and we only show the TOP maxNodes total stacktraces. Everything else will be aggregated into "others".

So rather than showing "other" in the table we should filter it in the table and show it under the table:

> A total of "x" has been truncated and is represented by "other" in the flamegraph. Each truncated stacktrace had a total resource consumption of "y".

X: The self/total value of other (they should be matching)
Y: The minimum value of total in the flame graph.

It should still have the icons for sandwich view and for highlight in flamegraph.

Contributor guide