debian-mirror-gitlab/app/views/projects/services/prometheus/_external_alerts.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
600 B
Text
Raw Normal View History

2020-04-22 19:07:51 +05:30
- return unless can?(current_user, :read_prometheus_alerts, @project)
2021-09-04 01:27:46 +05:30
- return unless integration.manual_configuration?
2020-04-22 19:07:51 +05:30
- notify_url = notify_project_prometheus_alerts_url(@project, format: :json)
- authorization_key = @project.alerting_setting.try(:token)
2020-07-28 23:09:34 +05:30
- learn_more_url = help_page_path('operations/metrics/alerts.md', anchor: 'external-prometheus-instances')
2020-04-22 19:07:51 +05:30
2020-07-28 23:09:34 +05:30
#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 } }