Metrics Command Examples
For the complete documentation index see: llms.txt
All documentation pages available in markdown.
See the full metrics reference here.
Statistics
Statistics is a container for overall database health and service metrics, which can be displayed with asadm or asinfo:
asadm -e 'show statistics service'asinfo -v 'statistics' -lNamespace
Namespace contains health metrics for a particular namespace:
All namespace statistics
asadm -e 'show statistics namespace'Specific namespace statistics
asadm -e 'show statistics namespace for NAMESPACE_NAME'All namespaces
asinfo -v 'namespaces' -lSpecific namespace statistics
asinfo -v 'namespace/NAMESPACE_NAME' -lSet statistics
All set statistics
asadm -e 'show statistics set'Set statistics for a specific namespace
asadm -e 'show statistics set for NAMESPACE_NAME'Specific set statistics for a specific namespace
asadm -e 'show statistics set for NAMESPACE_NAME for SET_NAME'All set statistics
asinfo -v 'sets' -lSet statistics for a specific namespace
asinfo -v 'sets/NAMESPACE_NAME' -lSpecific set statistics for a specific namespace
asinfo -v 'sets/NAMESPACE_NAME/SET_NAME' -lSecondary index statistics
All secondary index statistics
asadm -e 'show statistics sindex'Secondary index statistics for a specific namespace
asadm -e 'show statistics sindex for NAMESPACE_NAME'Secondary index statistics for a specific secondary index in a specific namespace. Partial names can be used instead of full names
asadm -e 'show statistics sindex for NAMESPACE_NAME for SINDEX_NAME'All secondary index statistics
asinfo -v 'sindex' -lSecondary index statistics for a specific namespace
asinfo -v 'sindex/NAMESPACE_NAME' -lSecondary index statistics for a specific secondary index in a specific namespace Partial names can be used instead of full names
asinfo -v 'sindex/NAMESPACE_NAME/SINDEX_NAME' -lXDR
XDR includes health and service metrics for Cross-Datacenter Replication.
Do not use the XDR statistics to verify if a namespace is enabled. XDR statistics are still displayed even if the namespace is not currently enabled. After the namespace is enabled, gathering of statistics resumes where it had left off.
There are no independent namespace-level XDR statistics.
Statistics are per-datacenter or per-datacenter/per-namespace.
Display XDR statistics for an entire datacenter:
asadm -e 'show statistics xdr for DC_NAME'Display XDR statistics for an entire datacenter:
asinfo -v 'get-stats:context=xdr;dc=DC_NAME' -lDisplay XDR statistics for a specific namespace:
asinfo -v 'get-stats:context=xdr;dc=DC_NAME;namespace=NAMESPACE_NAME' -l