Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch tctl top to use charmbracelet/bubbletea #51389

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

rosstimothy
Copy link
Contributor

@rosstimothy rosstimothy commented Jan 23, 2025

Most of the functionality was untouched, there were only few deviations to the original styling and alignment of components. The most notable changes are as follows:

  • The backend and cache tables no longer have a range column, range requests are now indicated by a preceding ®.
  • The watcher graphs are rendered with a different library and no longer have a confusing x axis
  • The colors do not match the original version
  • The cluster stats page includes the role count
  • Errors retrieving metrics no longer exits the process. The footer is updated to display errors and requires manual intervention to exit. If errors are intermittent future successful reports will restore functionality.

@rosstimothy rosstimothy added the no-changelog Indicates that a PR does not require a changelog entry label Jan 23, 2025
@rosstimothy rosstimothy force-pushed the tross/tctl_top_improvements branch from 46c9790 to 32c7e33 Compare January 23, 2025 18:19
@rosstimothy
Copy link
Contributor Author

Side by side comparison of the current version of tctl top and this branch against the same cluster:
https://github.com/user-attachments/assets/48730161-4854-4e7a-9f39-12041f447a2f

@rosstimothy rosstimothy force-pushed the tross/tctl_top_improvements branch 2 times, most recently from 09e3de2 to 486bc8f Compare January 23, 2025 23:32
@rosstimothy rosstimothy force-pushed the tross/tctl_top_improvements branch from 486bc8f to 09a4bc5 Compare January 24, 2025 05:26
@rosstimothy rosstimothy marked this pull request as ready for review January 24, 2025 14:52
@github-actions github-actions bot added size/md tctl tctl - Teleport admin tool labels Jan 24, 2025
Copy link
Contributor

@espadolini espadolini left a comment

Choose a reason for hiding this comment

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

I don't have a lot of experience using charmbracelet/lipgloss but this LGTM

tool/tctl/common/top/report.go Outdated Show resolved Hide resolved
@rosstimothy rosstimothy force-pushed the tross/tctl_top_improvements branch from 09a4bc5 to 3cde547 Compare January 27, 2025 22:22
@rosstimothy
Copy link
Contributor Author

Friendly ping @Joerger

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from Joerger January 28, 2025 15:51
@rosstimothy rosstimothy added this pull request to the merge queue Jan 28, 2025
@rosstimothy rosstimothy removed this pull request from the merge queue due to a manual request Jan 28, 2025
@rosstimothy rosstimothy force-pushed the tross/tctl_top_improvements branch from 3cde547 to 87fdabc Compare January 28, 2025 16:00
@rosstimothy rosstimothy enabled auto-merge January 28, 2025 16:01
@rosstimothy rosstimothy disabled auto-merge January 28, 2025 16:08
Most of the functionality was untouched, there were
only few deviations to the original styling and
alignment of components. The most notable changes are
as follows:

- The backend and cache tables no longer have a range
  column, range requests are now indicated by a preceding ®.
- The watcher graphs are rendered with a different
  library and no longer have a confusing x axis
- The colors do not match the original version
- The cluster stats page includes the role count
- Errors retrieving metrics no longer exits the process.
  The footer is updated to display errors and requires
  manual intervention to exit. If errors are intermittent
  future successful reports will restore functionality.
@rosstimothy rosstimothy force-pushed the tross/tctl_top_improvements branch from 87fdabc to 75e0528 Compare January 28, 2025 16:25
@rosstimothy rosstimothy enabled auto-merge January 28, 2025 16:26
@rosstimothy rosstimothy added this pull request to the merge queue Jan 28, 2025
Merged via the queue into master with commit e88edc7 Jan 28, 2025
44 checks passed
@rosstimothy rosstimothy deleted the tross/tctl_top_improvements branch January 28, 2025 17:04
@public-teleport-github-review-bot

@rosstimothy See the table below for backport results.

Branch Result
branch/v15 Failed
branch/v16 Failed
branch/v17 Failed

rosstimothy added a commit that referenced this pull request Jan 28, 2025
Most of the functionality was untouched, there were
only few deviations to the original styling and
alignment of components. The most notable changes are
as follows:

- The backend and cache tables no longer have a range
  column, range requests are now indicated by a preceding ®.
- The watcher graphs are rendered with a different
  library and no longer have a confusing x axis
- The colors do not match the original version
- The cluster stats page includes the role count
- Errors retrieving metrics no longer exits the process.
  The footer is updated to display errors and requires
  manual intervention to exit. If errors are intermittent
  future successful reports will restore functionality.
rosstimothy added a commit that referenced this pull request Jan 28, 2025
Most of the functionality was untouched, there were
only few deviations to the original styling and
alignment of components. The most notable changes are
as follows:

