Commit 82260d9a authored by Miguel Rincon's avatar Miguel Rincon

Remove unused monitoring bundle file

The monitoring_bundle_with_alerts was a quick fix for migrating custom
metrics to CE, this is file is not needed anymore.
parent aeb27a75
...@@ -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