From bc2e06a9ec4248ca37a7c327fc52a10d6ffc5c74 Mon Sep 17 00:00:00 2001 From: BalconyJH Date: Wed, 9 Apr 2025 15:52:09 +0800 Subject: [PATCH] :wrench: Add Prometheus configuration for PostgreSQL and Redis exporters --- prometheus.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 prometheus.yml diff --git a/prometheus.yml b/prometheus.yml new file mode 100644 index 00000000..88ca15ea --- /dev/null +++ b/prometheus.yml @@ -0,0 +1,12 @@ +global: + scrape_interval: 15s + evaluation_interval: 15s + +scrape_configs: + - job_name: 'postgresql' + static_configs: + - targets: [ 'postgres-exporter:9187' ] + + - job_name: 'redis' + static_configs: + - targets: [ 'redis-exporter:9121' ] \ No newline at end of file