From b846ce524325f4cfea688b41661e5caea18a2dcf Mon Sep 17 00:00:00 2001 From: Tanner Doshier Date: Tue, 14 Feb 2017 13:45:00 -0600 Subject: prometheus service: fix basic auth option If some configuration is provided, we need to filter out the `_module` key or else it breaks prometheus. --- nixos/modules/services/monitoring/prometheus/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'nixos/modules') diff --git a/nixos/modules/services/monitoring/prometheus/default.nix b/nixos/modules/services/monitoring/prometheus/default.nix index a07445ce167c..cf9deccbffe2 100644 --- a/nixos/modules/services/monitoring/prometheus/default.nix +++ b/nixos/modules/services/monitoring/prometheus/default.nix @@ -134,6 +134,7 @@ let }; }); default = null; + apply = x: if x == null then null else _filter x; description = '' Optional http login credentials for metrics scraping. ''; -- cgit 1.4.1