Skip to content

Commit

Permalink
[Stack Monitoring] Remove deprecation warning for Internal Monitoring (
Browse files Browse the repository at this point in the history
…#114856)

* [Stack Monitoring] Remove deprecation warning for Internal Monitoring

* Fix i18n
  • Loading branch information
Zacqary authored Oct 14, 2021
1 parent 45e9d51 commit 03fe419
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 167 deletions.
116 changes: 0 additions & 116 deletions x-pack/plugins/monitoring/public/lib/internal_monitoring_toasts.tsx

This file was deleted.

39 changes: 0 additions & 39 deletions x-pack/plugins/monitoring/public/services/clusters.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import { ajaxErrorHandlersProvider } from '../lib/ajax_error_handler';
import { Legacy } from '../legacy_shims';
import { STANDALONE_CLUSTER_CLUSTER_UUID } from '../../common/constants';
import { showInternalMonitoringToast } from '../lib/internal_monitoring_toasts';

function formatClusters(clusters) {
return clusters.map(formatCluster);
Expand All @@ -21,8 +20,6 @@ function formatCluster(cluster) {
return cluster;
}

let once = false;

export function monitoringClustersProvider($injector) {
return async (clusterUuid, ccs, codePaths) => {
const { min, max } = Legacy.shims.timefilter.getBounds();
Expand Down Expand Up @@ -57,42 +54,6 @@ export function monitoringClustersProvider($injector) {
}
}

async function ensureMetricbeatEnabled() {
if (Legacy.shims.isCloud) {
return;
}
const globalState = $injector.get('globalState');
try {
const response = await $http.post(
'../api/monitoring/v1/elasticsearch_settings/check/internal_monitoring',
{
ccs: globalState.ccs,
}
);
const { data } = response;
showInternalMonitoringToast({
legacyIndices: data.legacy_indices,
metricbeatIndices: data.mb_indices,
});
} catch (err) {
const Private = $injector.get('Private');
const ajaxErrorHandlers = Private(ajaxErrorHandlersProvider);
return ajaxErrorHandlers(err);
}
}

if (!once) {
once = true;
const clusters = await getClusters();
if (clusters.length) {
try {
await ensureMetricbeatEnabled();
} catch (_err) {
// Intentionally swallow the error as this will retry the next page load
}
}
return clusters;
}
return await getClusters();
};
}
6 changes: 0 additions & 6 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -17880,12 +17880,6 @@
"xpack.monitoring.healthCheck.unableToDisableWatches.action": "詳細情報",
"xpack.monitoring.healthCheck.unableToDisableWatches.text": "レガシークラスターアラートを削除できませんでした。Kibanaサーバーログで詳細を確認するか、しばらくたってから再試行してください。",
"xpack.monitoring.healthCheck.unableToDisableWatches.title": "レガシークラスターアラートはまだ有効です",
"xpack.monitoring.internalAndMetricbeatMonitoringToast.description": "スタック監視で、Metricbeatと「レガシー収集」の両方を使用している可能性があります。\n 8.0.0では、Metricbeatを使用して、監視データを収集する必要があります。\n セットアップモードの手順に従い、残りの監視をMetricbeatに移行してください。",
"xpack.monitoring.internalAndMetricbeatMonitoringToast.title": "一部のレガシー監視が検出されました",
"xpack.monitoring.internalMonitoringToast.description": "スタック監視で、「レガシー収集」の両方を使用している可能性があります。\n この監視方法は、次のメジャーリリース(8.0.0)ではサポートされていません。\n セットアップモードの手順に従い、Metricbeatで監視を開始してください。",
"xpack.monitoring.internalMonitoringToast.enterSetupMode": "設定モードにする",
"xpack.monitoring.internalMonitoringToast.learnMoreAction": "詳細",
"xpack.monitoring.internalMonitoringToast.title": "内部監視が検出されました",
"xpack.monitoring.kibana.clusterStatus.connectionsLabel": "接続",
"xpack.monitoring.kibana.clusterStatus.instancesLabel": "インスタンス",
"xpack.monitoring.kibana.clusterStatus.maxResponseTimeLabel": "最高応答時間",
Expand Down
6 changes: 0 additions & 6 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -18154,12 +18154,6 @@
"xpack.monitoring.healthCheck.unableToDisableWatches.action": "了解详情。",
"xpack.monitoring.healthCheck.unableToDisableWatches.text": "我们移除旧版集群告警。请查看 Kibana 服务器日志以获取更多信息,或稍后重试。",
"xpack.monitoring.healthCheck.unableToDisableWatches.title": "旧版集群告警仍有效",
"xpack.monitoring.internalAndMetricbeatMonitoringToast.description": "似乎您正在同时使用 Metricbeat 和“Legacy Collection”进行堆栈监测。\n 在 8.0.0 中,必须使用 Metricbeat 收集监测数据。\n 请在设置模式下按照相关步骤将监测的其余部分迁移到 Metricbeat。",
"xpack.monitoring.internalAndMetricbeatMonitoringToast.title": "检测到部分旧版监测",
"xpack.monitoring.internalMonitoringToast.description": "似乎您正在使用“Legacy Collection”进行堆栈监测。\n 下一主要版本 (8.0.0) 将不再支持这种监测方法。\n 请在设置模式下按照相关步骤使用 Metricbeat 开始监测。",
"xpack.monitoring.internalMonitoringToast.enterSetupMode": "进入设置模式",
"xpack.monitoring.internalMonitoringToast.learnMoreAction": "了解详情",
"xpack.monitoring.internalMonitoringToast.title": "检测到内部监测",
"xpack.monitoring.kibana.clusterStatus.connectionsLabel": "连接",
"xpack.monitoring.kibana.clusterStatus.instancesLabel": "实例",
"xpack.monitoring.kibana.clusterStatus.maxResponseTimeLabel": "最大响应时间",
Expand Down

0 comments on commit 03fe419

Please sign in to comment.