summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2017-04-10 03:25:28 +0200
committerFranz Pletz <fpletz@fnordicwalking.de>2017-04-10 14:31:27 +0200
commit4f0dd2f746f44f427b3416c493d295f16ef2a8f3 (patch)
tree496bbc64983738acbe2373ab68d36ebf7d4d8f17 /nixos
parentb4c7979363f52ccc0f71823f3bcd2c8e9e7b52c3 (diff)
prometheus service: add scrapeConfigs.params option
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/monitoring/prometheus/default.nix7
1 files changed, 7 insertions, 0 deletions
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 = {