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.

    1. metricReqDur = metric.NewHistogramVec(&metric.HistogramVecOpts{
    2. Namespace: namespace,
    3. Subsystem: "requests",
    4. Name: "duration_ms",
    5. Help: "redis client requests duration(ms).",
    6. Labels: []string{"command"},
    7. Buckets: []float64{5, 10, 25, 50, 100, 250, 500, 1000, 2500},
    8. })
  2. metricReqErr: Useful monitoring of redis commands.

    1. metricReqErr = metric.NewCounterVec(&metric.CounterVecOpts{
    2. Namespace: namespace,
    3. Subsystem: "requests",
    4. Name: "error_total",
    5. Help: "redis client requests error count.",
    6. Labels: []string{"command", "error"},
    7. })