Monitor DSE Graph clusters
DSE Graph exposes different graph metrics as JMX MBeans:
-
Metrics concerning the tables used to store graph data are found under
org.apache.cassandra.db.Tablesfor each graph (by graph name) and graph system. -
Metrics concerning the index table for graph data are found under
org.apache.cassandra.db.IndexTablesfor each graph (by graph name). -
Additional metrics can be found under
org.apache.cassandra.metrics.Tablefor each graph (by graph name) and graph system. -
Several metrics are also exposed under
com.datastax.bdp.graph.
MBeans are exposed with JConsole or the command nodetool sjk mx.
For more information, see Monitor DataStax Enterprise (DSE) clusters.
Graph metrics by graph name
Metrics are reported for individual graphs. Graph-specific metrics are named after their associated graph.
Graph-specific metrics are exposed with the following attributes:
-
adjacency-cache-hit: The number of times the adjacency cache has had a cache hit. -
adjacency-cache-miss: The number of times the adjacency cache has had a cache miss. -
graph-opened: The number of times the graph has been opened. -
index-cache-hit: The number of times the index cache has had a cache hit. -
index-cache-miss: The number of times the index cache has had a cache miss.
You can use the following JMX operations on graph-specific metrics:
-
adjacency-cache.size: Computes the adjacency cache size (number of entries). -
adjacency-cache.clear: Removes all entries from an adjacency cache (clear a graph’s adjacency cache). -
index-cache.size: Computes the index cache size (number of entries). -
index-cache.clear: Removes all entries from an index cache (clear a graph’s index cache).
|
These JMX operations aren’t cluster-aware. You must invoke them on each node as needed. |
Graph thread metrics
Graph thread metrics include GraphQueryThreads, GraphScheduledThreads, GraphSystemThreads, and GremlinWorkerThreads MBeans.
All graph thread metrics expose the following attributes:
-
ActiveCount -
CompletedTaskCount -
CorePoolSize -
LargestPoolSize -
MaximumPoolSize -
Pending -
QueueRemainingCapacity -
TaskCount
GremlinServerPlugin
The following attributes are available for the Gremlin Server:
-
Active: Boolean indicating whether DSE Graph is enabled. -
AnalyticsGraphServerIP: IP address of the server. -
Port: Port number of the Gremlin server.
Statements
The Statement metrics expose CQL statement latency metrics through JMX.
They are located under com.datastax.bdp.graph.Statements.
The following statements are tracked:
-
Delete:DELETEstatement -
Update:UPDATEstatement -
LoggedBatch:BATCHstatement that isLOGGED, such asBEGIN LOGGED BATCH… -
UnloggedBatch:BATCHstatement that isUNLOGGED, such asBEGIN UNLOGGED BATCH… -
SchemaAltering: Any statement that alters the schema, such asCREATE MATERIALIZED VIEW… -
SearchSchemaAltering: Any statement that alters a search index, such asDROP SEARCH INDEX ON … -
SelectSearch:SELECTstatement using a search index in theWHEREclause -
SelectSecondary:SELECTstatement using a secondary index -
SelectView:SELECTstatement using a materialized view table -
SelectTable:SELECTstatement that uses no index, but only a primary key and optionally a clustering key for selection
All statement metrics have the following attributes:
-
50thPercentile -
75thPercentile -
95thPercentile -
98thPercentile -
99thPercentile -
999thPercentile -
Count -
DurationUnit -
FifteenMinuteRate -
FiveMinuteRate -
OneMinuteRate -
Max -
Min -
Mean -
MeanRate -
RateUnit -
RecentValues -
StdDev