From c90653bca15a1574e5557da0455405d1fed552b4 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 21 Jul 2024 19:12:46 +0530 Subject: [PATCH] Revert "rico0: remove alertmanager" This reverts commit f5fea78983dd8edf17fc45946eacbdc225675be3. --- hosts/rico0/services/apps/alertmanager.nix | 18 ++++++++++++++++++ hosts/rico0/services/apps/default.nix | 1 + 2 files changed, 19 insertions(+) create mode 100644 hosts/rico0/services/apps/alertmanager.nix diff --git a/hosts/rico0/services/apps/alertmanager.nix b/hosts/rico0/services/apps/alertmanager.nix new file mode 100644 index 0000000..ea3c6dc --- /dev/null +++ b/hosts/rico0/services/apps/alertmanager.nix @@ -0,0 +1,18 @@ +_: { + services = { + caddy = { + virtualHosts."alertmanager.labs.adtya.xyz" = { + extraConfig = '' + reverse_proxy 127.0.0.1:3100 + tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key + ''; + }; + }; + prometheus.alertmanager = { + enable = true; + listenAddress = "127.0.0.1"; + port = 9093; + webExternalUrl = "https://alertmanager.labs.adtya.xyz/"; + }; + }; +} diff --git a/hosts/rico0/services/apps/default.nix b/hosts/rico0/services/apps/default.nix index e90c990..0eb46c2 100644 --- a/hosts/rico0/services/apps/default.nix +++ b/hosts/rico0/services/apps/default.nix @@ -1,5 +1,6 @@ _: { imports = [ + ./alertmanager.nix ./blocky.nix ./grafana.nix ./loki.nix