Grafana 仪表盘
先决条件
首先在您的机器上安装 Grafana 和 Prometheus。
备注
除了本地安装,您也可以使用 Grafana Cloud
启用指标
要启用指标,您必须修改节点和农民的命令行参数添加 Prometheus 选项
针对节点:
--prometheus-listen-on 127.0.0.1:9080
针对农民:
--prometheus-listen-on 127.0.0.1:9081
要应用更改,需要重启节点和农民。 You should then have the capability to reach the metrics at http://localhost:9080/metrics
and http://localhost:9081/metrics
.