19 lines
847 B
JavaScript
19 lines
847 B
JavaScript
import IntegrationSettingsForm from '~/integrations/integration_settings_form';
|
|
import CustomMetrics from '~/prometheus_metrics/custom_metrics';
|
|
import PrometheusAlerts from '~/prometheus_alerts';
|
|
import initAlertsSettings from '~/alerts_service_settings';
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
const integrationSettingsForm = new IntegrationSettingsForm('.js-integration-settings-form');
|
|
integrationSettingsForm.init();
|
|
|
|
const prometheusSettingsSelector = '.js-prometheus-metrics-monitoring';
|
|
const prometheusSettingsWrapper = document.querySelector(prometheusSettingsSelector);
|
|
if (prometheusSettingsWrapper) {
|
|
const customMetrics = new CustomMetrics(prometheusSettingsSelector);
|
|
customMetrics.init();
|
|
}
|
|
|
|
PrometheusAlerts();
|
|
initAlertsSettings(document.querySelector('.js-alerts-service-settings'));
|
|
});
|