[id='hotrod_monitoring']
= Monitoring Hot Rod Client Statistics
Enable Hot Rod client statistics that include remote and near-cache hits and
misses as well as connection pool usage.

.Procedure

* Use the `StatisticsConfigurationBuilder` class to enable and configure Hot
Rod client statistics.

[source,java]
----
import org.infinispan.client.hotrod.configuration.ConfigurationBuilder;

ConfigurationBuilder clientBuilder = new ConfigurationBuilder();
clientBuilder
   .statistics()
    .enable() <1>
   .jmxEnable() <2>
    .jmxDomain("org.infinispan") <3>
   .addServer()
    .host("127.0.0.1")
    .port(11222);
remoteCacheManager = new RemoteCacheManager(clientBuilder.build());
----

<1> enables client statistics.
<2> registers a JMX MBean for the `RemoteCacheManager` and each `RemoteCache`.
<3> sets the JMX domain name to which MBeans are exposed.
