From d0e26de369d86bf9970e2fcd6048e29ec69f1e8d Mon Sep 17 00:00:00 2001 From: Eunsu Kang <56429615+ssupecial@users.noreply.github.com> Date: Thu, 30 May 2024 01:03:53 +0900 Subject: [PATCH] fix(infra): modify prometheus config file to specify alert rules and alertmanager (#55) --- config/prometheus/prometheus-config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/prometheus/prometheus-config.yml b/config/prometheus/prometheus-config.yml index ce1b0dd..b17594c 100644 --- a/config/prometheus/prometheus-config.yml +++ b/config/prometheus/prometheus-config.yml @@ -3,6 +3,16 @@ global: evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. # scrape_timeout is set to the global default (10s). + +rule_files: + - 'rules/*.yml' + + +alerting: + alertmanagers: + - static_configs: + - targets: + - "alertmanager:9093" # scrape_configs: # - job_name: 'grafana-agent' # scrape_interval: 10s