diff options
author | tilpner <git@tilpner.com> | 2023-09-03 23:36:39 +0200 |
---|---|---|
committer | tilpner <git@tilpner.com> | 2023-09-03 23:36:49 +0200 |
commit | 8562dc924d89825ed829ea3f086896871d96fd3c (patch) | |
tree | 5e0d20b30878b425cc0f237ce08aa054479c9524 /nixos | |
parent | c021404209bb175a2101d8d0683004a173dde6cf (diff) | |
download | nixlib-8562dc924d89825ed829ea3f086896871d96fd3c.tar nixlib-8562dc924d89825ed829ea3f086896871d96fd3c.tar.gz nixlib-8562dc924d89825ed829ea3f086896871d96fd3c.tar.bz2 nixlib-8562dc924d89825ed829ea3f086896871d96fd3c.tar.lz nixlib-8562dc924d89825ed829ea3f086896871d96fd3c.tar.xz nixlib-8562dc924d89825ed829ea3f086896871d96fd3c.tar.zst nixlib-8562dc924d89825ed829ea3f086896871d96fd3c.zip |
nixos/prometheus: add remote{Read, Write}.headers options
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/monitoring/prometheus/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/default.nix b/nixos/modules/services/monitoring/prometheus/default.nix index 19ee3ae6f7da..c91328a34e84 100644 --- a/nixos/modules/services/monitoring/prometheus/default.nix +++ b/nixos/modules/services/monitoring/prometheus/default.nix @@ -1430,6 +1430,10 @@ let remote_timeout = mkOpt types.str '' 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) '' List of remote write relabel configurations. ''; @@ -1525,6 +1529,10 @@ let remote_timeout = mkOpt types.str '' 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 '' Whether reads should be made for queries for time ranges that the local storage should have complete data for. |