whatever
This commit is contained in:
parent
be9fb9278e
commit
b8af0e9761
165 changed files with 1815 additions and 1431 deletions
30
profiles/server/prometheus.nix
Normal file
30
profiles/server/prometheus.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
# {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}"];
|
||||
# }
|
||||
# ];
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
# }
|
||||
{ }
|
Loading…
Add table
Add a link
Reference in a new issue