Skip to content

Commit

Permalink
fix(infra): remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Antonio Ghiani committed Mar 24, 2023
1 parent 9fc7cc0 commit fa62102
Showing 1 changed file with 0 additions and 7 deletions.
Expand Up @@ -61,13 +61,10 @@ export class KibanaMetricsAdapter implements InfraMetricsAdapter {

return Promise.all(requests)
.then((results) => {
console.log(results);

return results.filter(isVisSeriesData).map((result) => {
const metricIds = Object.keys(result).filter(
(k) => !['type', 'uiRestrictions', 'trackedEsSearches'].includes(k)
);
console.log({ metricIds });

return metricIds.map((id: string) => {
if (!InventoryMetricRT.is(id)) {
Expand All @@ -80,9 +77,7 @@ export class KibanaMetricsAdapter implements InfraMetricsAdapter {
})
);
}

const panel = result[id];

return {
id,
series: panel.series.map((series) => {
Expand Down Expand Up @@ -112,8 +107,6 @@ export class KibanaMetricsAdapter implements InfraMetricsAdapter {
rawRequest: KibanaRequest
) {
const createTSVBModel = get(metrics, ['tsvb', metricId]) as TSVBMetricModelCreator | undefined;
console.log({ createTSVBModel });

if (!createTSVBModel) {
throw new Error(
i18n.translate('xpack.infra.metrics.missingTSVBModelError', {
Expand Down

0 comments on commit fa62102

Please sign in to comment.