feat(ui): add @finterprint filter to the help section

This commit is contained in:
Łukasz Mierzwa
2020-06-30 21:04:02 +01:00
committed by Łukasz Mierzwa
parent 760acee8d7
commit 6f1fb98248
2 changed files with 60 additions and 0 deletions

View File

@@ -226,6 +226,19 @@ const Help = ({ defaultIsOpen }) => (
</FilterExample>
</QueryHelp>
<QueryHelp
title="Match alerts based on the Alertmanager alert fingerprint"
operators={["=", "!="]}
>
<FilterExample example="@fingerprint=123456789">
Match only alert with fingerprint <code>123456789</code>.
</FilterExample>
<FilterExample example="@fingerprint!=123456789">
Match all alerts except the one with fingerprint{" "}
<code>123456789</code>.
</FilterExample>
</QueryHelp>
<QueryHelp
title="Match suppressed alerts based on the silence ID"
operators={["=", "!="]}

View File

@@ -611,6 +611,53 @@ exports[`<Help /> matches snapshot 1`] = `
</li>
</ul>
</dd>
<dt>
Match alerts based on the Alertmanager alert fingerprint
</dt>
<dd class=\\"mb-5\\">
<div>
Supported operators:
<kbd class=\\"mr-1\\">
=
</kbd>
<kbd class=\\"mr-1\\">
!=
</kbd>
</div>
<div>
Examples:
</div>
<ul>
<li>
<div>
<span class=\\"badge badge-info\\">
@fingerprint=123456789
</span>
</div>
<div>
Match only alert with fingerprint
<code>
123456789
</code>
.
</div>
</li>
<li>
<div>
<span class=\\"badge badge-info\\">
@fingerprint!=123456789
</span>
</div>
<div>
Match all alerts except the one with fingerprint
<code>
123456789
</code>
.
</div>
</li>
</ul>
</dd>
<dt>
Match suppressed alerts based on the silence ID
</dt>