node_exporter提示错误:Get http://172.25.137.116:9100/metrics: context deadline exceeded

  • 使用环境:
    node_exporter版本:0.18.0
    系统:linux

  • prometheus.yml配置文件中的代码如下:

# my global config
global:
  scrape_interval: 10s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  scrape_timeout: 10s # Evaluate rules every 15 seconds. The default is every 1 minute.
  # scrape_timeout is set to the global default (10s).

# Alertmanager configuration
alerting:
  alertmanagers:
    - static_configs:
        - targets:
          # - alertmanager:9093

# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
  # - "first_rules.yml"
  # - "second_rules.yml"

# 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: "prometheusing123"

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
      - targets: ["localhost:9090"]


  - job_name: "prometheusing"
    static_configs:
            - targets: ["172.25.137.116:9100"]

烦请老师有空帮忙解答一下

你是怎么部署的,云服务吗,如果是的,要开放防火墙或者安全组的端口访问

是云服务,防火墙关闭了,也需要开放端口吗?

是的 在控制台上开启端口的访问 有可能是防火墙(轻量) 有可能是安全组(非轻量)

谢谢老师,配置了安全组之后,可以访问了