小编Rui*_*Mao的帖子

Prometheus UI 始终返回 1,即使 blackbox_exporter 手动返回 0

我设置了普罗米修斯和黑盒导出器。这是配置。

root@monitor-1:~# cat /etc/prometheus/prometheus.yml
global:
  scrape_interval:     15s # By default, scrape targets every 15 seconds.

  # Attach these labels to any time series or alerts when communicating with
  # external systems (federation, remote storage, Alertmanager).
  external_labels:
    monitor: 'codelab-monitor'

# 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'

    # Override the global default and …
Run Code Online (Sandbox Code Playgroud)

prometheus prometheus-blackbox-exporter

2
推荐指数
1
解决办法
1638
查看次数