我在一台服务器上安装了node exporter和Prometheus,并且能够在Prometheus中获得指标。但是如果我添加另一个节点,如何使用节点导出器将该新节点的指标拉到我的Prometheus服务器上。我在新服务器上安装了node exporter,但无法弄清楚如何将这些指标发送到另一台服务器上的Prometheus服务器。
我的Prometheus.yml文件如下所示
global:
scrape_interval: 5sec
scrape_configs:
-job_name: node
static_configs:
- targets:["localhost:9100"]
-job_name: prometheus
static_configs:
- targets: ["localhost:9090"]发布于 2017-08-10 22:32:41
您可以将新主机名添加到当前仅列出localhost:9100的节点scrape_config的目标列表中。
https://stackoverflow.com/questions/45616264
复制相似问题