Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 761 Bytes

how-to-configure-prometheus.md

File metadata and controls

34 lines (28 loc) · 761 Bytes

How to configure Prometheus

Create prometheus.yml file and add it in the same folder as docker-compose.yml

global:
  scrape_interval: 30s
  evaluation_interval: 30s
alerting:
  alertmanagers:
    - static_configs:
      - targets:
        - localhost:9093
scrape_configs:
  - job_name: 'gaarf'
    scrape_interval: 30s
    static_configs:
      - targets: ['localhost:8000']

Please refer to prometheus.yml example.

Adding new target to existing prometheus.yml

Since gaarf_exporter exposed metrics as HTTP server you need to add the following target in your prometheus.yml.

- job_name: 'gaarf'
  honor_labels: true
  scrape_interval: 30s
  static_configs:
    - targets: ['gaarf_exporter:8000']