puter/classes/headless/prometheus.nix

31 lines
680 B
Nix
Raw Permalink Normal View History

2025-03-25 19:20:05 +00:00
# {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}"];
# }
# ];
# }
# ];
# };
# }
{}