rico0: enable alertmanager
This commit is contained in:
parent
0131c8c157
commit
8f72d77a3e
3 changed files with 21 additions and 1 deletions
18
hosts/rico0/services/apps/alertmanager.nix
Normal file
18
hosts/rico0/services/apps/alertmanager.nix
Normal 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/";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -57,8 +57,9 @@ _: {
|
|||
"rico2.labs.adtya.xyz" = "10.10.10.12,fd7c:585c:c4ae::12";
|
||||
"wynne.labs.adtya.xyz" = "10.10.10.13,fd7c:585c:c4ae::13";
|
||||
"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";
|
||||
"frp.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";
|
||||
"transmission.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./alertmanager.nix
|
||||
./blocky.nix
|
||||
./grafana.nix
|
||||
./prometheus.nix
|
||||
|
|
Loading…
Reference in a new issue