This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.11.3.5. must-gather ツールの使用
					must-gather ツールを使用して、MTC カスタムリソースのログ、メトリクス、および情報を収集できます。
				
					must-gather データはすべてのカスタマーケースに割り当てられる必要があります。
				
1 時間または 24 時間のデータを収集し、Prometheus コンソールでデータを表示できます。
前提条件
- 
							cluster-adminロールを持つユーザーとして OpenShift Container Platform クラスターにログインする必要があります。
- OpenShift CLI がインストールされている必要があります。
手順
- 
							must-gatherデータを保存するディレクトリーに移動します。
- 次のデータ収集オプションのいずれかに対して、 - oc adm must-gatherコマンドを実行します。- 過去 1 時間のデータを収集するには、以下を実行します。 - oc adm must-gather --image=registry.redhat.io/rhmtc/openshift-migration-must-gather-rhel8:v1.7 - $ oc adm must-gather --image=registry.redhat.io/rhmtc/openshift-migration-must-gather-rhel8:v1.7- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - データは - must-gather/must-gather.tar.gzとして保存されます。このファイルを Red Hat カスタマーポータル で作成したサポートケースにアップロードすることができます。
- 過去 24 時間のデータを収集するには、以下を実行します。 - oc adm must-gather --image=registry.redhat.io/rhmtc/openshift-migration-must-gather-rhel8:v1.7 \ -- /usr/bin/gather_metrics_dump - $ oc adm must-gather --image=registry.redhat.io/rhmtc/openshift-migration-must-gather-rhel8:v1.7 \ -- /usr/bin/gather_metrics_dump- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - この操作には長時間かかる場合があります。データは - must-gather/metrics/prom_data.tar.gzとして保存されます。
 
Prometheus コンソールを使用したメトリクスデータの表示
Prometheus コンソールでメトリックデータを表示できます。
手順
- prom_data.tar.gzファイルを解凍します。- tar -xvzf must-gather/metrics/prom_data.tar.gz - $ tar -xvzf must-gather/metrics/prom_data.tar.gz- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- ローカルの Prometheus インスタンスを作成します。 - make prometheus-run - $ make prometheus-run- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - このコマンドでは、Prometheus URL が出力されます。 - 出力 - Started Prometheus on http://localhost:9090 - Started Prometheus on http://localhost:9090- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Web ブラウザーを起動して URL に移動し、Prometheus Web コンソールを使用してデータを表示します。
- データを確認した後に、Prometheus インスタンスおよびデータを削除します。 - make prometheus-cleanup - $ make prometheus-cleanup- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow