31 lines
680 B
Nix
31 lines
680 B
Nix
# {config, ...}: {
|
|
# services.prometheus = {
|
|
# enable = true;
|
|
# port = 3020;
|
|
#
|
|
# exporters = {
|
|
# node = {
|
|
# enable = true;
|
|
# listenAddress = "127.0.0.1";
|
|
# port = 3021;
|
|
# enabledCollectors = ["systemd"];
|
|
# };
|
|
# };
|
|
#
|
|
# scrapeConfigs = [
|
|
# {
|
|
# job_name = "nodes";
|
|
# static_configs = [
|
|
# {
|
|
# targets = let
|
|
# host = config.services.prometheus.exporters.node.listenAddress;
|
|
# port = builtins.toString config.services.prometheus.exporters.node.port;
|
|
# in ["${host}:${port}"];
|
|
# }
|
|
# ];
|
|
# }
|
|
# ];
|
|
# };
|
|
# }
|
|
{}
|