mirror of
https://github.com/Smaug123/PulumiConfig
synced 2025-10-10 02:58:39 +00:00
Fix Prometheus and Woodpecker (#17)
This commit is contained in:
@@ -16,13 +16,21 @@
|
||||
description = lib.mdDoc "Localhost port for node exporter";
|
||||
default = 9003;
|
||||
};
|
||||
domain-exporter-domains = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
description = lib.mdDoc "Paths to be interpolated into the domain-exporter config.";
|
||||
example = "example.com";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
# For the domain exporter
|
||||
environment.etc."domain-exporter/domains.yaml" = {
|
||||
source = builtins.replaceStrings ["%%DOMAINS%%"] ["patrickstevens.co.uk"] ./domains.yaml;
|
||||
text = let
|
||||
interp = builtins.concatStringsSep "\", \"" config.services.prometheus-config.domain-exporter-domains;
|
||||
in
|
||||
builtins.replaceStrings ["%%DOMAINS%%"] [interp] (builtins.readFile ./domains.yaml);
|
||||
};
|
||||
|
||||
services.prometheus = {
|
||||
|
Reference in New Issue
Block a user