Skip to content

Show routable / readiness state in the cf app commandΒ #3350

@maxmoehl

Description

@maxmoehl

What's the user value of this feature request?

Right now readiness checks can be configured via the manifest but the CLI doesn't give any indication whether an application is ready. This causes confusion as the app is unreachable (404: route not found) but in the CLI it is shown as running with no indication of anything being wrong.

Who is the functionality for?

Users pushing apps with readiness checks.

How often will this functionality be used by the user?

Often, every time the readiness of app instances needs to be inspected.

Who else is affected by the change?

Operators who troubleshoot issues reported by users, anyone who might be parsing the output of the cf app command.

Is your feature request related to a problem? Please describe.

Yes, it is tedious to use cf curls to find the processes and list their stats to view the routable state.

Describe the solution you'd like

An additional column in the process table to view the readiness / routable state:

$ cf app my-app
Showing health and status for app my-app in org my-org / space my-space as [email protected]...

name:              my-app
requested state:   started
routes:            my-app.cf.example.com
[...]

     state     since                  ready   cpu    memory          disk            logging             cpu entitlement   details
#0   running   2025-01-07T09:11:53Z   true    2.1%   16.2M of 128M   36.9M of 256M   0B/s of unlimited   106.9%

Describe alternatives you've considered

An additional command but that seems unnecessary for just viewing such information.

Additional context

RFC0020 Readiness Healthchecks
CC v3 API: The process stats object

I'm willing to provide a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions