Files
teleport/tool
Luke Okraszewski 1566362985 [tctl/top] Add raw metrics view (#57260)
* [tctl/top] Add raw metrics view

This commit adds a new tab to the `tctl top` utility
which renders prometheus metrics as a list which supports
live updates and filtering.

It makes use of the bubbles/list charm which supports
fuzzy searching via github.com/sahilm/fuzzy.

Refactores the main model to split the refresh tick
into seperate tea commands to allow tapping the raw
metrics concurrently to generating the report.
Keybinds are now stored as part of the model and used
directly for handling KeyMsg events.

Note that `list.Model` does not support variable height
list item entries and for pagination purposes this value
needs to be fixed, for this reason histogram metrics will
only render sum and count.

Closes: #56944

changelog: tctl top can now display raw prometheus metrics

* apply review suggestions
2025-08-07 08:30:57 +00:00
..