Class RedisMonitor
- java.lang.Object
-
- org.swisspush.gateleen.monitoring.RedisMonitor
-
- Direct Known Subclasses:
CustomRedisMonitor
public class RedisMonitor extends Object
Monitors regularly redis info metrics and arbitrary commands. Sends the results to metrics.
-
-
Constructor Summary
Constructors Constructor Description RedisMonitor(io.vertx.core.Vertx vertx, RedisProvider redisProvider, String name, int period)RedisMonitor(io.vertx.core.Vertx vertx, RedisProvider redisProvider, String name, int period, MetricsPublisher publisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenableElementCount(String metricName, String key)protected StringgetMonitoringAddress()Get the event bus address of the monitoring.voidstart()voidstop()
-
-
-
Constructor Detail
-
RedisMonitor
public RedisMonitor(io.vertx.core.Vertx vertx, RedisProvider redisProvider, String name, int period)- Parameters:
vertx- vertxredisProvider- RedisProvidername- nameperiod- in seconds.
-
RedisMonitor
public RedisMonitor(io.vertx.core.Vertx vertx, RedisProvider redisProvider, String name, int period, MetricsPublisher publisher)
-
-
Method Detail
-
start
public void start()
-
stop
public void stop()
-
getMonitoringAddress
protected String getMonitoringAddress()
Get the event bus address of the monitoring. Override this method when you want to use a custom monitoring address- Returns:
- the event bus address of monitoring
-
-