feat(prometheus): added django backend to scrape targets
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Global config
|
# Global config
|
||||||
global:
|
global:
|
||||||
scrape_interval: 10s
|
scrape_interval: 5s
|
||||||
scrape_timeout: 10s
|
scrape_timeout: 5s
|
||||||
evaluation_interval: 10m
|
evaluation_interval: 10m
|
||||||
external_labels:
|
external_labels:
|
||||||
environment: local
|
environment: local
|
||||||
@@ -10,24 +10,26 @@ global:
|
|||||||
scrape_configs:
|
scrape_configs:
|
||||||
# Prometheus
|
# Prometheus
|
||||||
- job_name: prometheus
|
- job_name: prometheus
|
||||||
scrape_interval: 5s
|
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["localhost:9090"]
|
- targets: ["localhost:9090"]
|
||||||
|
|
||||||
# Postgres
|
# Postgres
|
||||||
- job_name: postgres
|
- job_name: postgres
|
||||||
scrape_interval: 10s
|
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["postgres-exporter:9187"]
|
- targets: ["postgres-exporter:9187"]
|
||||||
|
|
||||||
# Redis
|
# Redis
|
||||||
- job_name: redis
|
- job_name: redis
|
||||||
scrape_interval: 10s
|
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["redis-exporter:9121"]
|
- targets: ["redis-exporter:9121"]
|
||||||
|
|
||||||
# Celery
|
# Celery
|
||||||
- job_name: celery
|
- job_name: celery
|
||||||
scrape_interval: 30s
|
scrape_interval: 15s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["celery-exporter:9808"]
|
- targets: ["celery-exporter:9808"]
|
||||||
|
|
||||||
|
# Backend
|
||||||
|
- job_name: backend
|
||||||
|
static_configs:
|
||||||
|
- targets: ["backend:8080"]
|
||||||
|
|||||||
Reference in New Issue
Block a user