Was this page helpful?
ScyllaDB Python Driver is available under the Apache v2 License. ScyllaDB Python Driver is a fork of DataStax Python Driver. See Copyright here.
cassandra.metrics - Performance Metrics¶A collection of timers and counters for various performance metrics.
Timer metrics are represented as floating point seconds.
A PmfStat timer for requests. This is a dict-like
object with the following keys:
count - number of requests that have been timed
min - min latency
max - max latency
mean - mean latency
stddev - standard deviation for latencies
median - median latency
75percentile - 75th percentile latencies
95percentile - 95th percentile latencies
98percentile - 98th percentile latencies
99percentile - 99th percentile latencies
999percentile - 99.9th percentile latencies
A IntStat count of the number of times that a
request to a Cassandra node has failed due to a connection problem.
A IntStat count of write requests that resulted
in a timeout.
A IntStat count of read requests that resulted
in a timeout.
A IntStat count of write or read requests that
failed due to an insufficient number of replicas being alive to meet
the requested ConsistencyLevel.
A IntStat count of all other request failures,
including failures caused by invalid requests, bootstrapping nodes,
overloaded nodes, etc.
A IntStat count of the number of times a
request was retried based on the RetryPolicy decision.
A IntStat count of the number of times a
failed request was ignored based on the RetryPolicy decision.
A IntStat count of the number of nodes in
the cluster that the driver is aware of, regardless of whether any
connections are opened to those nodes.
A IntStat count of the number of nodes that
the driver currently has at least one connection open to.
A IntStat count of the number connections
the driver currently has open.
Returns the metrics for the registered cluster instance.
Set the metrics stats name. The stats_name is a string used to access the metrics through getStats(): getStats()[<stats_name>] Default is ‘cassandra-<num>’.
Remove this metrics instance from the global registry. Called when the cluster is shutdown to prevent stale references.
Was this page helpful?
ScyllaDB Python Driver is available under the Apache v2 License. ScyllaDB Python Driver is a fork of DataStax Python Driver. See Copyright here.
On this page
cassandra - Exceptions and Enumscassandra.cluster - Clusters and Sessionscassandra.policies - Load balancing and Failure Handling Policiescassandra.auth - Authenticationcassandra.graph - Graph Statements, Options, and Row Factoriescassandra.metadata - Schema and Ring Topologycassandra.metrics - Performance Metricscassandra.query - Prepared Statements, Batch Statements, Tracing, and Row Factoriescassandra.pool - Hosts and Connection Poolscassandra.protocol - Protocol Featurescassandra.encoder - Encoders for non-prepared Statementscassandra.decoder - Data Return Formatscassandra.concurrent - Utilities for Concurrent Statement Executioncassandra.connection - Low Level Connection Infocassandra.util - Utilitiescassandra.timestamps - Timestamp Generationcassandra.io.asyncioreactor - asyncio Event Loopcassandra.io.asyncorereactor - asyncore Event Loopcassandra.io.eventletreactor - eventlet-compatible Connectioncassandra.io.libevreactor - libev Event Loopcassandra.io.geventreactor - gevent-compatible Event Loopcassandra.io.twistedreactor - Twisted Event Loopcassandra.cqlengine.models - Table models for object mappingcassandra.cqlengine.columns - Column types for object mapping modelscassandra.cqlengine.query - Query and filter model objectscassandra.cqlengine.connection - Connection management for cqlenginecassandra.cqlengine.management - Schema management for cqlenginecassandra.cqlengine.usertype - Model classes for User Defined Typescassandra.datastax.graph - Graph Statements, Options, and Row Factoriescassandra.datastax.graph.fluentcassandra.datastax.graph.fluent.querycassandra.datastax.graph.fluent.predicates