|Managing and Monitoring GemFire XD / Evaluating Statistics for the System and Applications|
You can collect your own application-defined statistics to record anything of interest to your application, such as throughput and latency for multi-statement transactions and application-specific configuration values.
This capability gives you complete control over what to measure. It also makes it possible to gather statement-level or time-based statistics without the overhead of turning them on in the product.
Any peer member of a GemFire XD distributed system can collect and use application statistics. You can also use application statistics from non-members by connecting to a "loner" distributed system before defining statistics.
Application-Defined and Custom Statistics in the Pivotal Gemfire documentation describes how to incorporate statistics in your application.