nixos/prometheus: add remote{Read, Write}.headers options

This commit is contained in:
tilpner 2023-09-03 23:36:39 +02:00
parent c021404209
commit 8562dc924d
No known key found for this signature in database

View File

@ -1430,6 +1430,10 @@ let
remote_timeout = mkOpt types.str '' remote_timeout = mkOpt types.str ''
Timeout for requests to the remote write endpoint. Timeout for requests to the remote write endpoint.
''; '';
headers = mkOpt (types.attrsOf types.str) ''
Custom HTTP headers to be sent along with each remote write request.
Be aware that headers that are set by Prometheus itself can't be overwritten.
'';
write_relabel_configs = mkOpt (types.listOf promTypes.relabel_config) '' write_relabel_configs = mkOpt (types.listOf promTypes.relabel_config) ''
List of remote write relabel configurations. List of remote write relabel configurations.
''; '';
@ -1525,6 +1529,10 @@ let
remote_timeout = mkOpt types.str '' remote_timeout = mkOpt types.str ''
Timeout for requests to the remote read endpoint. Timeout for requests to the remote read endpoint.
''; '';
headers = mkOpt (types.attrsOf types.str) ''
Custom HTTP headers to be sent along with each remote read request.
Be aware that headers that are set by Prometheus itself can't be overwritten.
'';
read_recent = mkOpt types.bool '' read_recent = mkOpt types.bool ''
Whether reads should be made for queries for time ranges that Whether reads should be made for queries for time ranges that
the local storage should have complete data for. the local storage should have complete data for.