mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nixos/prometheus: Add AWS Signature Version 4 support to remote_write configs (#181883)
This commit is contained in:
parent
e907f6aa04
commit
67bef9e807
@ -201,6 +201,26 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
promTypes.sigv4 = types.submodule {
|
||||
options = {
|
||||
region = mkOpt types.str ''
|
||||
The AWS region.
|
||||
'';
|
||||
access_key = mkOpt types.str ''
|
||||
The Access Key ID.
|
||||
'';
|
||||
secret_key = mkOpt types.str ''
|
||||
The Secret Access Key.
|
||||
'';
|
||||
profile = mkOpt types.str ''
|
||||
The named AWS profile used to authenticate.
|
||||
'';
|
||||
role_arn = mkOpt types.str ''
|
||||
The AWS role ARN.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
promTypes.tls_config = types.submodule {
|
||||
options = {
|
||||
ca_file = mkOpt types.str ''
|
||||
@ -1464,6 +1484,9 @@ let
|
||||
Sets the `Authorization` header on every remote write request with the bearer token
|
||||
read from the configured file. It is mutually exclusive with `bearer_token`.
|
||||
'';
|
||||
sigv4 = mkOpt promTypes.sigv4 ''
|
||||
Configures AWS Signature Version 4 settings.
|
||||
'';
|
||||
tls_config = mkOpt promTypes.tls_config ''
|
||||
Configures the remote write request's TLS settings.
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user