From 406f8905bae2c8cc429e5d8bc842ec7dc0f1c44f Mon Sep 17 00:00:00 2001 From: Oliver Charles Date: Fri, 17 Nov 2017 10:16:21 +0000 Subject: [PATCH] nixos/prometheus: add external_labels option --- .../modules/services/monitoring/prometheus/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/modules/services/monitoring/prometheus/default.nix b/nixos/modules/services/monitoring/prometheus/default.nix index c12b5f35dea3..1ae2245f10e7 100644 --- a/nixos/modules/services/monitoring/prometheus/default.nix +++ b/nixos/modules/services/monitoring/prometheus/default.nix @@ -66,6 +66,16 @@ let How frequently to evaluate rules by default. ''; }; + + external_labels = mkOption { + type = types.attrsOf types.str; + description = '' + The labels to add to any time series or alerts when + communicating with external systems (federation, remote + storage, Alertmanager). + ''; + default = {}; + }; }; };