mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-12-23 10:35:51 +01:00
41 lines
865 B
Nix
41 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";
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|