PostgreSQL 기본 검사 및 정책
에이전트 클라이언트 수집기는 상태 모니터링에 대해 다음과 같은 기본 검사 및 정책을 제공합니다.PostgreSQL
| 유형 | 확인 | 설명 | 명령 |
|---|---|---|---|
| 이벤트 | postgresql.check-alive | 데이터베이스 상태에 대한 경보를 트리거합니다 PostgreSQL . | commonchecks check-postgres-alive -d {{.labels.params_database}} -p {{.labels.params_port}} -H {{.labels.params_host}} |
| 이벤트 | postgresql.check-connections | 구성된 임계치를 기준으로 데이터베이스의 PostgreSQL 총 연결 로드에 대한 경보를 트리거합니다. | commonchecks check-postgres-connections -d {{.labels.params_database}} -c {{.labels.params_critical}} -p {{.labels.params_port}} -H {{.labels.params_host}} -w {{.labels.params_warning}} -a {{.labels.params_use_percentage}} |
| 메트릭 | postgresql.metric-active-connections | 데이터베이스의 총 활성 연결에 대한 메트릭을 PostgreSQL 제공합니다. | commonchecks metric-postgres-connections -p {{.labels.params_port}} -d {{.labels.params_database}} -H {{.labels.params_host}} |
| 메트릭 | postgresql.metric-dbsize | 각 서버 PostgreSQL 데이터베이스의 총 크기에 대한 메트릭을 제공합니다. | commonchecks metric-postgres-dbsize -d {{.labels.params_database}} -H {{.labels.params_host}} -p {{.labels.params_port}} |
| 메트릭 | postgresql.metric-locks | 데이터베이스/테이블의 잠금에 대한 메트릭을 PostgreSQL 제공합니다. | commonchecks metric-postgres-locks -p {{.labels.params_port}} -d {{.labels.params_database}} -H {{.labels.params_host}} |
| 메트릭 | postgresql.metric-relation-size | 서버의 데이터베이스 테이블 크기에 대한 메트릭을 제공합니다. | commonchecks metric-postgres-relation-size -p {{.labels.params_port}} -l {{.labels.params_limit}} -H {{.labels.params_host}} -d {{.labels.params_database}} |
| 메트릭 | postgresql.metric-statsbgwriter | 버퍼 할당과 관련된 메트릭을 제공합니다. | commonchecks metric-postgres-statsbgwriter -p {{.labels.params_port}} -d {{.labels.params_database}} -H {{.labels.params_host}} |
| 메트릭 | postgresql.metric-statsdb | 커밋/롤백/튜플 트랜잭션 /교착 상태/쿼리 상충 수와 관련된 메트릭을 제공합니다. | commonchecks metric-postgres-statsdb -d {{.labels.params_database}} -H {{.labels.params_host}} -p {{.labels.params_port}} |
| 메트릭 | postgresql.metric-statsio | 테이블 기반 메트릭 관련 인덱스 읽기/총 적중 수를 테이블 인덱스로 제공합니다. | commonchecks metric-postgres-statsio -s {{.labels.params_scope}} -H {{.labels.params_host}} -p {{.labels.params_port}} -d {{.labels.params_database}} |
| 메트릭 | postgresql.metric-statstable | CRUD 작업과 관련된 메트릭을 제공합니다. | commonchecks metric-postgres-statstable -d {{.labels.params_database}} -H {{.labels.params_host}} -s {{.labels.params_scope}} -p {{.labels.params_port}} |