mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-11-05 15:36:23 +01:00
42 lines
865 B
Nix
42 lines
865 B
Nix
{ pkgs, ... }:
|
|
{
|
|
services.prometheus = {
|
|
enable = true;
|
|
exporters = {
|
|
node = {
|
|
enable = true;
|
|
enabledCollectors = [ "systemd" "processes" ];
|
|
};
|
|
nginx = {
|
|
enable = true;
|
|
};
|
|
};
|
|
scrapeConfigs = [
|
|
{
|
|
job_name = "katzencafe";
|
|
static_configs = [{
|
|
targets = [ "127.0.0.1:9100" "127.0.0.1:9113"];
|
|
}];
|
|
}
|
|
];
|
|
};
|
|
services.grafana = {
|
|
enable = true;
|
|
settings = {
|
|
server = {
|
|
domain = "grafana.katzen.cafe";
|
|
http_port = 2343;
|
|
http_addr = "127.0.0.1";
|
|
};
|
|
smtp = {
|
|
enabled = true;
|
|
user = "noreply@katzen.cafe";
|
|
password = "$__file{/var/lib/secrets/noreply-mail-pw-plain}";
|
|
host = "mail.katzen.cafe:465";
|
|
from_address = "noreply@katzen.cafe";
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|