可観測性
第1章 ロギング リンクのコピーリンクがクリップボードにコピーされました!
ビルドが失敗した場合や、ビルドで予期しない動作が発生した場合は、詳細なログにアクセスすると、問題の特定に役立ちます。ログには、ビルド実行中に発生したことに関する情報が表示されます。
1.1. ログの表示 リンクのコピーリンクがクリップボードにコピーされました!
ビルド実行のログを表示して、実行時エラーを特定し、解決することができます。
前提条件
-
ocCLI がインストールされている。 -
オプション:
shpCLI がインストールされている。
手順
いずれかの CLI を使用して、ビルド実行のログを表示します。
ocCLI の使用oc logs <buildrun_resource_name>
$ oc logs <buildrun_resource_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow shpCLI の使用shp buildrun logs <buildrun_resource_name>
$ shp buildrun logs <buildrun_resource_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
第2章 モニタリング リンクのコピーリンクがクリップボードにコピーされました!
Builds は、ビルドリソースのパフォーマンスと機能の監視に役立ついくつかのメトリクスを公開します。ビルドコントローラーのメトリクスはポート 8383 で公開されます。
2.1. ビルドコントローラーのメトリクス リンクのコピーリンクがクリップボードにコピーされました!
モニタリング用に、以下のビルドコントローラーのメトリクスを確認できます。
| 名前 | 型 | 説明 | ラベル | ステータス |
|---|---|---|---|---|
|
| Counter | 登録されているビルドの総数。 |
| 実験的機能 |
|
| Counter | 完了したビルド実行の合計数。 |
| 実験的機能 |
|
| ヒストグラム | ビルド実行の確立にかかる時間 (秒)。 |
| 実験的機能 |
|
| ヒストグラム | ビルド実行の完了までにかかる時間 (秒)。 |
| 実験的機能 |
|
| ヒストグラム | ビルド実行の立ち上げにかかる時間 (秒)。 |
| 実験的機能 |
|
| ヒストグラム | タスク実行のビルド実行立ち上げにかかる時間 (秒)。 |
| 実験的機能 |
|
| ヒストグラム | タスク実行 Pod のビルド実行立ち上げにかかる時間 (秒)。 |
| 実験的機能 |
2.1.1. ヒストグラムメトリクス リンクのコピーリンクがクリップボードにコピーされました!
ビルドコントローラーにカスタムバケットを使用するには、特定のヒストグラムメトリクスの環境変数を設定する必要があります。次の表は、すべてのヒストグラムメトリクスの環境変数を示しています。
| メトリクス | 環境変数 | デフォルト |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Legal Notice
リンクのコピーリンクがクリップボードにコピーされました!
Copyright © 2025 Red Hat
OpenShift documentation is licensed under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0).
Modified versions must remove all Red Hat trademarks.
Portions adapted from https://github.com/kubernetes-incubator/service-catalog/ with modifications by Red Hat.
Red Hat, Red Hat Enterprise Linux, the Red Hat logo, the Shadowman logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation’s permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.