AIX Informix
AIX Informix input collects instance status, sessions, dbspace capacity, and log usage through onstat.
Configuration¶
[inputs]
# Global switch for middleware inputs.
enabled = true
[[inputs.informix]]
# Instance name, reported as the `instance` tag.
name = "informix"
# Whether to enable this Informix instance collection.
enabled = true
# Collection interval.
interval = "60s"
# Optional file loaded before collection to set instance environment variables.
env_file = ""
# Informix Server name.
server = "ol_informix"
# Optional custom metric command. Each output line should be `key=value`.
deep_metrics_command = ""
# onstat command path.
onstat = "onstat"
Command Dependencies¶
| Command | Description |
|---|---|
onstat - |
Collect Informix online status. |
onstat -g ses |
Collect session count. |
onstat -d |
Collect dbspace capacity. |
onstat -l |
Collect logical/physical log usage. |
deep_metrics_command |
Custom command that outputs key=value lines for custom metrics. |
Metrics¶
All metrics append host, input=informix, and instance=<name> tags.
informix¶
| Tags & Fields | Description |
|---|---|
| server ( tag) |
Informix server. |
| mode ( tag) |
Instance mode, such as On-Line, Quiescent, or Offline. |
| up | Whether the instance is online. Type: int | (gauge) |
informix_sessions¶
| Tags & Fields | Description |
|---|---|
| server ( tag) |
Informix server. |
| sessions | session count. Type: int | (gauge) Unit: count |
informix_dbspace¶
| Tags & Fields | Description |
|---|---|
| server ( tag) |
Informix server. |
| dbspace ( tag) |
dbspace name. |
| total_pages | Total pages. Type: int | (gauge) Unit: count |
| used_pages | Used pages. Type: int | (gauge) Unit: count |
| free_pages | Free pages. Type: int | (gauge) Unit: count |
| used_pct | Usage percentage. Type: float | (gauge) Unit: percent |
informix_log¶
| Tags & Fields | Description |
|---|---|
| server ( tag) |
Informix server. |
| log_type ( tag) |
logical or physical. |
| total_pages | Total pages. Type: int | (gauge) Unit: count |
| used_pages | Used pages. Type: int | (gauge) Unit: count |
| free_pages | Free pages. Type: int | (gauge) Unit: count |
| log_count | Log count. Type: int | (gauge) Unit: count |
| used_pct | Usage percentage. Type: float | (gauge) Unit: percent |
Custom Metrics¶
Custom metric fields are determined by deep_metrics_command output. Fields listed in the table are used as tags; numeric values in other key=value pairs are reported as int/float | (gauge) fields, and non-numeric values are reported as tags. If no numeric field exists, count=1 is added with unit count.
| Measurement | Tags | Description |
|---|---|---|
informix_table_metric |
table, database, owner |
Custom table-level metrics. |
informix_session_metric |
session, user, database, state |
Custom session metrics. |
informix_chunk_metric |
chunk, dbspace, status |
Custom chunk metrics. |
informix_deep_metric |
metric, unit |
Generic Informix custom metrics. |