Prometheus install

Aus xinux.net
Zur Navigation springen Zur Suche springen

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