From 4f0dd2f746f44f427b3416c493d295f16ef2a8f3 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Mon, 10 Apr 2017 03:25:28 +0200 Subject: [PATCH] prometheus service: add scrapeConfigs.params option --- nixos/modules/services/monitoring/prometheus/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/modules/services/monitoring/prometheus/default.nix b/nixos/modules/services/monitoring/prometheus/default.nix index cf9deccbffe2..32af41cc62fc 100644 --- a/nixos/modules/services/monitoring/prometheus/default.nix +++ b/nixos/modules/services/monitoring/prometheus/default.nix @@ -116,6 +116,13 @@ let The URL scheme with which to fetch metrics from targets. ''; }; + params = mkOption { + type = types.attrsOf (types.listOf types.str); + default = {}; + description = '' + Optional HTTP URL parameters. + ''; + }; basic_auth = mkOption { type = types.nullOr (types.submodule { options = {