New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mgr/dashboard: Silence Alertmanager alerts #27277
Conversation
Wow, that's a big PR. Is it by intention that this PR contains the code of another PR (i assume it's something with the back button)? |
I only have the commits left that are in use to get it working in order to review the result in the first place. And I know it really big - but the most changes are tests ;) |
208776d
to
95d9879
Compare
jenkins retest this please |
95d9879
to
33b5add
Compare
f51039d
to
ea583cd
Compare
ea583cd
to
b29ea41
Compare
jenkins retest this please |
Great work! Just 1 observation: |
retest this please |
doc/mgr/dashboard.rst
Outdated
@@ -523,18 +524,28 @@ twice if you use both sources. | |||
configuration checkout the `<http_config> documentation | |||
<https://prometheus.io/docs/alerting/configuration/#%3Chttp_config%3E>`_. | |||
|
|||
#. Use the API of the Prometheus Alertmanager | |||
#. Use the API of the Prometheus and Alertmanager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#. Use the API of the Prometheus and Alertmanager | |
#. Use the API of Prometheus and the Alertmanager |
5be4787
to
598c12e
Compare
jenkins test make check |
...gr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.ts
Show resolved
Hide resolved
...gr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.ts
Outdated
Show resolved
Hide resolved
...nd/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/alert-list/alert-list.component.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.html
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.spec.ts
Outdated
Show resolved
Hide resolved
Succeeded action labels can be used in order to show the right tense for a succeeded action in a success notification. Fixes: https://tracker.ceph.com/issues/36722 Signed-off-by: Stephan Müller <smueller@suse.com>
340cf0a
to
455a7fe
Compare
Addressed all comments :) |
Please run |
Now you can silence alerts through the dashboard. You can now create, recreate, edit and expire a silence. You can create a silence based on a selected alert. The silence form will help you create a silence that silences an alert. It is provided with functionality to check if the silences, that you are about to create, will or will not match an active alert or even a rule. It also provides help choosing the right values for the right chosen matcher attribute name, through the use of type ahead values. The dashboard will now use the Prometheus and the Alertmanager API Fixes: https://tracker.ceph.com/issues/36722 Signed-off-by: Stephan Müller <smueller@suse.com>
It's now easy to deal with unset settings. Fixes: https://tracker.ceph.com/issues/36722 Signed-off-by: Stephan Müller <smueller@suse.com>
Currently it's not easily possible to mock a selection during table action tests, that's why I added a method that is used to create the selection that is used through out the table action scenario tests. You can simply overwrite it to get a different base object as selection. Fixes: https://tracker.ceph.com/issues/36722 Signed-off-by: Stephan Müller <smueller@suse.com>
The time diff service can easily calculate the difference between two dates and print it out in a human readable duration format. It also can calculate a end or start date based on a date and a duration string. Fixes: https://tracker.ceph.com/issues/36722 Signed-off-by: Stephan Müller <smueller@suse.com>
455a7fe
to
3fb21de
Compare
Addressed all comments and using the icons enum now. |
jenkins test dashboard |
jenkins test dashboard |
1 similar comment
jenkins test dashboard |
Now you can silence alerts through the dashboard. You can now create,
recreate, edit and expire a silence. You can create a silence based on a
selected alert.
The silence form will help you create a silence that silences an alert.
It is provided with functionality to check if the silences, that
you are about to create, will or will not match an active alert or even
a rule.
It also provides help choosing the right values for the right chosen
matcher attribute name, through the use of type ahead values.
The dashboard will now use the Prometheus and the Alertmanager API
Fixes: https://tracker.ceph.com/issues/36722
Signed-off-by: Stephan Müller smueller@suse.com
This PR can be merged after #27274. It is not directly related but will cause merge conflicts.