AIX Informix
AIX Informix input は onstat を使って、インスタンス状態、セッション、dbspace、およびログ使用状況を収集します。
設定¶
[inputs]
# ミドルウェア input の全体スイッチ。
enabled = true
[[inputs.informix]]
# インスタンス名。instance tag として使用されます。
name = "informix"
# この Informix インスタンスの収集を有効にするかどうか。
enabled = true
# 収集間隔。
interval = "60s"
# 任意。収集前にインスタンス環境変数を読み込みます。
env_file = ""
# Informix server 名。
server = "ol_informix"
# 任意。カスタムメトリクスコマンド。key=value 形式で出力します。
deep_metrics_command = ""
# onstat コマンドのパス。
onstat = "onstat"
コマンド依存関係¶
| コマンド | 説明 |
|---|---|
onstat - |
Informix のオンライン状態を収集します。 |
onstat -g ses |
セッション数を収集します。 |
onstat -d |
dbspace の容量を収集します。 |
onstat -l |
logical/physical log の使用状況を収集します。 |
deep_metrics_command |
カスタムコマンド。key=value 行を出力し、カスタムメトリクスを収集します。 |
メトリクス¶
すべてのメトリクスには host、input=informix、instance=<name> タグが追加されます。
informix¶
| Tags & Fields | Description |
|---|---|
| server ( tag) |
Informix server。 |
| mode ( tag) |
On-Line、Quiescent、Offline などのインスタンスモード。 |
| up | インスタンスがオンラインかどうか。 Type: int | (gauge) |
informix_sessions¶
| Tags & Fields | Description |
|---|---|
| server ( tag) |
Informix server。 |
| sessions | セッション数。 Type: int | (gauge) Unit: count |
informix_dbspace¶
| Tags & Fields | Description |
|---|---|
| server ( tag) |
Informix server。 |
| dbspace ( tag) |
dbspace 名。 |
| total_pages | 総ページ数。 Type: int | (gauge) Unit: count |
| used_pages | 使用済みページ数。 Type: int | (gauge) Unit: count |
| free_pages | 空きページ数。 Type: int | (gauge) Unit: count |
| used_pct | 使用率。 Type: float | (gauge) Unit: percent |
informix_log¶
| Tags & Fields | Description |
|---|---|
| server ( tag) |
Informix server。 |
| log_type ( tag) |
logical または physical。 |
| total_pages | 総ページ数。 Type: int | (gauge) Unit: count |
| used_pages | 使用済みページ数。 Type: int | (gauge) Unit: count |
| free_pages | 空きページ数。 Type: int | (gauge) Unit: count |
| log_count | ログ数。 Type: int | (gauge) Unit: count |
| used_pct | 使用率。 Type: float | (gauge) Unit: percent |
カスタムメトリクス¶
カスタムメトリクスのフィールドは deep_metrics_command の出力によって決まります。表に列挙したフィールドは tag として扱われ、それ以外の key=value のうち数値は float | (gauge) field として送信され、数値でないものは tag として扱われます。数値 field がない場合は count=1 が補われ、単位は count になります。
| Measurement | Tags | Description |
|---|---|---|
informix_table_metric |
table, database, owner |
カスタムのテーブル単位メトリクス。 |
informix_session_metric |
session, user, database, state |
カスタムのセッションメトリクス。 |
informix_chunk_metric |
chunk, dbspace, status |
カスタムの chunk メトリクス。 |
informix_deep_metric |
metric, unit |
汎用 Informix カスタムメトリクス。 |