Skip to content

Commit 67bef9e

Browse files
authored
nixos/prometheus: Add AWS Signature Version 4 support to remote_write configs (#181883)
1 parent e907f6a commit 67bef9e

File tree

1 file changed

+23
-0
lines changed
  • nixos/modules/services/monitoring/prometheus

1 file changed

+23
-0
lines changed

nixos/modules/services/monitoring/prometheus/default.nix

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,26 @@ let
201201
};
202202
};
203203

204+
promTypes.sigv4 = types.submodule {
205+
options = {
206+
region = mkOpt types.str ''
207+
The AWS region.
208+
'';
209+
access_key = mkOpt types.str ''
210+
The Access Key ID.
211+
'';
212+
secret_key = mkOpt types.str ''
213+
The Secret Access Key.
214+
'';
215+
profile = mkOpt types.str ''
216+
The named AWS profile used to authenticate.
217+
'';
218+
role_arn = mkOpt types.str ''
219+
The AWS role ARN.
220+
'';
221+
};
222+
};
223+
204224
promTypes.tls_config = types.submodule {
205225
options = {
206226
ca_file = mkOpt types.str ''
@@ -1464,6 +1484,9 @@ let
14641484
Sets the `Authorization` header on every remote write request with the bearer token
14651485
read from the configured file. It is mutually exclusive with `bearer_token`.
14661486
'';
1487+
sigv4 = mkOpt promTypes.sigv4 ''
1488+
Configures AWS Signature Version 4 settings.
1489+
'';
14671490
tls_config = mkOpt promTypes.tls_config ''
14681491
Configures the remote write request's TLS settings.
14691492
'';

0 commit comments

Comments
 (0)