prometheus.yaml 1.1 KB
Newer Older
W
wangzelin.wzl 已提交
1 2 3 4 5
global:
  scrape_interval:     1s
  evaluation_interval: 10s

rule_files:
C
chris-sun-star 已提交
6
  - "rules/*rules.yaml"
W
wangzelin.wzl 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50

scrape_configs:
  - job_name: prometheus
    metrics_path: /metrics
    scheme: http
    static_configs:
    - targets:
      - 'localhost:9090'
  - job_name: node
    basic_auth:
      username: {http_basic_auth_user}
      password: {http_basic_auth_password}
    metrics_path: /metrics/node/host
    scheme: http
    static_configs:
      - targets:
        - {target}
  - job_name: ob_basic
    basic_auth:
      username: {http_basic_auth_user}
      password: {http_basic_auth_password}
    metrics_path: /metrics/ob/basic
    scheme: http
    static_configs:
      - targets:
        - {target}
  - job_name: ob_extra
    basic_auth:
      username: {http_basic_auth_user}
      password: {http_basic_auth_password}
    metrics_path: /metrics/ob/extra
    scheme: http
    static_configs:
      - targets:
        - {target}
  - job_name: agent
    basic_auth:
      username: {http_basic_auth_user}
      password: {http_basic_auth_password}
    metrics_path: /metrics/stat
    scheme: http
    static_configs:
      - targets:
        - {target}