如何设置 Grafana/Prometheus 来监控 Redis Enterprise?
上次更新时间 2024 年 4 月 18 日
问题
如何设置 Grafana/Prometheus 来监控 Redis Enterprise?
答案
Redis 官方指标/警报需要在 AdminUI 中配置。 但是,Redis 提供了有关使用以下文档为 Redis Enterprise 配置 Prometheus/Grafana 的文档,您将在其中找到 UI 的一些其他指标。 https://redis.ac.cn/docs/latest/integrate/prometheus-with-redis-enterprise/
步骤
- 下载 Prometheus 并安装它
- 按照快速入门步骤 1,使用来自文档的
yml
文件 - 启动 Prometheus 服务器 ./prometheus --config.file=prometheus.yml
- 安装 Grafana https://grafana.org.cn/docs/grafana/latest/installation/rpm/
- 登录到 Grafana:http://localhost:3000使用
- 用户名:admin
- 密码:admin
- 在 Grafana 中创建 Redis 数据源。 按照来自文档的部分配置 Grafana 数据源。