Prometheus install: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
Zeile 7: Zeile 7:
  
 
=Configuration=
 
=Configuration=
 +
 +
*vi prometheus.yml
 +
 +
global:
 +
  scrape_interval: 15s
 +
  scrape_timeout: 10s
 +
  evaluation_interval: 15s
 +
  external_labels:
 +
    monitor: my-ext
 +
rule_files:
 +
- /etc/prometheus/alert.rules
 +
scrape_configs:
 +
- job_name: ubuntu
 +
  honor_timestamps: true
 +
  scrape_interval: 15s
 +
  scrape_timeout: 10s
 +
  metrics_path: /metrics
 +
  scheme: http
 +
  follow_redirects: true
 +
  static_configs:
 +
  - targets:
 +
    - 192.168.1.3:9100

Aktuelle Version vom 2. Februar 2023, 15:24 Uhr

Download and install

Configuration

  • vi prometheus.yml
global:
  scrape_interval: 15s
  scrape_timeout: 10s
  evaluation_interval: 15s
  external_labels:
    monitor: my-ext
rule_files:
- /etc/prometheus/alert.rules
scrape_configs:
- job_name: ubuntu
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  follow_redirects: true
  static_configs:
  - targets:
    - 192.168.1.3:9100