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
- asinfo
asadm -e 'show statistics service'
asinfo -v 'statistics' -l
Namespace
Namespace contains health metrics for a particular namespace:
- asadm
- asinfo
All namespace statistics
asadm -e 'show statistics namespace'
Specific namespace statistics
asadm -e 'show statistics namespace for <namespace name>'
All namespaces
asinfo -v 'namespaces' -l
Specific namespace statistics
asinfo -v 'namespace/<namespace name>' -l
Set statistics
- asadm
- asinfo
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' -l
Set statistics for a specific namespace
asinfo -v 'sets/<namespace name>' -l
Specific set statistics for a specific namespace
asinfo -v 'sets/<namespace name>/<set name>' -l
Secondary index statistics
- asadm
- asinfo
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' -l
Secondary index statistics for a specific namespace
asinfo -v 'sindex/<namespace name>' -l
Secondary 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>' -l
XDR
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.
- asadm
- asinfo
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>' -l
Display XDR statistics for a specific namespace:
asinfo -v 'get-stats:context=xdr;dc=<dc name>;namespace=<namespace name>' -l