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 |
논리/물리 로그 사용량을 수집합니다. |
deep_metrics_command |
사용자 정의 명령으로, key=value 행을 출력하여 사용자 정의 메트릭을 수집합니다. |
메트릭¶
모든 메트릭에는 host, input=informix, instance=<name> 태그가 추가됩니다.
informix¶
| 태그 및 필드 | 설명 |
|---|---|
| server ( tag) |
Informix 서버. |
| mode ( tag) |
인스턴스 모드. 예: On-Line, Quiescent, Offline. |
| up | 인스턴스의 온라인 여부. Type: int | (gauge) |
informix_sessions¶
| 태그 및 필드 | 설명 |
|---|---|
| server ( tag) |
Informix 서버. |
| sessions | 세션 수. Type: int | (gauge) Unit: count |
informix_dbspace¶
| 태그 및 필드 | 설명 |
|---|---|
| server ( tag) |
Informix 서버. |
| 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¶
| 태그 및 필드 | 설명 |
|---|---|
| server ( tag) |
Informix 서버. |
| 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 | 설명 |
|---|---|---|
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 사용자 정의 메트릭. |