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: improved "ftl ps" #394

Merged
merged 1 commit into from
Sep 18, 2023
Merged

feat: improved "ftl ps" #394

merged 1 commit into from
Sep 18, 2023

Conversation

alecthomas
Copy link
Collaborator

Default:

🐚 ~/dev/ftl $ ftl ps
DEPLOYMENT                     REPLICAS
ad-d19b2e5a72                  1/1
cart-6d69b5b99d                3/6
checkout-ef630bf6b5            1/1
currency-ac373ff61b            1/1
payment-2325fc611e             1/1
productcatalog-bb0fe701d9      1/1
recommendation-c81f2734ff      1/1
shipping-f698a63e85            1/1

Verbose:

🐚 ~/dev/ftl $ ftl ps -v
DEPLOYMENT                               REPLICAS   STATE      RUNNER                      ENDPOINT
ad-d19b2e5a72-q2shg                      1/1        live       R01H8J2BMH8VTNKAT8MB66Q2SHG http://localhost:8903
cart-6d69b5b99d-4tw08                    1/6        live       R01H8DD0Z5GRT3QP1MBARC4TW08 http://localhost:8898
cart-6d69b5b99d-p5kq8                    2/6        live       R01H8DD12R0RZZS8AGYBGVP5KQ8 http://localhost:8899
cart-6d69b5b99d-bv50a                    3/6        live       R01H5BTS6ABP1EHGZSAGJMBV50A http://localhost:8894
cart-6d69b5b99d-?????                    4/6        -          -                           -
cart-6d69b5b99d-?????                    5/6        -          -                           -
cart-6d69b5b99d-?????                    6/6        -          -                           -
checkout-ef630bf6b5-sm9hv                1/1        live       R01H5BTSGKQ8AZ9S22N9N1SM9HV http://localhost:8895
currency-ac373ff61b-ccjmy                1/1        live       R01H8DD1D1W3KJG7NY63DYCCJMY http://localhost:8902
payment-2325fc611e-d216g                 1/1        live       R01H8DD0H13WX636B70WV7D216G http://localhost:8896
productcatalog-bb0fe701d9-f3c5m          1/1        live       R01H8DD15Y9SPGDQMXNJ0CF3C5M http://localhost:8900
recommendation-c81f2734ff-hedp9          1/1        live       R01H8DD0V6EFZWKV2G2XBBHEDP9 http://localhost:8897
shipping-f698a63e85-n52cp                1/1        live       R01H8DD18Z6CTY301G8GE8N52CP http://localhost:8901

Extra verbose:

🐚 ~/dev/ftl $ ftl ps -vv
DEPLOYMENT                               REPLICAS   STATE      RUNNER                      ENDPOINT                                           DEPLOYMENT-LABELS    RUNNER-LABELS
ad-d19b2e5a72-q2shg                      1/1        live       R01H8J2BMH8VTNKAT8MB66Q2SHG http://localhost:8903                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66929}
cart-6d69b5b99d-4tw08                    1/6        live       R01H8DD0Z5GRT3QP1MBARC4TW08 http://localhost:8898                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66926}
cart-6d69b5b99d-p5kq8                    2/6        live       R01H8DD12R0RZZS8AGYBGVP5KQ8 http://localhost:8899                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66923}
cart-6d69b5b99d-bv50a                    3/6        live       R01H5BTS6ABP1EHGZSAGJMBV50A http://localhost:8894                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66921}
cart-6d69b5b99d-?????                    4/6        -          -                           -                                                  -                    -
cart-6d69b5b99d-?????                    5/6        -          -                           -                                                  -                    -
cart-6d69b5b99d-?????                    6/6        -          -                           -                                                  -                    -
checkout-ef630bf6b5-sm9hv                1/1        live       R01H5BTSGKQ8AZ9S22N9N1SM9HV http://localhost:8895                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66922}
currency-ac373ff61b-ccjmy                1/1        live       R01H8DD1D1W3KJG7NY63DYCCJMY http://localhost:8902                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66930}
payment-2325fc611e-d216g                 1/1        live       R01H8DD0H13WX636B70WV7D216G http://localhost:8896                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66925}
productcatalog-bb0fe701d9-f3c5m          1/1        live       R01H8DD15Y9SPGDQMXNJ0CF3C5M http://localhost:8900                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66928}
recommendation-c81f2734ff-hedp9          1/1        live       R01H8DD0V6EFZWKV2G2XBBHEDP9 http://localhost:8897                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66924}
shipping-f698a63e85-n52cp                1/1        live       R01H8DD18Z6CTY301G8GE8N52CP http://localhost:8901                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66927}

