Metrics Command Examples
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