Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

ystats

ystats subscribes to the live statistics of a running yuno and redraws them on a fixed interval. Where ycommand sends one request and prints one response, ystats keeps an open subscription and refreshes — use it to watch counters move (throughput, queue depth, connection counts) while a system is under load.

Usage

ystats --url ws://host:port [options]
# Watch the logcenter's stats, refreshing every 2 seconds
ystats --url ws://127.0.0.1:1991 --yuno_role logcenter -t 2

# Watch a specific statistic and a gobj attribute
ystats -s txMsgs -a connected -g my_tcp_server

Run ystats --help for the full flag list.

Options

OptionShortPurpose
--refresh_time=<n>-tRefresh interval in seconds (default 1).
--stats=<names>-sStatistic(s) to request.
--attribute=<names>-aAttribute(s) to request.
--command=<cmd>-cCommand to execute.
--gobj_name=<name>-gTarget gobj for the attribute (named gobj or full path).
--with-metadata-mInclude metadata in the output.
--url=<url>-uYuno to connect to. Default ws://127.0.0.1:1991.
--yuno_role=<role>-ORemote yuno role.
--yuno_name=<name>-oRemote yuno name.
--yuno_service=<svc>-STarget service. Default __default_service__.
--config-file=<file>-fLoad settings from a JSON config file (or files).
--print-pPrint the resulting configuration and exit.

Authentication uses the same OAuth2 / OIDC flags as ycommand (--issuer/-I, --token-endpoint/-T, --end-session-endpoint/-E, --client-id/-Z, --user_id/-x, --user_passw/-X, --jwt/-j) — see Authentication (OAuth2 / OIDC).

See also