Default:
```
🐚 ~/dev/ftl $ ftl ps
DEPLOYMENT                     REPLICAS
ad-d19b2e5a72                  1/1
cart-6d69b5b99d                3/6
checkout-ef630bf6b5            1/1
currency-ac373ff61b            1/1
payment-2325fc611e             1/1
productcatalog-bb0fe701d9      1/1
recommendation-c81f2734ff      1/1
shipping-f698a63e85            1/1
```

Verbose:
```
🐚 ~/dev/ftl $ ftl ps -v
DEPLOYMENT                               REPLICAS   STATE      RUNNER                      ENDPOINT
ad-d19b2e5a72-q2shg                      1/1        live       R01H8J2BMH8VTNKAT8MB66Q2SHG http://localhost:8903
cart-6d69b5b99d-4tw08                    1/6        live       R01H8DD0Z5GRT3QP1MBARC4TW08 http://localhost:8898
cart-6d69b5b99d-p5kq8                    2/6        live       R01H8DD12R0RZZS8AGYBGVP5KQ8 http://localhost:8899
cart-6d69b5b99d-bv50a                    3/6        live       R01H5BTS6ABP1EHGZSAGJMBV50A http://localhost:8894
cart-6d69b5b99d-?????                    4/6        -          -                           -
cart-6d69b5b99d-?????                    5/6        -          -                           -
cart-6d69b5b99d-?????                    6/6        -          -                           -
checkout-ef630bf6b5-sm9hv                1/1        live       R01H5BTSGKQ8AZ9S22N9N1SM9HV http://localhost:8895
currency-ac373ff61b-ccjmy                1/1        live       R01H8DD1D1W3KJG7NY63DYCCJMY http://localhost:8902
payment-2325fc611e-d216g                 1/1        live       R01H8DD0H13WX636B70WV7D216G http://localhost:8896
productcatalog-bb0fe701d9-f3c5m          1/1        live       R01H8DD15Y9SPGDQMXNJ0CF3C5M http://localhost:8900
recommendation-c81f2734ff-hedp9          1/1        live       R01H8DD0V6EFZWKV2G2XBBHEDP9 http://localhost:8897
shipping-f698a63e85-n52cp                1/1        live       R01H8DD18Z6CTY301G8GE8N52CP http://localhost:8901
```

Extra verbose:
```
🐚 ~/dev/ftl $ ftl ps -vv
DEPLOYMENT                               REPLICAS   STATE      RUNNER                      ENDPOINT                                           DEPLOYMENT-LABELS    RUNNER-LABELS
ad-d19b2e5a72-q2shg                      1/1        live       R01H8J2BMH8VTNKAT8MB66Q2SHG http://localhost:8903                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66929}
cart-6d69b5b99d-4tw08                    1/6        live       R01H8DD0Z5GRT3QP1MBARC4TW08 http://localhost:8898                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66926}
cart-6d69b5b99d-p5kq8                    2/6        live       R01H8DD12R0RZZS8AGYBGVP5KQ8 http://localhost:8899                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66923}
cart-6d69b5b99d-bv50a                    3/6        live       R01H5BTS6ABP1EHGZSAGJMBV50A http://localhost:8894                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66921}
cart-6d69b5b99d-?????                    4/6        -          -                           -                                                  -                    -
cart-6d69b5b99d-?????                    5/6        -          -                           -                                                  -                    -
cart-6d69b5b99d-?????                    6/6        -          -                           -                                                  -                    -
checkout-ef630bf6b5-sm9hv                1/1        live       R01H5BTSGKQ8AZ9S22N9N1SM9HV http://localhost:8895                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66922}
currency-ac373ff61b-ccjmy                1/1        live       R01H8DD1D1W3KJG7NY63DYCCJMY http://localhost:8902                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66930}
payment-2325fc611e-d216g                 1/1        live       R01H8DD0H13WX636B70WV7D216G http://localhost:8896                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66925}
productcatalog-bb0fe701d9-f3c5m          1/1        live       R01H8DD15Y9SPGDQMXNJ0CF3C5M http://localhost:8900                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66928}
recommendation-c81f2734ff-hedp9          1/1        live       R01H8DD0V6EFZWKV2G2XBBHEDP9 http://localhost:8897                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66924}
shipping-f698a63e85-n52cp                1/1        live       R01H8DD18Z6CTY301G8GE8N52CP http://localhost:8901                              {}                   {"arch":"arm64","hostname":"cavern.local","languages":["go","kotlin"],"os":"darwin","pid":66927}
```
@alecthomas alecthomas merged commit c104542 into main Sep 18, 2023
@alecthomas alecthomas deleted the aat/better-ps branch September 18, 2023 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant