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

feat: add app stats output #178

Merged
merged 1 commit into from
Oct 14, 2024
Merged

feat: add app stats output #178

merged 1 commit into from
Oct 14, 2024

Conversation

ctrox
Copy link
Contributor

@ctrox ctrox commented Oct 14, 2024

This adds a new stats output format for the get app command. It prints status information about the app replicas and also some very basic metrics. The get app help has been extended to explain all the columns of the stats output.

Here's what the output looks like:

$ nctl get apps -o stats
PROJECT        NAME    REPLICA                  STATUS   CPU   CPU%   MEMORY   MEMORY%   RESTARTS   LASTEXITCODE
nine-staging   rails   rails-9f6bdb676-crlrf    ready    1m    0.8%   121MiB   47.4%     0          <none>
nine-staging   rails   rails-9f6bdb676-2pfps    ready    1m    0.8%   123MiB   48.4%     0          <none>
nine-staging   rails   rails-9f6bdb676-sd9mm    ready    1m    0.8%   122MiB   48.0%     1          137 (Out of memory)

go.mod Outdated Show resolved Hide resolved
This adds a new `stats` output format for the `get app` command. It
prints status information about the app replicas and also some very
basic metrics.
@ctrox ctrox merged commit a913a17 into main Oct 14, 2024
2 checks passed
@ctrox ctrox deleted the app-metrics branch October 14, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants