mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 05:23:54 +00:00
prometheus: add authorization section
This commit is contained in:
parent
4e6a72bf73
commit
fd0a6311a7
@ -251,6 +251,13 @@ let
|
||||
|
||||
promTypes.scrape_config = types.submodule {
|
||||
options = {
|
||||
authorization = mkOption {
|
||||
type = types.attrs;
|
||||
default = {};
|
||||
description = ''
|
||||
Sets the `Authorization` header on every scrape request with the configured credentials.
|
||||
'';
|
||||
};
|
||||
job_name = mkOption {
|
||||
type = types.str;
|
||||
description = ''
|
||||
|
Loading…
Reference in New Issue
Block a user