31 lines
801 B
YAML
31 lines
801 B
YAML
# ./prometheus/prometheus.yml
|
|
|
|
global:
|
|
scrape_interval: 15s # Default scrape interval
|
|
evaluation_interval: 15s # Default evaluation interval
|
|
|
|
scrape_configs:
|
|
- job_name: 'traefik'
|
|
static_configs:
|
|
- targets: ['traefik:8080'] # This should match the port you set for metrics in Traefik's command
|
|
|
|
- job_name: 'prometheus'
|
|
static_configs:
|
|
- targets: ['localhost:9090']
|
|
|
|
- job_name: 'cadvisor' # For Docker container metrics
|
|
static_configs:
|
|
- targets: ['cadvisor:8080']
|
|
|
|
- job_name: 'node-exporter' # For host system metrics
|
|
static_configs:
|
|
- targets: ['node-exporter:9100']
|
|
|
|
- job_name: 'gitea' # For host system metrics
|
|
static_configs:
|
|
- targets: ['gitea:3000']
|
|
|
|
- job_name: 'affine'
|
|
static_configs:
|
|
- targets: ['affine:3010']
|