this repo has no description
29
fork

Configure Feed

Select the types of activity you want to include in your feed.

mirror: add prometheus

Signed-off-by: Seongmin Lee <git@boltless.me>

+21
+1
flake.nix
··· 109 109 ./hosts/mirror/services/knotmirror.nix 110 110 ./hosts/mirror/services/nginx.nix 111 111 ./hosts/mirror/services/atlogin.nix 112 + ./hosts/mirror/services/prometheus.nix 112 113 ]; 113 114 target = "81.27.110.122"; 114 115 };
+20
hosts/mirror/services/prometheus.nix
··· 1 + { config, pkgs, ... }: { 2 + services.grafana = { 3 + enable = true; 4 + port = 2342; 5 + addr = "127.0.0.1"; 6 + }; 7 + services.prometheus = { 8 + enable = true; 9 + scrapeConfigs = [ 10 + { 11 + job_name = "knot-mirror"; 12 + metrics_path = "/metrics"; 13 + scheme = "http"; 14 + static_configs = [ 15 + { targets = [ "127.0.0.1:${toString 7100}" ]; } 16 + ]; 17 + } 18 + ]; 19 + }; 20 + }