Class RedisMonitor

  • Direct Known Subclasses:
    CustomRedisMonitor

    public class RedisMonitor
    extends Object
    Monitors regularly redis info metrics and arbitrary commands. Sends the results to metrics.
    • Constructor Detail

      • RedisMonitor

        public RedisMonitor​(io.vertx.core.Vertx vertx,
                            io.vertx.redis.client.RedisAPI redisAPI,
                            String name,
                            int period)
        Parameters:
        vertx - vertx
        redisAPI - redisAPI
        name - name
        period - in seconds.
      • RedisMonitor

        public RedisMonitor​(io.vertx.core.Vertx vertx,
                            io.vertx.redis.client.RedisAPI redisAPI,
                            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
      • enableElementCount

        public void enableElementCount​(String metricName,
                                       String key)