2020-04-02 00:08:11 +00:00
|
|
|
- return unless can?(current_user, :read_prometheus_alerts, @project)
|
2021-05-24 06:10:58 +00:00
|
|
|
- return unless integration.manual_configuration?
|
2020-04-02 00:08:11 +00:00
|
|
|
|
|
|
|
- notify_url = notify_project_prometheus_alerts_url(@project, format: :json)
|
|
|
|
- authorization_key = @project.alerting_setting.try(:token)
|
2020-07-17 06:09:11 +00:00
|
|
|
- learn_more_url = help_page_path('operations/metrics/alerts.md', anchor: 'external-prometheus-instances')
|
2020-04-02 00:08:11 +00:00
|
|
|
|
2020-07-13 18:09:16 +00:00
|
|
|
#js-settings-prometheus-alerts{ data: { notify_url: notify_url, authorization_key: authorization_key, change_key_url: reset_alerting_token_project_settings_operations_path(@project), learn_more_url: learn_more_url, disabled: true } }
|