mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-23 22:08:11 -05:00
Track in graphite new Cassandra connections being opened.
This commit is contained in:
@@ -222,6 +222,9 @@ class StatsCollectingConnectionPool(pool.ConnectionPool):
|
||||
self.stats = stats
|
||||
|
||||
def _get_new_wrapper(self, server):
|
||||
host, sep, port = server.partition(':')
|
||||
self.stats.event_count('cassandra.connections', host)
|
||||
|
||||
cf_types = (columnfamily.ColumnParent, columnfamily.ColumnPath)
|
||||
|
||||
def get_cf_name_from_args(args, kwargs):
|
||||
|
||||
Reference in New Issue
Block a user