mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
prometheus: add authorization section
This commit is contained in:
parent
4e6a72bf73
commit
fd0a6311a7
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue