[id='gathering-cli-statistics_{context}']
= Gathering resource statistics from the CLI

You can inspect server-collected statistics for some {brandname} Server resources with the [command]`stats` command.

Use the [command]`stats` command either from the context of a resource that provides statistics (containers, caches) or with a path to such a resource:

[source,options="nowrap",subs=attributes+]
----
stats
----
+
[source,json,options="nowrap",subs=attributes+]
----
include::json/cli_stats_container.json[]
----

[source,options="nowrap",subs=attributes+]
----
stats /containers/default/caches/mycache
----
+
[source,json,options="nowrap",subs=attributes+]
----
include::json/cli_stats_cache.json[]
----
