Infinispan Monitoring: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 16: Line 16:
==HotRod Endpoint==
==HotRod Endpoint==


Bytes read count and bytes written count, which can be used to infer the read and write rate, in bytes/second (JDG 6 JMX [[Infinispan_HotRod_Connector_Metrics#totalBytesRead|totalBytesRead]], [[Infinispan_HotRod_Connector_Metrics#totalBytesWritten|totalBytesWritten]], JDG 7 JMX [[Infinispan_HotRod_Connector_Metrics#bytesRead|bytesRead]], [[Infinispan_HotRod_Connector_Metrics#bytesWritten|bytesWritten]]. It is preferable to expose these metrics as a rate per second. Some monitoring solutions allow that (see [[DataDog_and_JMX#Counter|Data Dog counters]]).
Bytes read count and bytes written count, which can be used to infer the read and write rate, in bytes/second (JDG 6 JMX [[Infinispan_HotRod_Connector_Metrics#totalBytesRead|totalBytesRead]], [[Infinispan_HotRod_Connector_Metrics#totalBytesWritten|totalBytesWritten]], JDG 7 JMX [[Infinispan_HotRod_Connector_Metrics#bytesRead|bytesRead]], [[Infinispan_HotRod_Connector_Metrics#bytesWritten|bytesWritten]]. It is preferable to expose these metrics as a rate per second. Some monitoring solutions allow the rate to be calculated automatically (see [[DataDog_and_JMX#Counter|Data Dog counters]]).


The number of worker threads (JDG 6 JMX [[Infinispan_HotRod_Connector_Metrics#numberWorkerThreads|numberWorkerThreads]]: JDG 7 JMX [[Infinispan_HotRod_Connector_Metrics#workerThreads|workerThreads]]).
The number of worker threads (JDG 6 JMX [[Infinispan_HotRod_Connector_Metrics#numberWorkerThreads|numberWorkerThreads]]: JDG 7 JMX [[Infinispan_HotRod_Connector_Metrics#workerThreads|workerThreads]]).

Revision as of 17:01, 20 October 2016

Internal

Relevance

  • JDG 7

Overview

This article describes a possible set up for Infinispan production monitoring.

Metric Collection

HotRod Endpoint

Bytes read count and bytes written count, which can be used to infer the read and write rate, in bytes/second (JDG 6 JMX totalBytesRead, totalBytesWritten, JDG 7 JMX bytesRead, bytesWritten. It is preferable to expose these metrics as a rate per second. Some monitoring solutions allow the rate to be calculated automatically (see Data Dog counters).

The number of worker threads (JDG 6 JMX numberWorkerThreads: JDG 7 JMX workerThreads).

The Cache Container

The number of hits, misses and stores at the cache container level. This is an aggression of the corresponding values for the underlying caches.

Individual Caches

Generic Monitoring

TODO

      conf:
        - include:
            domain: jboss.as
            bean:
               - jboss.as:subsystem=datagrid-infinispan,cache-container=clustered
               - jboss.as:subsystem=datagrid-jgroups,channel=cluster,protocol=UNICAST3
               - jboss.as:subsystem=datagrid-infinispan-endpoint,hotrod-connector=hotrod-connector
               - jboss.as:subsystem=datagrid-infinispan,cache-container=clustered,distributed-cache=gameStateCache
               - jboss.as:subsystem=datagrid-infinispan,cache-container=clustered,distributed-cache=conditionVariableCache
               - jboss.as:subsystem=datagrid-infinispan,cache-container=clustered,distributed-cache=eventLogCache
            attribute:
               numberOfEntries:
                 alias: jmx.numberOfEntries
                 metric_type: counter
               averageReadTime:
                 alias: jmx.averageReadTime
                 metric_type: counter
               averageRemoveTime:
                 alias: jmx.averageRemoveTime
                 metric_type: counter
               averageReplicationTime:
                 alias: jmx.averageReplicationTime
                 metric_type: counter
               averageWriteTime:
                 alias: jmx.averageWriteTime
                 metric_type: counter
               stores:
                 alias: jmx.stores
                 metric_type: counter
               hits:
                 alias: jmx.hits
                 metric_type: counter
               misses:
                 alias: jmx.misses
                 metric_type: counter
               replicationCount:
                 alias: jmx.replicationCount
                 metric_type: counter
               replicationFailures:
                 alias: jmx.replicationFailures
                 metric_type: counter
               readWriteRatio:
                 alias: jmx.readWriteRatio
                 metric_type: counter
               successRatio:
                 alias: jmx.successRatio
                 metric_type: counter
        - include:
            domain: java.lang
            bean:
               - java.lang:type=OperatingSystem
               - java.lang:type=Threading
            attribute:
               OpenFileDescriptorCount:
                 alias: jmx.OpenFileDescriptorCount
                 metric_type: counter
               MaxFileDescriptorCount:
                 alias: jmx.MaxFileDescriptorCount
                 metric_type: counter
               TotalStartedThreadCount:
                 alias: jmx.TotalStartedThreadCount
                 metric_type: counter
               PeakThreadCount:
                 alias: jmx.PeakThreadCount
                 metric_type: counter