Skip to content

Commit

Permalink
nixos/prometheus: Add AWS Signature Version 4 support to remote_write…
Browse files Browse the repository at this point in the history
… configs
  • Loading branch information
zhaofengli committed Jul 17, 2022
1 parent 17019dc commit 5072d1d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions nixos/modules/services/monitoring/prometheus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,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 ''
Expand Down Expand Up @@ -1455,6 +1475,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.
'';
Expand Down

0 comments on commit 5072d1d

Please sign in to comment.