From def94f5043abe57f453094fa570407e5b806c48a Mon Sep 17 00:00:00 2001 From: Maneschi Romain Date: Wed, 3 Jul 2019 16:09:51 +0000 Subject: Add Grafana to Admin > Monitoring menu when enabled --- .../application_settings/metrics_and_profiling.html.haml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'app/views/admin/application_settings/metrics_and_profiling.html.haml') diff --git a/app/views/admin/application_settings/metrics_and_profiling.html.haml b/app/views/admin/application_settings/metrics_and_profiling.html.haml index 01d61beaf53..55a48da8342 100644 --- a/app/views/admin/application_settings/metrics_and_profiling.html.haml +++ b/app/views/admin/application_settings/metrics_and_profiling.html.haml @@ -24,6 +24,17 @@ .settings-content = render 'prometheus' +%section.settings.as-grafana.no-animate#js-grafana-settings{ class: ('expanded' if expanded_by_default?) } + .settings-header + %h4 + = _('Metrics - Grafana') + %button.btn.btn-default.js-settings-toggle{ type: 'button' } + = expanded_by_default? ? _('Collapse') : _('Expand') + %p + = _('Enable and configure Grafana.') + .settings-content + = render 'grafana' + %section.settings.qa-performance-bar-settings.as-performance-bar.no-animate#js-performance-bar-settings{ class: ('expanded' if expanded_by_default?) } .settings-header %h4 -- cgit v1.2.3