rico0: enable alertmanager

This commit is contained in:
Adithya 2024-07-21 14:18:56 +05:30
parent 0131c8c157
commit 8f72d77a3e
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
3 changed files with 21 additions and 1 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

@ -57,8 +57,9 @@ _: {
"rico2.labs.adtya.xyz" = "10.10.10.12,fd7c:585c:c4ae::12"; "rico2.labs.adtya.xyz" = "10.10.10.12,fd7c:585c:c4ae::12";
"wynne.labs.adtya.xyz" = "10.10.10.13,fd7c:585c:c4ae::13"; "wynne.labs.adtya.xyz" = "10.10.10.13,fd7c:585c:c4ae::13";
"layne.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14"; "layne.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
"frp.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10"; "alertmanager.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10";
"blocky.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10"; "blocky.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10";
"frp.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10";
"grafana.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10"; "grafana.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10";
"prometheus.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10"; "prometheus.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10";
"transmission.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14"; "transmission.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";

View file

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