Splunk OTel Java エージェントが収集したメトリクスと属性 🔗
Splunk Distribution of OpenTelemetry Java のエージェントは、アップストリームの OpenTelemetry エージェントが収集するすべてのものに加えて、以下のアプリケーション・メトリクスのデータと属性を収集します。メトリクスの種類については、メトリクスタイプ を参照してください。
注意
OpenTelemetry Java Instrumentation 2.x contains a set of breaking changes, introduced as part of recent OpenTelemetry HTTP semantic convention updates. To migrate, see Migration guide for OpenTelemetry Java 2.x metrics.
アプリケーション・メトリクス 🔗
Splunk Distribution of OpenTelemetry Java のエージェントは、以下のアプリケーション・メトリクスを収集します。
デフォルトのメトリクス ディメンション 🔗
以下のディメンションは、エージェントによってエクスポートされるすべてのメトリクスに自動的に追加されます:
ディメンション |
説明 |
---|---|
|
存在する場合は、 |
|
|
|
Javaプロセス識別子(PID)。 |
|
該当する場合、コンテナの識別子。 |
|
ホストの名前。 |
|
|
対応ライブラリ 🔗
エージェントは、以下のライブラリを通じて以下のメトリクスを収集します:
ライブラリ/フレームワーク |
インストルメンテーション |
対応バージョン |
---|---|---|
|
Javaランタイムバージョン8以上 |
|
|
バージョン2.0以上 |
|
|
バージョン0.9.5以上 |
|
|
バージョン3.0以上 |
|
|
バージョン11.2.0.4以上 |
|
|
バージョン8.5以上 |
|
|
バージョン20.0以上 |
JVMメトリクス 🔗
The Splunk OTel Java agent collects the following Java Virtual Machine (JVM) metrics when metric collection is activated.
クラスローダーのメトリクス 🔗
エージェントは、以下の ClassLoader メトリクスを収集します:
メトリクス |
タイプ |
説明 |
---|---|---|
|
ゲージ |
ロードされたクラスの数。 |
|
カウンター |
プロセスが開始してからアンロードされたクラスの総数。 |
ガベージコレクション・メトリクス 🔗
エージェントは、以下のガベージ・コレクション(GC)メトリクスを収集します:
メトリクス |
タイプ |
説明 |
---|---|---|
|
ヒストグラム |
コンカレント・フェーズに費やされた時間(ミリ秒単位)。 |
|
カウンター |
Increase in the size of the young heap memory pool after 1 garbage collection and before the next. |
|
タイマー |
Time spent in garbage collection pause, in seconds. |
メモリ・メトリクス 🔗
エージェントは以下のメモリ・メトリクスを収集します:
メトリクス |
タイプ |
説明 |
---|---|---|
|
カウンター |
|
|
カウンター |
|
|
ゲージ |
プール内のバッファ数の推定値。 |
|
ゲージ |
JVMがこのバッファ・プールに使用しているメモリの推定値(バイト単位)。 |
|
ゲージ |
このプール内のバッファの総容量の見積もり(バイト単位)。 |
|
ゲージ |
JVMが利用可能なメモリ量(バイト単位)。 |
|
ゲージ |
メモリ管理で使用可能なメモリの最大量(バイト単位)。 |
|
ゲージ |
使用メモリ量(バイト)。 |
すべてのメモリプールメトリクスは、以下のタグを共有しています:
タグ |
値 |
---|---|
|
|
|
メモリプールの名前。例えば |
スレッドメトリクス 🔗
エージェントは、以下のスレッド・メトリクスを収集します:
メトリクス |
タイプ |
説明 |
---|---|---|
|
ゲージ |
Number of live threads, including daemon and nondaemon threads. |
接続プールのメトリクス 🔗
Splunk Distribution of OpenTelemetry Java は、いくつかの Java Database Connectivity (JDBC) 接続プールの実装をインストルメンテーションしています:
Apache DBCP2
c3p0
HikariCP
Oracle Universal Connection Pool (UCP)
Tomcat JDBC
Vibur DBCP
WebSphere Liberty
WebLogicスレッドプール
各接続プールでは、以下のメトリクスのサブセットがレポートされます:
メトリクス |
タイプ |
説明 |
---|---|---|
|
ゲージ |
使用中のオープン接続の数。 |
|
ゲージ |
アイドル状態のオープン接続の数。 |
|
ゲージ |
アイドルオープン接続の最大許容数。 |
|
ゲージ |
アイドルオープン接続の最小許容数。 |
|
ゲージ |
オープン接続の最大許容数。 |
|
ゲージ |
オープン接続を待機しているスレッド数。 |
|
カウンター |
アプリケーション起動後に発生した接続タイムアウトの数。 |
|
ヒストグラム |
Time it took to create a new connection, in milliseconds. |
|
ヒストグラム |
Time it took to get an open connection from the pool, in milliseconds. |
|
ヒストグラム |
Time between borrowing a connection and returning it to the pool, in milliseconds. |
すべての接続プール・メトリクスは、以下のタグを共有しています:
タグ |
値 |
---|---|
|
接続プールの名前。Springを使用している場合はSpringビーン名、そうでない場合はJMXオブジェクト名。 |
|
接続プールのタイプまたは実装。例えば、 |
WebEngine 属性 🔗
Splunk Distribution of OpenTelemetry Java は、アプリケーションサーバーに関するデータを取得し、SERVER のスパンに以下の属性を追加します:
スパン属性 |
説明 |
---|---|
|
アプリケーションサーバーの名前。例えば、 |
|
アプリケーションサーバーのバージョン。 |
For a list of supported application servers, see the サポートされているライブラリとフレームワーク.
New metric names 🔗
The following table shows the metrics produced by default by OpenTelemetry Java 2.0 and higher, together with their legacy equivalent from version 1.x.
OTel Java 2.0 metric |
Legacy metric (1.x) |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* This is a Splunk specific metric and it’s not present in the upstream semantic conventions.
注釈
The previous table contains metrics generated by default. Additional metrics might be emitted by supported metrics instrumentation, for example when instrumenting application servers.
For more information on the HTTP semantic convention changes, see HTTP semantic convention stability migration guide on GitHub.
Deactivate metrics export 🔗
To turn off logs export to Splunk Observability Cloud, set the OTEL_METRICS_EXPORTER
environment variable or the otel.metrics.exporter
system property to none
.