mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat(monitoring): customize metrics ingest path
This commit is contained in:
parent
f271f1ae00
commit
f97ab24f47
2 changed files with 12 additions and 4 deletions
|
|
@ -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 [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue