-
Notifications
You must be signed in to change notification settings - Fork 354
Monitoring
Kim Eunho edited this page Mar 3, 2014
·
5 revisions
Astyanax has 2 main sources of monitoring
These include
- Basic timers for timing operations and record latency
- Counters for tracking success and error operations.
These include some basic counters like
- Connections borrowed
- Connections closed
- Connection errors
- Active C* nodes
- No of connections to each C* node
- etc
These 2 sets of monitoring metrics are encapsulated in interfaces
Astyanax requires users to plug in their own implementations for these 2 interfaces and plug them in during the init phase with AstyanaxContext.
public Builder withTracerFactory(KeyspaceTracerFactory tracerFactory) {
this.tracerFactory = tracerFactory;
return this;
}
public Builder withConnectionPoolMonitor(ConnectionPoolMonitor monitor) {
this.monitor = monitor;
return this;
}
Note that both these implementations must be thread safe.
A Netflix Original Production
Tech Blog | Twitter @NetflixOSS | Jobs
- Getting-Started
- Configuration
- Features
- Monitoring
- Thread Safety
- Timeouts
- Recipes
- Examples
- Javadoc
- Utilities
- Cassandra-Compatibility
- FAQ
- End-to-End Examples
- Astyanax Integration with Java Driver