From dd8c6f13afa55443fdd1fd4b88d5aa820c6fb518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Tue, 6 Jun 2017 21:47:09 -0700 Subject: [PATCH] List silence matchers in the UI --- assets/templates/alertgroup.html | 9 +++++++++ bindata_assetfs.go | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/assets/templates/alertgroup.html b/assets/templates/alertgroup.html index 45a2ca5f5..f2e5f0229 100644 --- a/assets/templates/alertgroup.html +++ b/assets/templates/alertgroup.html @@ -140,6 +140,15 @@ <%- silence.endsAt %> + <% _.each(silence.matchers, function(matcher) { %> +
+ <% var matcherOperator = "=" %> + <% if (matcher.isRegex) { %> + <% matcherOperator = "=~" %> + <% } %> + <%- matcher.name %><%- matcherOperator %><%- matcher.value %> +
+ <% }) %>