mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-11-05 15:36:23 +01:00
32 lines
548 B
Nix
32 lines
548 B
Nix
{ pkgs, ... }:
|
|
{
|
|
services.prometheus = {
|
|
enable = true;
|
|
exporters = {
|
|
node = {
|
|
enable = true;
|
|
enabledCollectors = [ "systemd" ];
|
|
};
|
|
};
|
|
scrapeConfigs = [
|
|
{
|
|
job_name = "katzencafe";
|
|
static_configs = [{
|
|
targets = [ "127.0.0.1:9100" ];
|
|
}];
|
|
}
|
|
];
|
|
};
|
|
services.grafana = {
|
|
enable = true;
|
|
settings = {
|
|
server = {
|
|
domain = "grafana.katzen.cafe";
|
|
http_port = 2343;
|
|
http_addr = "127.0.0.1";
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|