- The backend and cache tables no longer have a range
  column, range requests are now indicated by a preceding ®.
- The watcher graphs are rendered with a different
  library and no longer have a confusing x axis
- The colors do not match the original version
- The cluster stats page includes the role count
- Errors retrieving metrics no longer exits the process.
  The footer is updated to display errors and requires
  manual intervention to exit. If errors are intermittent
  future successful reports will restore functionality.
rosstimothy added a commit that referenced this pull request Jan 28, 2025
Most of the functionality was untouched, there were
only few deviations to the original styling and
alignment of components. The most notable changes are
as follows:

- The backend and cache tables no longer have a range
  column, range requests are now indicated by a preceding ®.
- The watcher graphs are rendered with a different
  library and no longer have a confusing x axis
- The colors do not match the original version
- The cluster stats page includes the role count
- Errors retrieving metrics no longer exits the process.
  The footer is updated to display errors and requires
  manual intervention to exit. If errors are intermittent
  future successful reports will restore functionality.
rosstimothy added a commit that referenced this pull request Jan 28, 2025
Most of the functionality was untouched, there were
only few deviations to the original styling and
alignment of components. The most notable changes are
as follows:

- The backend and cache tables no longer have a range
  column, range requests are now indicated by a preceding ®.
- The watcher graphs are rendered with a different
  library and no longer have a confusing x axis
- The colors do not match the original version
- The cluster stats page includes the role count
- Errors retrieving metrics no longer exits the process.
  The footer is updated to display errors and requires
  manual intervention to exit. If errors are intermittent
  future successful reports will restore functionality.
rosstimothy added a commit that referenced this pull request Jan 28, 2025
Most of the functionality was untouched, there were
only few deviations to the original styling and
alignment of components. The most notable changes are
as follows:

- The backend and cache tables no longer have a range
  column, range requests are now indicated by a preceding ®.
- The watcher graphs are rendered with a different
  library and no longer have a confusing x axis
- The colors do not match the original version
- The cluster stats page includes the role count
- Errors retrieving metrics no longer exits the process.
  The footer is updated to display errors and requires
  manual intervention to exit. If errors are intermittent
  future successful reports will restore functionality.
rosstimothy added a commit that referenced this pull request Jan 28, 2025
Most of the functionality was untouched, there were
only few deviations to the original styling and
alignment of components. The most notable changes are
as follows:

- The backend and cache tables no longer have a range
  column, range requests are now indicated by a preceding ®.
- The watcher graphs are rendered with a different
  library and no longer have a confusing x axis
- The colors do not match the original version
- The cluster stats page includes the role count
- Errors retrieving metrics no longer exits the process.
  The footer is updated to display errors and requires
  manual intervention to exit. If errors are intermittent
  future successful reports will restore functionality.
github-merge-queue bot pushed a commit that referenced this pull request Jan 28, 2025
Most of the functionality was untouched, there were
only few deviations to the original styling and
alignment of components. The most notable changes are
as follows:

- The backend and cache tables no longer have a range
  column, range requests are now indicated by a preceding ®.
- The watcher graphs are rendered with a different
  library and no longer have a confusing x axis
- The colors do not match the original version
- The cluster stats page includes the role count
- Errors retrieving metrics no longer exits the process.
  The footer is updated to display errors and requires
  manual intervention to exit. If errors are intermittent
  future successful reports will restore functionality.
github-merge-queue bot pushed a commit that referenced this pull request Jan 29, 2025
Most of the functionality was untouched, there were
only few deviations to the original styling and
alignment of components. The most notable changes are
as follows:

- The backend and cache tables no longer have a range
  column, range requests are now indicated by a preceding ®.
- The watcher graphs are rendered with a different
  library and no longer have a confusing x axis
- The colors do not match the original version
- The cluster stats page includes the role count
- Errors retrieving metrics no longer exits the process.
  The footer is updated to display errors and requires
  manual intervention to exit. If errors are intermittent
  future successful reports will restore functionality.
github-merge-queue bot pushed a commit that referenced this pull request Jan 29, 2025
Most of the functionality was untouched, there were
only few deviations to the original styling and
alignment of components. The most notable changes are
as follows:

- The backend and cache tables no longer have a range
  column, range requests are now indicated by a preceding ®.
- The watcher graphs are rendered with a different
  library and no longer have a confusing x axis
- The colors do not match the original version
- The cluster stats page includes the role count
- Errors retrieving metrics no longer exits the process.
  The footer is updated to display errors and requires
  manual intervention to exit. If errors are intermittent
  future successful reports will restore functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v15 backport/branch/v16 backport/branch/v17 no-changelog Indicates that a PR does not require a changelog entry size/md tctl tctl - Teleport admin tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants