2020-03-07 23:17:34 +05:30
|
|
|
= form_for @application_setting, url: metrics_and_profiling_admin_application_settings_path(anchor: 'js-grafana-settings'), html: { class: 'fieldset-form' } do |f|
|
2019-09-30 21:07:59 +05:30
|
|
|
= form_errors(@application_setting)
|
|
|
|
|
|
|
|
%fieldset
|
|
|
|
%p
|
|
|
|
= _("Add a Grafana button in the admin sidebar, monitoring section, to access a variety of statistics on the health and performance of GitLab.")
|
2020-11-24 15:15:51 +05:30
|
|
|
= link_to sprite_icon('question-o'), help_page_path('administration/monitoring/performance/grafana_configuration.md')
|
2019-09-30 21:07:59 +05:30
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :grafana_enabled, class: 'form-check-input'
|
|
|
|
= f.label :grafana_enabled, class: 'form-check-label' do
|
|
|
|
= _('Enable access to Grafana')
|
|
|
|
.form-group
|
|
|
|
= f.label :grafana_url, _('Grafana URL'), class: 'label-bold'
|
|
|
|
= f.text_field :grafana_url, class: 'form-control', placeholder: '/-/grafana'
|
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
= f.submit _('Save changes'), class: "gl-button btn btn-success"
|