backing up the working dir
This commit is contained in:
parent
82f1d9d5c9
commit
b8d125d448
19 changed files with 622 additions and 4 deletions
29
hosts/lithium/services/monitoring/prometheus.nix
Normal file
29
hosts/lithium/services/monitoring/prometheus.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ config, pkgs, ... }:
|
||||
#let
|
||||
#svcDomain = "status.${config.networking.domain}";
|
||||
#svcPort = config.services.prometheus.exporters.node.port;
|
||||
#in
|
||||
{
|
||||
#services.caddy.virtualHosts."${svcDomain}".extraConfig = ''
|
||||
#reverse_proxy :${svcPort}
|
||||
#'';
|
||||
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
#globalConfig.scrape_interval = "10s"; # "1m"
|
||||
#scrapeConfigs = [
|
||||
#{
|
||||
#job_name = "node";
|
||||
#static_configs = [{
|
||||
# targets = [ "localhost:${toString svcPort}" ];
|
||||
#}];
|
||||
#}
|
||||
#];
|
||||
};
|
||||
|
||||
#services.prometheus.exporters.node = {
|
||||
#enable = true;
|
||||
#port = 9000;
|
||||
#enabledCollectors = [ "systemd" ];
|
||||
#};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue