AIX IHS
AIX IHS input 支持通过 Apache/IHS mod_status 采集 worker、访问量和 scoreboard;未配置 status_url 时通过 apachectl -t 做存活和配置检查。
配置¶
[inputs]
# 中间件 input 总开关。
enabled = true
[[inputs.ihs]]
# 实例名,会作为 instance tag。
name = "ihs"
# 是否启用该 IHS 实例采集。
enabled = true
# 采集间隔。
interval = "60s"
# 可选,采集前加载实例环境变量。
env_file = ""
# apachectl 命令路径。
apachectl = "/opt/IBM/HTTPServer/bin/apachectl"
# mod_status auto 输出地址。
status_url = "http://127.0.0.1/server-status?auto"
命令依赖¶
| 命令 | 说明 |
|---|---|
GET <status_url> |
推荐。采集 server-status?auto 指标。 |
apachectl -t |
未配置 status_url 时检查 IHS 配置和存活。 |
指标¶
所有指标都会追加 host、input=ihs、instance=<name> 标签。
ihs¶
| Tags & Fields | Description |
|---|---|
| up | IHS 是否可用。 Type: int | (gauge) |
| status_code | status_url HTTP 状态码。Type: int | (gauge) |
| busy_workers | BusyWorkers。 Type: int | (gauge) Unit: count |
| idle_workers | IdleWorkers。 Type: int | (gauge) Unit: count |
| total_accesses | Total Accesses。 Type: int | (count) Unit: count |
| total_kbytes | Total kBytes。 Type: int | (count) Unit: digital,KB |
| uptime_seconds | IHS uptime。 Type: int | (gauge) Unit: time,s |
| scoreboard_waiting | 等待连接 worker 数。 Type: int | (gauge) Unit: count |
| scoreboard_starting | 启动中 worker 数。 Type: int | (gauge) Unit: count |
| scoreboard_reading | 读取请求 worker 数。 Type: int | (gauge) Unit: count |
| scoreboard_sending | 发送响应 worker 数。 Type: int | (gauge) Unit: count |
| scoreboard_keepalive | KeepAlive worker 数。 Type: int | (gauge) Unit: count |
| scoreboard_open_slot | open slot 数。 Type: int | (gauge) Unit: count |