Commit 4a064587 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'remove-unused-bundle-file' into 'master'

Remove unused monitoring bundle file

See merge request gitlab-org/gitlab!32389
parents 7cd320aa 82260d9a
...@@ -22,6 +22,8 @@ export default (props = {}) => { ...@@ -22,6 +22,8 @@ export default (props = {}) => {
props: { props: {
...el.dataset, ...el.dataset,
currentDashboard, currentDashboard,
customMetricsAvailable: parseBoolean(el.dataset.customMetricsAvailable),
prometheusAlertsAvailable: parseBoolean(el.dataset.prometheusAlertsAvailable),
hasMetrics: parseBoolean(el.dataset.hasMetrics), hasMetrics: parseBoolean(el.dataset.hasMetrics),
...props, ...props,
}, },
......
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),
});
}
};
import monitoringBundle from '~/monitoring/monitoring_bundle_with_alerts'; import monitoringBundle from '~/monitoring/monitoring_bundle';
document.addEventListener('DOMContentLoaded', monitoringBundle); document.addEventListener('DOMContentLoaded', monitoringBundle);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment