Skip to Content
피처 스토어를 활용한 머신러닝 시스템 구축
book

피처 스토어를 활용한 머신러닝 시스템 구축

by Jim Dowling
November 2025
Beginner to intermediate
508 pages
8h 36m
Korean
O'Reilly Media, Inc.
Content preview from 피처 스토어를 활용한 머신러닝 시스템 구축

제14장. 관측 가능성과 모니터링 AI 시스템

이 작품은 AI를 사용하여 번역되었습니다. 여러분의 피드백과 의견을 환영합니다: translation-feedback@oreilly.com

운이 좋게도 AI 시스템이 작고 움직이는 부품이 적다면, 한 사람이 시스템을 충분히 이해하여 문제를 신속하게 감지, 진단 및 수정할 수 있을 것입니다. 그러나 모든 성공적인 소프트웨어 시스템은 복잡성이 증가하며(기능 추가!), 운영상의 문제를 감지하고 진단하기 위해서는 시스템 지원이 필요합니다. 간단히 말해, AI 시스템에는 관측 가능성과 모니터링이 필요합니다.

관측성은 모든 것이 구축되는 두 가지 기둥, 즉 메트릭과 로깅으로 이루어집니다. 메트릭은 인프라 서비스와 머신러닝 파이프라인의 성능을 수치로 측정하는 지표입니다. 일반적인 메트릭의 예로는 모델 성능, 데이터 품질, 지연 시간, 처리량, KPI, 비용 등이 있습니다. 로그는 인프라 서비스와 머신러닝 파이프라인에서 생성되는 구조화/비구조화 텍스트 출력물 및 추적으로, 내부 상태, 오류 추적, 세부적인 성능에 대한 통찰력을 제공합니다. 메트릭은 SLO(서비스 수준 목표)와 탄력적인 AI 시스템의 구성 요소로, 사용 자원을 자동으로 확장/축소합니다. 로그는 오류 탐지 및 디버깅부터 LLMs의 오류 분석, 모델 및 기능 모니터링에 이르기까지 모든 작업의 기초가 됩니다.

이 장에서는 이 책에서 다루는 세 가지 유형의 AI 시스템 모두에 대한 관측 가능성과 모니터링을 다룹니다. 먼저 배치 ML 시스템과 실시간 ML 시스템의 로깅 및 메트릭을 살펴봅니다. 특징 및 모델 모니터링을 위해 각각 변환된 특징 값과 변환되지 않은 특징 값을 별도로 로깅해야 함을 확인할 것입니다. 다음으로 에이전트형 AI 시스템의 관측 가능성을 살펴봅니다. 여기서 로깅은 신뢰할 수 있는 에이전트 구축의 핵심 기법인 오류 분석과 평가의 기초가 됩니다. 또한 가드레일이 LLMs의 공격적 응답, 개인 식별 정보(PII) 유출, 탈옥(jailbreak)을 모니터링하는 데 어떻게 도움이 되는지 살펴볼 것입니다.

ML 모델을 위한 로깅과 메트릭스

관측 가능성은 마이크로서비스 커뮤니티에서 확립된 용어로, 메트릭스, 로깅, 추적(단일 호출이 수십~수백 개의 마이크로서비스를 거칠 수 있으므로 분산 추적이 필요함)을 의미합니다. MLOps에서 관측 가능성은 주로 메트릭과 로그에 초점을 맞춥니다. 추적은 에이전트에 중요하며, 여기서 우리는 LLMs 및 도구 호출을 기록하지만, 이는 (아직) 분산 추적이 아니므로 AI 시스템의 관측 가능성을 메트릭과 로그로 정의합니다.

그림 14-1은 추론 파이프라인 내 모델(배치, 온라인 또는 LLM/에이전트)이 메트릭과 로그를 내보내는 방식을 보여줍니다.

Diagram illustrating how a model processes prediction requests and uses metrics for autoscaling and bottleneck identification, while logs aid monitoring, debugging, and explaining model decisions.
그림 14-1. 배치 , 온라인 및 LLMs의 출력 메트릭과 로그. 메트릭은 지연 시간과 처리량에 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Scikit-Learn과 PyTorch를 활용한 실전 머신러닝

Scikit-Learn과 PyTorch를 활용한 실전 머신러닝

Aurélien Géron
실무자를 위한 그래프 데이터 활용법

실무자를 위한 그래프 데이터 활용법

마티아스 브뢰헬러, 데니즈 고즈넬

Publisher Resources

ISBN: 0642572279523