2018-03-27 19:54:05 +05:30
|
|
|
import IntegrationSettingsForm from '~/integrations/integration_settings_form';
|
|
|
|
import PrometheusMetrics from '~/prometheus_metrics/prometheus_metrics';
|
2020-03-13 15:44:24 +05:30
|
|
|
import initAlertsSettings from '~/alerts_service_settings';
|
2018-03-27 19:54:05 +05:30
|
|
|
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
const prometheusSettingsWrapper = document.querySelector('.js-prometheus-metrics-monitoring');
|
|
|
|
const integrationSettingsForm = new IntegrationSettingsForm('.js-integration-settings-form');
|
|
|
|
integrationSettingsForm.init();
|
|
|
|
|
|
|
|
if (prometheusSettingsWrapper) {
|
|
|
|
const prometheusMetrics = new PrometheusMetrics('.js-prometheus-metrics-monitoring');
|
|
|
|
prometheusMetrics.loadActiveMetrics();
|
|
|
|
}
|
2020-03-13 15:44:24 +05:30
|
|
|
|
|
|
|
initAlertsSettings(document.querySelector('.js-alerts-service-settings'));
|
2018-03-27 19:54:05 +05:30
|
|
|
});
|