Revert "rico0: remove alertmanager"
This reverts commit f5fea78983dd8edf17fc45946eacbdc225675be3.
This commit is contained in:
parent
775f70df1e
commit
c90653bca1
2 changed files with 19 additions and 0 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/";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./alertmanager.nix
|
||||
./blocky.nix
|
||||
./grafana.nix
|
||||
./loki.nix
|
||||
|
|
Loading…
Reference in a new issue