From 902573f029c0dd43e69f73e2ca08bf925c532d5c Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 21 Jul 2024 19:18:44 +0530 Subject: [PATCH] rico0: add alertmanager to prometheus --- hosts/rico0/services/apps/prometheus.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/rico0/services/apps/prometheus.nix b/hosts/rico0/services/apps/prometheus.nix index fcc5814..9e5ea23 100644 --- a/hosts/rico0/services/apps/prometheus.nix +++ b/hosts/rico0/services/apps/prometheus.nix @@ -12,6 +12,14 @@ _: { enable = true; listenAddress = "127.0.0.1"; port = 9090; + alertmanagers = [ + { + scheme = "https"; + static_configs = [ + { targets = [ "alertmanager.labs.adtya.xyz" ]; } + ]; + } + ]; scrapeConfigs = [ { job_name = "postgres";