nixos-config/hosts/chunk/grafana.nix
2024-12-16 11:40:19 -05:00

33 lines
693 B
Nix

{config, ...}: {
services.grafana = {
enable = true;
settings.server = {
http_addr = "127.0.0.1";
http_port = 8088;
enforce_domain = true;
enable_gzip = true;
domain = "grafana.cything.io";
};
settings.analytics.reporting_enabled = false;
};
services.prometheus = {
enable = true;
exporters = {
node = {
enable = true;
enabledCollectors = ["systemd"];
};
};
scrapeConfigs = [
{
job_name = "chrysalis";
static_configs = [
{
targets = ["127.0.0.1:${toString config.services.prometheus.exporters.node.port}"];
}
];
}
];
};
}