summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pages/projects/services/edit/index.js
blob: 03ffc323fc0018eddca68bf73cbfe62eaa293dd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import IntegrationSettingsForm from '~/integrations/integration_settings_form';
import PrometheusAlerts from '~/prometheus_alerts';
import CustomMetrics from '~/prometheus_metrics/custom_metrics';

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();