DEV: generate logs & grafana urls in single alert if not found.

DEV: generate logs & grafana urls in single alert if not found.

diff --git a/app/jobs/regular/process_alert.rb b/app/jobs/regular/process_alert.rb
index 192be02..628b34c 100644
--- a/app/jobs/regular/process_alert.rb
+++ b/app/jobs/regular/process_alert.rb
@@ -211,6 +211,10 @@ module Jobs
               p["status"] != "resolved"
           end
 
+          # TODO: find correct way to pass logs & grafana URLs to single alerts
+          logs_url ||= "#{external_url.sub("alerts", "logs")}/app/kibana"
+          grafana_url ||= external_url.sub("alerts", "graphs")
+
           alert_description = alert.dig('annotations', 'description')
           grafana_dashboard_url = get_grafana_dashboard_url(alert, grafana_url)
           firing = is_firing?(alert['status'])

GitHub sha: 8b5ea55d