28 lines
611 B
Nix
28 lines
611 B
Nix
{ config, pkgs, ... }: {
|
|
services.grafana = {
|
|
enable = true;
|
|
settings.server = {
|
|
domain = "grafana.technogothic.net";
|
|
http_port = 2342;
|
|
http_addr = "localhost";
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts =
|
|
[ config.services.grafana.settings.server.http_port ];
|
|
|
|
services.prometheus = {
|
|
enable = true;
|
|
port = 9001;
|
|
retentionTime = "365d";
|
|
scrapeConfigs = [{
|
|
job_name = "bloodletting";
|
|
static_configs = [{
|
|
targets = [
|
|
"localhost:${toString config.services.prometheus.exporters.node.port}"
|
|
];
|
|
}];
|
|
}];
|
|
};
|
|
}
|