Skip to content
Snippets Groups Projects
Commit 244c7031 authored by Florian Sesser's avatar Florian Sesser
Browse files

Promtail: Allow additional scrape targets

parent 5eff69ab
No related branches found
No related tags found
1 merge request!334Draft: Loki: Collect Tahoe corruption advisories
...@@ -28,6 +28,13 @@ in { ...@@ -28,6 +28,13 @@ in {
# https://whetstone.private.storage/privatestorage/PrivateStorageio/-/merge_requests/258 # https://whetstone.private.storage/privatestorage/PrivateStorageio/-/merge_requests/258
default = "http://172.23.23.1:3100/loki/api/v1/push"; default = "http://172.23.23.1:3100/loki/api/v1/push";
}; };
extraScrapeConfigs = lib.mkOption {
type = lib.types.listOf lib.types.attrs;
description = ''
Additional scrape configs.
'';
default = [ ];
};
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
...@@ -76,7 +83,7 @@ in { ...@@ -76,7 +83,7 @@ in {
source_labels = [ "__journal__systemd_unit" ]; source_labels = [ "__journal__systemd_unit" ];
target_label = "unit"; target_label = "unit";
}]; }];
}]; }] ++ cfg.extraScrapeConfigs;
}; };
}; };
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment