Skip to content

Commit

Permalink
Add dashboard URL
Browse files Browse the repository at this point in the history
  • Loading branch information
hifi committed Dec 1, 2023
1 parent ed81509 commit 46e0410
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ const utils = {
parts.push('| <a href="' + silenceUrl + '">🔇 Silence</a>')
}

if(data.annotations.hasOwnProperty("dashboard_url")) {
parts.push('| <a href="', data.annotations.dashboard_url, '">🚦 Dashboard</a>')
}

if(data.annotations.hasOwnProperty("runbook_url")) {
parts.push('| <a href="', data.annotations.runbook_url, '">🏃 Runbook</a>')
}
Expand Down

0 comments on commit 46e0410

Please sign in to comment.