0

我安装了 prometheus 但卡在:首先运行 Prometheus,使用位于此存储库的 ./conf 目录中的 prometheus-near.yml 配置文件:$ prometheus --config.file=$PATH_TO_REPO/conf/prometheus-near.yml

4

1 回答 1

0

安装 Prometheus 基本上是为您的平台下载压缩的二进制文件并在本地解包(根据文档)。prometheus二进制文件位于该文件夹内。要启动普罗米修斯,请使用:

$> ./prometheus --config.file=prometheus.yml

如果您想使用不同的配置文件,如您的问题所建议的那样,只需提供配置文件的路径作为config.filelike 的参数:

$> ./prometheus --config.file=/path/to/config/prometheus-near.yml

您应该能够在 port 查询 prometheus 服务器9090

于 2020-06-15T20:18:48.920 回答