feat(monitoring): customize metrics ingest path

This commit is contained in:
arcnmx 2024-05-31 16:56:54 -07:00
parent f271f1ae00
commit f97ab24f47
2 changed files with 12 additions and 4 deletions

View file

@ -28,6 +28,10 @@ let
labels = mkOption {
type = attrsOf str;
};
metricsPath = mkOption {
type = str;
default = "/metrics";
};
};
};
ports = mkOption {
@ -183,7 +187,6 @@ in
};
};
promtail = {config, ...}: {
id = mkAlmostOptionDefault "promtail";
nixos = {
serviceAttr = "promtail";
assertions = mkIf config.enable [