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.
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']