all: add prometheus

This commit is contained in:
xinyangli 2023-12-20 11:13:20 +08:00
parent fcdc65d8ce
commit b9eebc2a7e
8 changed files with 116 additions and 31 deletions

View file

@ -37,6 +37,15 @@
networking.firewall.allowedTCPPorts = [ 80 8080 ];
networking.firewall.allowedUDPPorts = [ ] ++ (lib.range 6311 6314);
custom.prometheus = {
enable = true;
exporters.enable = true;
grafana = {
enable = true;
password_file = config.sops.secrets.grafana_cloud_api.path;
};
};
services.sing-box = let
singTls = {
enabled = true;