@ManagedResource(description="Connection metrics") public class ConnectionMetrics extends AbstractMonitor
mongo
Constructor and Description |
---|
ConnectionMetrics(com.mongodb.Mongo mongo) |
Modifier and Type | Method and Description |
---|---|
int |
getAvailable() |
int |
getCurrent() |
getDb, getServerStatus, setPassword, setUsername
@ManagedMetric(metricType=GAUGE, displayName="Current Connections") public int getCurrent()
@ManagedMetric(metricType=GAUGE, displayName="Available Connections") public int getAvailable()
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.