コンテンツにスキップ

AIX WebSphere

AIX WebSphere input は serverStatus.sh で server の状態を収集し、metrics_command による JVM、スレッドプール、HTTP session などの指標出力にも対応しています。

設定

[inputs]
# ミドルウェア input の総合スイッチ。
enabled = true

[[inputs.websphere]]
# インスタンス名。instance tag として使用されます。
name = "AppSrv01"
# この WebSphere インスタンスの収集を有効にするかどうか。
enabled = true
# 収集間隔。
interval = "60s"
# 任意。収集前にインスタンスの環境変数を読み込みます。
env_file = ""
# WebSphere profile のパス。
profile_path = "/opt/IBM/WebSphere/AppServer/profiles/AppSrv01"
server_status = "/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/serverStatus.sh"
server_name = "server1"
# 任意。カスタムコマンドで JVM、スレッドプール、session 指標を出力します。
metrics_command = ""
# 任意。カスタム指標コマンド。key=value の行を出力します。
deep_metrics_command = ""

コマンド依存関係

コマンド 説明
serverStatus.sh -all WebSphere server の起動・停止状態を収集します。
metrics_command カスタムコマンド。JVM、スレッドプール、session 指標を出力します。
deep_metrics_command カスタムコマンド。key=value 行を出力し、カスタム指標を収集します。

指標

すべての指標には hostinput=websphereinstance=<name> タグが追加されます。

websphere

Tags & Fields Description
server
(tag)
server 名。
up started server が存在するかどうか。
Type: int | (gauge)
started_servers STARTED server 数。
Type: int | (gauge)
Unit: count
stopped_servers STOPPED server 数。
Type: int | (gauge)
Unit: count
その他のフィールド metrics_command の出力に含まれる数値型 key=value フィールド。
Type: float | (gauge)

websphere_jvm

Tags & Fields Description
server
(tag)
server 名。
jvm
(tag)
JVM 名。
heap_used_mb 使用中の heap。
Type: float | (gauge)
Unit: digital,MB
heap_committed_mb committed heap。
Type: float | (gauge)
Unit: digital,MB
heap_max_mb 最大 heap。
Type: float | (gauge)
Unit: digital,MB
threads スレッド数。
Type: float | (gauge)
Unit: count
gc_count GC 回数。
Type: float | (count)
Unit: count
gc_time_ms GC 時間。
Type: float | (count)
Unit: time,ms

websphere_thread_pool

Tags & Fields Description
thread_pool
(tag)
スレッドプール名。
active アクティブなスレッド数。
Type: float | (gauge)
Unit: count
pool_size スレッドプールのサイズ。
Type: float | (gauge)
Unit: count
hung hung スレッド数。
Type: float | (gauge)
Unit: count
declared_thread_hung declared hung 数。
Type: float | (count)
Unit: count
cleared_thread_hung cleared hung 数。
Type: float | (count)
Unit: count

websphere_http_session

Tags & Fields Description
application
(tag)
アプリケーション名。
live 現在の live session 数。
Type: float | (gauge)
Unit: count
created 作成された session 数。
Type: float | (count)
Unit: count
invalidated invalidated された session 数。
Type: float | (count)
Unit: count
timeout_invalidated timeout により invalidated された session 数。
Type: float | (count)
Unit: count

カスタム指標

カスタム指標フィールドは deep_metrics_command の出力によって決まります。表に列挙されたフィールドは tag として扱われ、それ以外の key=value のうち数値は float | (gauge) field として報告され、数値でないものは tag になります。数値 field がない場合は count=1 が補われ、単位は count になります。

Measurement Tags Description
websphere_pmi metric, module, unit カスタム PMI 指標。
websphere_jmx mbean, attribute, unit カスタム JMX 指標。
websphere_application application, module, status カスタムアプリケーション指標。
websphere_deep_metric metric, unit 汎用 WebSphere カスタム指標。

フィードバック

このページは役に立ちましたか?