모니터링이 정착되면 거의 실시간에 가깝게 시스템을 관찰할 수 있다. 모니터링 기술은 일반적
으로 [그림
8
-
6
]에 보이듯 사전 정의 메트릭과 로그를 수집하는 기술적 솔루션을 동반한다.
애플리케이션
모니터링 툴시각화
메트릭 수집
메트릭 조회
메트릭 수집
인프라스트럭처인프라스트럭처
그림
8-6
메트릭 수집과 조회
메트릭은 시시각각 변하는 시스템의 속성을 수치로 나타낸 값이다. 최대 가용 자바 힙 메모리,
총 가비지 수집량 등 다양한 지표가 모니터링에 사용된다. [표
8
-
6
]은 시스템 모니터링에 주로
쓰이는 메트릭 타입들이다.
표
8-6
일반적인 메트릭 타입
메트릭설명
카운터(
Counter
)정수로 표현된 증분 누적 수치
타이머(
Timer
)이벤트의 횟수와 소요 시간을 함께 측정하는 메트릭
게이지(
Gauge
)임의로 등락하는 단일 수치
히스토그램(
Histogram
)데이터 스트림 내부의 값 분포치
미터(
Meter
)일련의 이벤트가 발생하는 비율
메트릭을 취급하는 자바 라이브러리는 대표적으로 마이크로프로파일 메트릭, 스프링 부트 액
추에이터, 마이크로미터
Micrometer
등이 있다. 프로메테우스
Prometheus
37
처럼 메트릭을 수집하고
검색하는 툴을 함께 활용하면 더욱 일목요연하게 시스템의 행동을 조망할 수
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.
O’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
I 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
I’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
I'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.