summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pages/groups/settings/integrations/edit/index.js
blob: c354ed1c1426d2e9885dd6ff3d8afbf29697315d (plain)
1
2
3
4
5
6
7
8
9
10
11
import initIntegrationSettingsForm from '~/integrations/edit';
import PrometheusMetrics from '~/prometheus_metrics/prometheus_metrics';

initIntegrationSettingsForm();

const prometheusSettingsSelector = '.js-prometheus-metrics-monitoring';
const prometheusSettingsWrapper = document.querySelector(prometheusSettingsSelector);
if (prometheusSettingsWrapper) {
  const prometheusMetrics = new PrometheusMetrics(prometheusSettingsSelector);
  prometheusMetrics.loadActiveMetrics();
}