Skip to main content

Redis Monitor

Overview

This section highlights the relevance of monitoring through redis.

Description

Redis has two internal metrics to monitor related metric.More component monitoring messages

  1. RedisConf related introduction.
        metricReqDur = metric.NewHistogramVec(&metric.HistogramVecOpts{
    Namespace: namespace,
    Subsystem: "requests",
    Name: "duration_ms",
    Help: "redis client requests duration(ms).",
    Labels: []string{"command"},
    Buckets: []float64{5, 10, 25, 50, 100, 250, 500, 1000, 2500},
    })
  2. metricReqErr: Useful monitoring of redis commands.
        metricReqErr = metric.NewCounterVec(&metric.CounterVecOpts{
    Namespace: namespace,
    Subsystem: "requests",
    Name: "error_total",
    Help: "redis client requests error count.",
    Labels: []string{"command", "error"},
    })