From cf6f14cda9b431fc84d74538b17e8a7dc77b921b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Fri, 12 Jun 2020 10:59:24 +0100 Subject: [PATCH] fix(ui): add @cluster filter to the Help section --- ui/src/Components/MainModal/Help.js | 19 ++++++ .../MainModal/__snapshots__/Help.test.js.snap | 67 +++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/ui/src/Components/MainModal/Help.js b/ui/src/Components/MainModal/Help.js index 0b0e94dbe..88a1566b1 100644 --- a/ui/src/Components/MainModal/Help.js +++ b/ui/src/Components/MainModal/Help.js @@ -172,6 +172,25 @@ const Help = ({ defaultIsOpen }) => ( + + + Match alerts collected from Alertmanager instances that are + members of the prod cluster. + + + Match alerts collected from Alertmanager instances that are not + members of the staging cluster. + + + Match alerts collected from Alertmanager instances that are + members of any cluster with name matching regular expression{" "} + /.*prod.*/. + + + matches snapshot 1`] = ` +
+ Match alerts based on the Alertmanager cluster name +
+
+
+ Supported operators: + + = + + + != + + + =~ + + + !~ + +
+
+ Examples: +
+
    +
  • +
    + + @cluster=production + +
    +
    + Match alerts collected from Alertmanager instances that are members of the + + prod + + cluster. +
    +
  • +
  • +
    + + @cluster!=staging + +
    +
    + Match alerts collected from Alertmanager instances that are not members of the + + staging + + cluster. +
    +
  • +
  • +
    + + @cluster=~prod + +
    +
    + Match alerts collected from Alertmanager instances that are members of any cluster with name matching regular expression + + /.*prod.*/ + + . +
    +
  • +
+
Match alerts based on the receiver name