WEBBOOK CHAPTER

AI 비용 폭탄을 막는 법: 15장 여러 공급자의 비용을 하나의 장부로 정규화한다

15장 여러 공급자의 비용을 하나의 장부로 정규화한다

cloud, AI API, SaaS, data platform은 column 이름과 할인 표현이 다르다. FOCUS는 비용·사용 data를 공급자 중립 형태로 정규화하려는 공개 specification이다. 이 책에서는 최소 공통 column을 먼저 만든다.


BilledCost, EffectiveCost, Currency
ServiceName, SkuName, ChargeCategory
BillingAccountId, SubAccountId
ChargePeriodStart, ChargePeriodEnd
Tags: feature, tenant, environment, owner

application 요청 영수증과 재무 장부를 project, feature, 시간 bucket으로 조정한다. 두 합계가 완전히 같지 않을 수 있다. sampling 지연, 환율, credit, 세금, invoice 조정 때문이다. 차이를 숨기지 않고 reconciliation report에 원인을 분류한다.

비용 allocation tag가 없는 공유 자원은 억지로 정확한 척하지 않는다. request 수, compute time, storage byte 같은 driver로 배분하고 allocation_method를 남긴다. owner 없는 비용은 unallocated로 보여 주어 개선 대상으로 만든다.