Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « edit « services « projects « pages « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a2b18d86240c0cf0b78b404f4b06368bfd9c2316 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import initIntegrationSettingsForm from '~/integrations/edit';
import PrometheusAlerts from '~/prometheus_alerts';
import CustomMetrics from '~/prometheus_metrics/custom_metrics';

initIntegrationSettingsForm('.js-integration-settings-form');

const prometheusSettingsSelector = '.js-prometheus-metrics-monitoring';
const prometheusSettingsWrapper = document.querySelector(prometheusSettingsSelector);
if (prometheusSettingsWrapper) {
  const customMetrics = new CustomMetrics(prometheusSettingsSelector);
  customMetrics.init();
}

PrometheusAlerts();