Class Metrics.Errors

  • Enclosing class:
    Metrics

    public class Metrics.Errors
    extends Object
    Metrics on errors encountered.
    • Constructor Detail

      • Errors

        public Errors()
    • Method Detail

      • getConnectionErrors

        public com.codahale.metrics.Counter getConnectionErrors()
        Returns the number of errors while connecting to Cassandra nodes.

        This represents the number of times that a request to a Cassandra node has failed due to a connection problem. This thus also corresponds to how often the driver had to pick a fallback host for a request.

        You can expect a few connection errors when a Cassandra node fails (or is stopped) ,but if that number grows continuously you likely have a problem.

        Returns:
        the number of errors while connecting to Cassandra nodes.
      • getAuthenticationErrors

        public com.codahale.metrics.Counter getAuthenticationErrors()
        Returns the number of authentication errors while connecting to Cassandra nodes.
        Returns:
        the number of errors.
      • getWriteTimeouts

        public com.codahale.metrics.Counter getWriteTimeouts()
        Returns the number of write requests that returned a timeout (independently of the final decision taken by the RetryPolicy).
        Returns:
        the number of write timeout.
      • getReadTimeouts

        public com.codahale.metrics.Counter getReadTimeouts()
        Returns the number of read requests that returned a timeout (independently of the final decision taken by the RetryPolicy).
        Returns:
        the number of read timeout.
      • getUnavailables

        public com.codahale.metrics.Counter getUnavailables()
        Returns the number of requests that returned an unavailable exception (independently of the final decision taken by the RetryPolicy).
        Returns:
        the number of unavailable exceptions.
      • getClientTimeouts

        public com.codahale.metrics.Counter getClientTimeouts()
        Returns the number of requests that timed out before the driver received a response.
        Returns:
        the number of client timeouts.
      • getOthers

        public com.codahale.metrics.Counter getOthers()
        Returns the number of requests that returned errors not accounted for by another metric. This includes all types of invalid requests.
        Returns:
        the number of requests errors not accounted by another metric.
      • getRetries

        public com.codahale.metrics.Counter getRetries()
        Returns the number of times a request was retried due to the RetryPolicy.
        Returns:
        the number of times a request was retried due to the RetryPolicy.
      • getRetriesOnReadTimeout

        public com.codahale.metrics.Counter getRetriesOnReadTimeout()
        Returns the number of times a request was retried due to the RetryPolicy, after a read timed out.
        Returns:
        the number of times a request was retried due to the RetryPolicy, after a read timed out.
      • getRetriesOnWriteTimeout

        public com.codahale.metrics.Counter getRetriesOnWriteTimeout()
        Returns the number of times a request was retried due to the RetryPolicy, after a write timed out.
        Returns:
        the number of times a request was retried due to the RetryPolicy, after a write timed out.
      • getRetriesOnUnavailable

        public com.codahale.metrics.Counter getRetriesOnUnavailable()
        Returns the number of times a request was retried due to the RetryPolicy, after an unavailable exception.
        Returns:
        the number of times a request was retried due to the RetryPolicy, after an unavailable exception.
      • getRetriesOnClientTimeout

        public com.codahale.metrics.Counter getRetriesOnClientTimeout()
        Returns the number of times a request was retried due to the RetryPolicy, after a client timeout.
        Returns:
        the number of times a request was retried due to the RetryPolicy, after a client timeout.
      • getRetriesOnConnectionError

        public com.codahale.metrics.Counter getRetriesOnConnectionError()
        Returns the number of times a request was retried due to the RetryPolicy, after a connection error.
        Returns:
        the number of times a request was retried due to the RetryPolicy, after a connection error.
      • getRetriesOnOtherErrors

        public com.codahale.metrics.Counter getRetriesOnOtherErrors()
        Returns the number of times a request was retried due to the RetryPolicy, after an unexpected error.
        Returns:
        the number of times a request was retried due to the RetryPolicy, after an unexpected error.
      • getIgnores

        public com.codahale.metrics.Counter getIgnores()
        Returns the number of times a request was ignored due to the RetryPolicy, for example due to timeouts or unavailability.
        Returns:
        the number of times a request was ignored due to the RetryPolicy.
      • getIgnoresOnReadTimeout

        public com.codahale.metrics.Counter getIgnoresOnReadTimeout()
        Returns the number of times a request was ignored due to the RetryPolicy, after a read timed out.
        Returns:
        the number of times a request was ignored due to the RetryPolicy, after a read timed out.
      • getIgnoresOnWriteTimeout

        public com.codahale.metrics.Counter getIgnoresOnWriteTimeout()
        Returns the number of times a request was ignored due to the RetryPolicy, after a write timed out.
        Returns:
        the number of times a request was ignored due to the RetryPolicy, after a write timed out.
      • getIgnoresOnUnavailable

        public com.codahale.metrics.Counter getIgnoresOnUnavailable()
        Returns the number of times a request was ignored due to the RetryPolicy, after an unavailable exception.
        Returns:
        the number of times a request was ignored due to the RetryPolicy, after an unavailable exception.
      • getIgnoresOnClientTimeout

        public com.codahale.metrics.Counter getIgnoresOnClientTimeout()
        Returns the number of times a request was ignored due to the RetryPolicy, after a client timeout.
        Returns:
        the number of times a request was ignored due to the RetryPolicy, after a client timeout.
      • getIgnoresOnConnectionError

        public com.codahale.metrics.Counter getIgnoresOnConnectionError()
        Returns the number of times a request was ignored due to the RetryPolicy, after a connection error.
        Returns:
        the number of times a request was ignored due to the RetryPolicy, after a connection error.
      • getIgnoresOnOtherErrors

        public com.codahale.metrics.Counter getIgnoresOnOtherErrors()
        Returns the number of times a request was ignored due to the RetryPolicy, after an unexpected error.
        Returns:
        the number of times a request was ignored due to the RetryPolicy, after an unexpected error.
      • getSpeculativeExecutions

        public com.codahale.metrics.Counter getSpeculativeExecutions()
        Returns the number of times a speculative execution was started because a previous execution did not complete within the delay specified by SpeculativeExecutionPolicy.
        Returns:
        the number of speculative executions.