fix(ui): add example to filter on non-existent label

Fixes #3353
This commit is contained in:
Filippo Giunchedi
2021-07-20 10:14:07 +01:00
committed by Łukasz Mierzwa
parent d617ed9aeb
commit c469227d19
2 changed files with 17 additions and 0 deletions
+3
View File
@@ -130,6 +130,9 @@ const Help: FC<{ defaultIsOpen: boolean }> = ({ defaultIsOpen }) => (
Match alerts with label <code>service</code> matching regular
expression <code>/.*apache.*/</code>.
</FilterExample>
<FilterExample example="service!~.+">
Match alerts without any value for label <code>service</code>.
</FilterExample>
<FilterExample example="service=~apache[1-3]">
Match alerts with label <code>service</code> matching regular
expression <code>/.*apache[1-3].*/</code>.
@@ -256,6 +256,20 @@ exports[`<Help /> matches snapshot 1`] = `
.
</div>
</li>
<li>
<div>
<span class=\\"badge bg-info\\">
service!~.+
</span>
</div>
<div>
Match alerts without any value for label
<code>
service
</code>
.
</div>
</li>
<li>
<div>
<span class=\\"badge bg-info\\">