コンテンツにスキップ

AIX Process

AIX Process コレクターは ps を使ってプロセスオブジェクトを収集し、DataKit の host_processes オブジェクト形式で送信します。

設定

[collectors.process]
# プロセスオブジェクトコレクターを有効にするかどうか。
enabled = true
# 収集間隔。
interval = "300s"
# 実行時間がこの値未満の短命プロセスを無視する。
min_run_time = "10m"

min_run_time は、実行時間が短すぎるプロセスを除外するために使います。ps の出力から実行時間を取得できず、かつ min_run_time が設定されている場合は、その収集は失敗して送信されません。短命プロセスによってオブジェクト数が過剰に増えるのを避けるためです。

コマンド依存

コマンド 説明
ps -eo user,pid,ppid,pcpu,pmem,etime,time,state,args ユーザー、PID、親 PID、CPU、メモリ、実行時間、CPU 時間、状態、コマンドラインを収集します。

オブジェクト

host_processes

Tags & Fields Description
name
(tag)
プロセスオブジェクトの一意名。形式は <host>_<pid> です。
process_name
(tag)
コマンドラインの先頭フィールドから抽出したプロセスの短名。
state
(tag)
プロセス状態の先頭文字。
username
(tag)
プロセスのユーザー名。
host
(tag)
ホスト名。
pid プロセスの PID。
Type: int
ppid 親プロセスの PID。
Type: int
cmdline 完全なコマンドライン。
Type: string
cpu_usage ps による現在の CPU 使用率。
Type: float
Unit: percent
cpu_usage_top CPU time delta に基づいて計算した top 形式の CPU 使用率。初回は cpu_usage にフォールバックします。
Type: float
Unit: percent
mem_used_percent プロセスのメモリ使用率。
Type: float
Unit: percent
started_duration プロセスの稼働秒数。
Type: int
Unit: time,s
start_time プロセスの開始時刻。Unix ミリ秒。
Type: int
Unit: time,ms
state_zombie ゾンビプロセスかどうか。
Type: bool
message オブジェクト詳細の JSON。
Type: string

フィードバック

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