From acb7f43db94f78a7dfd1fcb507f9a78d0449639d Mon Sep 17 00:00:00 2001 From: Oliver Charles Date: Fri, 17 Nov 2017 10:16:21 +0000 Subject: nixos/prometheus: add external_labels option --- nixos/modules/services/monitoring/prometheus/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'nixos/modules/services/monitoring/prometheus') diff --git a/nixos/modules/services/monitoring/prometheus/default.nix b/nixos/modules/services/monitoring/prometheus/default.nix index 2b7f88a538c1..85f39c2a43b5 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 = {}; + }; }; }; -- cgit 1.4.1