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: Add a Silence button shortcut to alert notifications #47968
Conversation
|
@aaSharma14 just a summary of my suggestions in the daily today:
That would be a user experience consistent/similar to what we have in our mobile phones: muting notifications is a 1-click workflow. |
3201b0a
to
f6dd30f
Compare
Thank you for the suggestions @epuertat , I have updated the PR accordingly. |
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.
Looks really good, @aaSharma14 !
Did you try the bell icon in black&white, same as the tray can icon (just for consistency)?
After that I get the following:
That "created silence" notification is hard to relate to the previous action, since that uuid cannot be easily connected with that, and it's a bit redundant. What about any of these?:
- Displaying a user friendly (silence) notification instead:

- Update the silenced alert (replacing the slashed bell icon with a regular bell icon, so clicking in that will un-silence the alert; and also emphasizing the fact that the alert is silenced with a large icon and gray-ish colors):

BTW, I started working on a design to improve the notification section, would you like to get involved? https://docs.google.com/document/d/1-cedKvB3_6zQvoDbwFrWasXmv9bWLeJUCmRcJNAe3Mg/edit
...gr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-form/silence-form.component.ts
Outdated
Show resolved
Hide resolved
.../frontend/src/app/shared/components/notifications-sidebar/notifications-sidebar.component.ts
Outdated
Show resolved
Hide resolved
...gr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-form/silence-form.component.ts
Outdated
Show resolved
Hide resolved
|
e1a2157
to
1fd4cdf
Compare
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.
Looks ok to me, but there are still a couple of issues:
- The alert silence id is still hard to relate to the actual alert:

- There's no visual feedback in the notifications on whether an alert was already muted or not (in fact you can create multiple silences for the same alert). That's why I was suggesting that once the "alert icon" has been clicked AND succeeded, it shoult be either disabled or toggled to an "unsilence alert" action:

1fd4cdf
to
ef61084
Compare
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.
LGTM! Awesome work here @aaSharma14 minor comments from me.
As we discussed in standup, let's go with this and find a way to improve the notification sidebar.
Also can you create one tracker for the changes we discussed in standup-
...rontend/src/app/shared/components/notifications-sidebar/notifications-sidebar.component.html
Show resolved
Hide resolved
...gr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.ts
Outdated
Show resolved
Hide resolved
...gr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-form/silence-form.component.ts
Outdated
Show resolved
Hide resolved
...gr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-form/silence-form.component.ts
Outdated
Show resolved
Hide resolved
...rontend/src/app/shared/components/notifications-sidebar/notifications-sidebar.component.scss
Show resolved
Hide resolved
|
Also could you please update the description with the latest screenshots. |
755f8ed
to
9517564
Compare
Fixes: https://tracker.ceph.com/issues/57457 Signed-off-by: Aashish Sharma <aasharma@redhat.com>
9517564
to
94fe310
Compare
|
jenkins test dashboard |
|
jenkins test dashboard cephadm |
2 similar comments
|
jenkins test dashboard cephadm |
|
jenkins test dashboard cephadm |
|
cephadm e2e failure tracked here: https://tracker.ceph.com/issues/57511 |


Add a shortcut to create a silence from the alert notification
Fixes: https://tracker.ceph.com/issues/57457
Signed-off-by: Aashish Sharmaaasharma@redhat.com
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows