Skip to content
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

UI: add 'Link' button to alerts in list #2880

Merged
merged 2 commits into from Oct 5, 2022
Merged

UI: add 'Link' button to alerts in list #2880

merged 2 commits into from Oct 5, 2022

Conversation

ccmtaylor
Copy link
Contributor

adds a button to each alert that allows linking to a single alert.
This works by generating a link that filters on all of the alert's
label values, similar to the button to create a new silence from an
alert.

adds a button to each alert that allows linking to a single alert.
This works by generating a link that filters on _all_ of the alert's
label values, similar to the button to create a new silence from an
alert.

Signed-off-by: Christopher Taylor <chris.taylor@soundcloud.com>
Signed-off-by: Christopher Taylor <chris.taylor@soundcloud.com>
@gotjosh
Copy link
Member

gotjosh commented May 3, 2022

Visually, the changes look good and seem like a decent improvement to link individual alerts. However, I'm in no capacity to review the FE changes - perhaps @w0rm you can please take a look?

Here are a couple of screenshots to confirm what it looks like:

Before clicking on "Link"

Screenshot 2022-05-03 at 09 48 13

After clicking on "Link"

Screenshot 2022-05-03 at 09 48 20

@ccmtaylor
Copy link
Contributor Author

thanks for taking a look @gotjosh! Originally, I wanted this to copy the resulting URL to the clipboard, but I wasn't able to figure out how to access the clipboard (I'm not experienced with Elm). This change at least makes it easy to copy the link from the browser's address bar.

@ccmtaylor
Copy link
Contributor Author

is there any interest in this? If not, I'd close the PR in a week or so

@w0rm w0rm merged commit 2c04c5a into prometheus:main Oct 5, 2022
@w0rm
Copy link
Member

w0rm commented Oct 5, 2022

@ccmtaylor apologies! LGTM

@ccmtaylor ccmtaylor deleted the link-alerts branch October 6, 2022 04:58
@ccmtaylor ccmtaylor restored the link-alerts branch October 6, 2022 04:58
@ccmtaylor ccmtaylor deleted the link-alerts branch October 6, 2022 04:58
@ccmtaylor ccmtaylor restored the link-alerts branch October 6, 2022 04:58
qinxx108 pushed a commit to qinxx108/alertmanager that referenced this pull request Dec 13, 2022
* add 'Link' button

adds a button to each alert that allows linking to a single alert.
This works by generating a link that filters on _all_ of the alert's
label values, similar to the button to create a new silence from an
alert.

Signed-off-by: Christopher Taylor <chris.taylor@soundcloud.com>

* update asset/assets_vfsdata.go

Signed-off-by: Christopher Taylor <chris.taylor@soundcloud.com>

Signed-off-by: Christopher Taylor <chris.taylor@soundcloud.com>
Signed-off-by: Yijie Qin <qinyijie@amazon.com>
qinxx108 pushed a commit to qinxx108/alertmanager that referenced this pull request Jan 10, 2023
* add 'Link' button

adds a button to each alert that allows linking to a single alert.
This works by generating a link that filters on _all_ of the alert's
label values, similar to the button to create a new silence from an
alert.

Signed-off-by: Christopher Taylor <chris.taylor@soundcloud.com>

* update asset/assets_vfsdata.go

Signed-off-by: Christopher Taylor <chris.taylor@soundcloud.com>

Signed-off-by: Christopher Taylor <chris.taylor@soundcloud.com>
Signed-off-by: Yijie Qin <qinyijie@amazon.com>
qinxx108 pushed a commit to qinxx108/alertmanager that referenced this pull request Jan 12, 2023
* add 'Link' button

adds a button to each alert that allows linking to a single alert.
This works by generating a link that filters on _all_ of the alert's
label values, similar to the button to create a new silence from an
alert.

Signed-off-by: Christopher Taylor <chris.taylor@soundcloud.com>

* update asset/assets_vfsdata.go

Signed-off-by: Christopher Taylor <chris.taylor@soundcloud.com>

Signed-off-by: Christopher Taylor <chris.taylor@soundcloud.com>
Signed-off-by: Yijie Qin <qinyijie@amazon.com>
qinxx108 pushed a commit to qinxx108/alertmanager that referenced this pull request Jan 12, 2023
* add 'Link' button

adds a button to each alert that allows linking to a single alert.
This works by generating a link that filters on _all_ of the alert's
label values, similar to the button to create a new silence from an
alert.

Signed-off-by: Christopher Taylor <chris.taylor@soundcloud.com>

* update asset/assets_vfsdata.go

Signed-off-by: Christopher Taylor <chris.taylor@soundcloud.com>

Signed-off-by: Christopher Taylor <chris.taylor@soundcloud.com>
Signed-off-by: Yijie Qin <qinyijie@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants