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

monitoring_bundle_with_alerts.js « monitoring « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: afe5ee0938d064deb1bd14585e17faa4fc7bab31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { parseBoolean } from '~/lib/utils/common_utils';
import initCeBundle from '~/monitoring/monitoring_bundle';

export default () => {
  const el = document.getElementById('prometheus-graphs');

  if (el && el.dataset) {
    initCeBundle({
      customMetricsAvailable: parseBoolean(el.dataset.customMetricsAvailable),
      prometheusAlertsAvailable: parseBoolean(el.dataset.prometheusAlertsAvailable),
    });
  }
};