OCP metering 설치

OCP 2020. 4. 9. 11:27

 

# OCP의 metering은 OperatorHub를 통해서 설치함.

 - openshift-metering namespace(project)에 설치

 - 설치전 PV 2개 생성 필요( RWX 1, RWo 1 ) -> public cloud storage 연결 가능( aws, azure, gcp )

 

# OperatorHub 화면

# 설치후 Administration 하위 Chargeback 메뉴 생성됨.

 

# metering report 구성

  - metering report : 리포트 내용(query), 리포트 대상 기간 및 생성 주기

  - metering report query : report query(리포트 내용)

  - metering datasource : prometheus metric(수집 대상 metric 지정)

설치하면 기본적으로 45개의 report query, 32개의 datasource가 생성됨

datasource가 생성되면 metering oprator간 prometheus로 부터 metric 정보를 가져와서 테이블에 저장함(1분 간격)

 

 

# report 생성

 1. report 대상 확인 및 기간 정의

   - report query의 내용을 보면 대상 데이터 및 report로 보여지는 컬럼 정보를 확인 할 수 있음

   - 

  

 

# 참고 링크

operator-metering github에는 custom report 생성 관련 내용도 있음.

※ RedHat Doc. : https://docs.openshift.com/container-platform/4.3/metering/metering-about-metering.html

※ operator-metering github : https://github.com/operator-framework/operator-metering

 

 

'OCP' 카테고리의 다른 글

oc command tab completion  (0) 2020.06.17
OCP(OpenShift Container Platform) cli 접근  (0) 2020.03.31
Posted by jerymy
,