问题描述
我已经在本地成功安装了 Prometheus。问题是我的 node
状态因错误 Get "http://localhost:9100/metrics": dial tcp [::1]:9100: connectex: No connection Could be made because the target machine actively refused it.
而关闭,但其他人没问题。
这是我在 prometheus.yml 中的配置
# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ['localhost:9090']
- job_name: 'web'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
scheme: https
static_configs:
- targets: ['localhost:44358']
- job_name: node
static_configs:
- targets: ['localhost:9100']
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)