Revert "rico0: remove alertmanager"

This reverts commit f5fea78983dd8edf17fc45946eacbdc225675be3.
This commit is contained in:
Adithya 2024-07-21 19:12:46 +05:30
parent 775f70df1e
commit c90653bca1
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
2 changed files with 19 additions and 0 deletions

View file

@ -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/";
};
};
}

View file

@ -1,5 +1,6 @@
_: { _: {
imports = [ imports = [
./alertmanager.nix
./blocky.nix ./blocky.nix
./grafana.nix ./grafana.nix
./loki.nix ./loki.nix