AIX Informix
AIX Informix input 通过 onstat 采集实例状态、session、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 |
采集 session 数。 |
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 | session 数量。 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 |
自定义 session 指标。 |
informix_chunk_metric |
chunk, dbspace, status |
自定义 chunk 指标。 |
informix_deep_metric |
metric, unit |
通用 Informix 自定义指标。 |