普罗米修斯配置文件

global:
  scrape_interval: 1m
  scrape_timeout: 1m
  evaluation_interval: 15s
alerting:
  alertmanagers:
  - static_configs:
    - targets:
      - 172.31.20.42:9093
    scheme: http
    timeout: 10s
    api_version: v1
rule_files:
- third_rules.yml
- fourth_rules.yml
scrape_configs:
- job_name: prometheus
  honor_timestamps: true
  scrape_interval: 1m
  scrape_timeout: 1m
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - localhost:9090
- job_name: node_example
  honor_timestamps: true
  scrape_interval: 1m
  scrape_timeout: 1m
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - 127.0.0.1:9100
- job_name: node_exporter
  honor_timestamps: true
  scrape_interval: 1m
  scrape_timeout: 1m
  metrics_path: /metrics
  scheme: http
  file_sd_configs:
  - files:
    - conf.d/node*.json
    - conf.d/node*.yml
    refresh_interval: 5m
- job_name: second_nodes
  honor_timestamps: true
  scrape_interval: 1m
  scrape_timeout: 1m
  metrics_path: /metrics
  scheme: http
  file_sd_configs:
  - files:
    - conf.d/target*.yml
    refresh_interval: 5m
- job_name: win_nodes
  honor_timestamps: true
  scrape_interval: 1m
  scrape_timeout: 1m
  metrics_path: /metrics
  scheme: http
  file_sd_configs:
  - files:
    - conf.d/windows1.yml
    refresh_interval: 5m

你可能感兴趣的:(K8S)