From 9fac2fe9981cfe95297133363e7bbeaef5d8de44 Mon Sep 17 00:00:00 2001 From: ITQ Date: Sat, 15 Feb 2025 15:17:31 +0300 Subject: [PATCH] infra: added prometheus folder --- .../infrastructure/prometheus/prometheus.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 solution/infrastructure/prometheus/prometheus.yaml diff --git a/solution/infrastructure/prometheus/prometheus.yaml b/solution/infrastructure/prometheus/prometheus.yaml new file mode 100644 index 0000000..43a0c92 --- /dev/null +++ b/solution/infrastructure/prometheus/prometheus.yaml @@ -0,0 +1,33 @@ +# Global config +global: + scrape_interval: 10s + scrape_timeout: 10s + evaluation_interval: 10m + external_labels: + environment: local + instance: somemachinelol + +scrape_configs: + # Prometheus + - job_name: prometheus + scrape_interval: 5s + static_configs: + - targets: ["localhost:9090"] + + # Postgres + - job_name: postgres + scrape_interval: 10s + static_configs: + - targets: ["postgres-exporter:9187"] + + # Redis + - job_name: redis + scrape_interval: 10s + static_configs: + - targets: ["redis-exporter:9121"] + + # Celery + - job_name: celery + scrape_interval: 30s + static_configs: + - targets: ["celery-exporter:9808"]