功能概述

为了实现多维监控数据库,Redis Standalone 集成了 Node Exporter 监控服务和 Redis Exporter 监控服务。

监控服务 功能说明 监控指标 默认值 监控端口

Node Exporter

监控节点资源状态。

  • 支持 Prometheus 标准 Exporter 监控指标。

  • 详细监控指标项,请参见 node_exporter

默认关闭 Node Exporter 监控服务。

默认监控端口为 9100

Redis Exporter

监控服务状态。

  • 支持 Prometheus 标准 Exporter 监控指标。

  • 详细监控指标项,请参见 Metrics in Prometheus

默认关闭 Redis Exporter 监控服务。

默认监控端口为 9121

操作步骤

步骤一:安装 Prometheus 和 Grafana

客户端服务器上安装 Prometheus 和 Grafana。要求与 Redis Standalone 集群之间保持网络通畅。

步骤二:启动 Redis Exporter 服务

修改配置参数 Enable Redis-Exporter 值为 true,详情可参考修改集群配置参数

步骤三:配置 Redis Exporter 监控

参考 Redis Enterprise Software Integration with Prometheus,在客户端的 Prometheus 服务中添加 Redis 节点为数据源。成功添加数据源后,即可在 Grafana 查看节点资源监控信息。

查看 Redis Standalone 节点信息,可参考获取 Redis Standalone 连接地址

步骤四:关闭 Redis Exporter 服务

若无需 Redis Exporter 服务时,可在 AppCenter 关闭该服务。

修改配置参数 Enable Redis-Exporter 值为 false,详情可参考修改集群配置参数