콘텐츠로 이동

화산 엔진 PostgreSQL

화산 엔진 PostgreSQL 지표를 보여 주며, CPU 사용률, TPS, 데드락 등을 포함합니다.

설정

Func 설치

Guance 통합 - 확장 - 관리형 Func 활성화를 권장합니다. 모든 사전 조건이 자동으로 설치되므로 스크립트 설치를 계속하세요.

Func를 직접 배포하려면 Func 직접 배포를 참고하세요

설치 스크립트

안내: 요구 사항을 충족하는 화산 엔진 AK를 미리 준비해 주세요. 간단히 하려면 전역 읽기 전용 권한 ReadOnlyAccess를 바로 부여해도 됩니다.

PostgreSQL 클라우드 리소스의 모니터링 데이터를 동기화하려면, 해당 수집 스크립트인 「Guance 통합(화산 엔진-PostgreSQL 수집)」(ID: integration_volcengine_postgresql)을 설치합니다.

【설치】를 클릭한 뒤, 화산 엔진 AK와 화산 엔진 계정명을 입력합니다.

【시작 스크립트 배포】를 클릭하면 시스템이 자동으로 Startup 스크립트 세트를 생성하고, 해당 시작 스크립트를 자동으로 구성합니다.

활성화한 뒤에는 「관리 / 자동 트리거 설정」에서 해당 자동 트리거 설정을 확인할 수 있습니다. 【실행】을 클릭하면 주기 시간을 기다리지 않고 즉시 한 번 실행할 수 있습니다. 잠시 후 실행 작업 기록과 해당 로그를 확인할 수 있습니다.

해당 로그도 수집하려면, 관련 로그 수집 스크립트도 활성화해야 합니다. 청구서도 수집하려면 클라우드 청구서 수집 스크립트를 활성화해야 합니다.

검증

  1. 「관리 / 자동 트리거 설정」에서 해당 작업에 대한 자동 트리거 설정이 존재하는지 확인하고, 동시에 작업 기록과 로그를 확인해 이상 여부를 점검합니다.
  2. Guance의 「인프라 / 사용자 정의」에서 자산 정보가 있는지 확인합니다.
  3. Guance의 「지표」에서 해당 모니터링 데이터가 있는지 확인합니다.

지표

  • 지표 집합 volcengine_vcm_rds_postgresql
지표명 지표 설명 단위
replication_delay 주-대기 복제 지연 second
db_conflicts 초당 트랜잭션 충돌 수 count/second
replication_flush_lag 주-대기 flush_lag second
replication_write_lag 주-대기 write_lag second
unarchived_wal_segments_count 아카이브 대기 중인 WAL 파일 개수 count
active_connection 활성 연결 수 count
idle_connection 유휴 연결 수 count
idle_in_txn_connection 비활성 트랜잭션 수 count
rows_inserted 초당 삽입 행 수 count/second
rows_updated 초당 업데이트 행 수 count/second
rows_deleted 초당 삭제 행 수 count/second
slow_queries 초당 느린 쿼리 수 count/second
slow_queries_increment 30초마다의 느린 쿼리 수 count
total_connection 총 연결 수 count
connection_used_util 연결 수 사용률 percent
tps 초당 트랜잭션 수 count/second
commits_per_second 초당 트랜잭션 커밋 수 count/second
rollbacks_per_second 초당 트랜잭션 롤백 수 count/second
longest_transaction_exec_time 가장 긴 트랜잭션 실행 시간 second
db_max_age_xids 데이터베이스 최대 age xids none
locks_ungranted_count 락 대기 수 count
read_only_status 전역 읽기 전용 상태 none
shared_buffers_blks_hit 초당 버퍼 캐시 적중 수 count/second
shared_buffers_blks_hit_rate 버퍼 캐시 적중률 percent
locks_granted_count 부여된 락 수 count
error_queries 초당 오류 쿼리 수 count/second
error_queries_increment 30초마다의 오류 쿼리 증가량 count
instantaneous_slow_queries 순간 느린 쿼리 수 count
dead_locks_count 데이터베이스 데드락 수 count
prepared_xacts_count 2PC 트랜잭션 수 count
locks_ungranted_count_over_1h 1시간 이상 락 대기한 쿼리 수 count
db_fetched_returned_ratio 데이터 반환과 스캔의 비율 percent
qps 초당 쿼리 수 count/second
slow_queries_custom_increment 최근 n초간의 느린 쿼리 수 count
oldest_prepared_xacts_duration 2PC 트랜잭션의 최장 지속 시간 second
rows_fetched 초당 테이블 재조회 수 count/second
rows_returned 초당 테이블 스캔 행 수 count/second
transaction_success_rate 트랜잭션 성공률 percent
proxy_connection 프록시 연결 수 count
proxy_qps 프록시 QPS count/second
proxy_cpu_util 프록시 CPU 사용률 percent
proxy_mem_util 프록시 노드 메모리 사용률 percent
cpu_util CPU 사용률 percent
mem_util 메모리 사용률 percent
disk_util 디스크 사용률 percent
user_cpu_util 사용자 영역 CPU 사용률 percent
sys_cpu_util 시스템 영역 CPU 사용률 percent
cache_mem_usage 캐시 메모리 사용량 bytes(si)
rss_mem_usage RSS 메모리 사용량 bytes(si)
disk_usage 디스크 사용량 bytes(si)
log_disk_usage 실행 로그 디스크 사용량 bytes(si)
wal_disk_usage WAL 로그 디스크 사용량 bytes(si)
base_disk_usage 데이터 파일 디스크 사용량 bytes(si)
temp_file_disk_usage 임시 파일 디스크 사용량 bytes(si)
network_receive_throughput 네트워크 입력 트래픽 bytes/second(si)
network_transmit_throughput 네트워크 출력 트래픽 bytes/second(si)
db_size 데이터베이스 크기 bytes(si)
db_expansion_rate 데이터베이스 팽창률 bytes/second(si)
slot_max_wal_accumulation 복제 슬롯 최대 WAL 누적량 bytes(si)
inactive_slot_count 비활성 상태 복제 슬롯 개수 count
slot_max_wal_accumulation_disk_ratio 복제 슬롯 최대 WAL 누적량의 디스크 비율 percent
db_max_table_size 데이터베이스 최대 테이블 크기 bits(iec)

객체

수집된 화산 엔진 PostgreSQL 객체 데이터 구조이며, 「인프라-사용자 정의」에서 객체 데이터를 확인할 수 있습니다

{
    "fields": {
      "address_object": "xxxxxxxx",
      "charge_detail": "xxxxxxxx",
      "create_time": "2025-11-06T07:34:07.000Z",
      "dbengine_version": "PostgreSQL_14",
      "instance_status": "Running",
      "message": "xxxxxxxx",
      "node_spec": "rds.postgres.1c2g",
      "storage_space": "20",
      "storage_type": "LocalSSD",
      "subnet_id": "subnet-3i6glfgpn5fr45r0lrqxxxxxxxx",
      "vpc_id": "vpc-3qdy52316jny87prmlxxxxxxxx"
    },
    "measurement": "volcengine_postgresql",
    "tags": {
      "account_name": "pdsa-dev",
      "cloud_provider": "volcengine",
      "instance_id": "postgres-588f06xxxxxxxx",
      "instance_name": "fyb-dev",
      "instance_type": "HA",
      "name": "postgres-588f06xxxxxxxx5",
      "project_name": "default",
      "region_id": "cn-shanghai",
      "zone_id": "cn-shanghai-a"
    }
  }
]

문서 평가

이 페이지가 도움이 되었나요?