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),
});
}
};
|