使用 Prometheus 和 Grafana 监控 Scylla 数据库

Monitor Scylla db using Prometheus and Grafana

我在服务器A上安装了scylla db

在服务器 B 中安装了 Prometheus 和 Grafana。

使用 node exporter(在服务器 A 中安装了 node exporter)监控 scylla 数据库服务器资源(CPU,RAM,磁盘性能..,)。

需要使用 Prometheus 和 Grafana(来自服务器 B)监控 scylla 数据库操作。

服务器A需要安装哪些exporter,Grafana中scylla db监控需要dashboard

有两种与 ScyllaDB 监控堆栈相关的指标:

a) 内部数据库指标。 ScyllaDB 本机导出普罗米修斯指标。因此,您不需要服务器 A 中的任何额外 运行 即可工作。您需要做的就是从监控端指向 scylla_servers.yml 文件中的服务器。

b) Linux 指标(磁盘利用率、网络等)。这就是 node_exporter 的用途。所以只要确保node_exporter在ServerA中是运行,并在监控端的node_exporter_servers.yml中再次指向该服务器。

当然,在很多情况下,这两者是相同的——只有端口不同(例外是容器化环境,其中在单个 Linux 主机中有多个 ScyllaDB 服务器)。为了快速跟踪这种情况,Scylla Monitoring 发布了一个脚本 genconfig.py,它将生成 node_exporter_servers.ymlscylla_server.yml 以及正确的端口,只给出服务器的 IP 列表 运行 Scylla .