mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-01 16:03:55 +08:00
1566362985
* [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