Skip to Content
자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴
book

자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴

by 조너선 슈나이더, 정병열
March 2022
Beginner to intermediate
348 pages
7h 5m
Korean
Hanbit Media, Inc.
Content preview from 자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴
72
자바 마이크로서비스를 활용한
SRE
아틀라스용 카운터 메트릭은 마이크로미터 쪽에서 비율로 게시한다. [예제
2
-
17
]은 아틀라스
의 카운터 예시다.
y
축은 비율을 나타낸다.
예제
2-17
아틀라스의 카운터 비율
name,queue.insert,:eq
일부 모니터링 시스템은 카운터를 누적 통계로 받고 화면에 출력하는 순간만 비율로 변환한다.
누적 통계를 비율로 변환하려면 [예제
2
-
18
]처럼
rate
함수를 써야 한다. 이 함수는 거의 모
든 모니터링 시나리오에서 카운터에 접근할 때마다 사용한다.
예제
2-18
프로메테우스의 카운터 비율
rate(queue_insert_sum[2m])
특정 메서드에서 발생하는 에러나 메서드 호출 성공 횟수를 기록할 때는 타이머를 쓰는 편이
훨씬 낫다. 타이머는 작업 레이턴시에 대한 많은 정보를 제공하며 여기에 카운터도 포함되어
있다.
TIP
카운터, 타이머, 분산 요약 중 어느 것을 쓸까
시간으로 잴 수 있는 것은 절대 횟수로 측정하지 않는다. 기본 단위가 시간이 아니라면 그 다음 원칙을 따른
다. 분산 요약으로 기록할 수 있는 것은 절대 횟수로 측정하지 않는다.
2.10
타이머
타이머는 단시간 동안 레이턴시를 측정하고 특정 이벤트의 빈도를 측정할 때 사용한다. 모든
Timer
구현은 다음과 같은 통계를 기본적으로 보고한다.
카
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

처음 시작하는 파이썬: 파이썬 패키지를 활용한 모던 컴퓨팅 입문

처음 시작하는 파이썬: 파이썬 패키지를 활용한 모던 컴퓨팅 입문

최길우, 빌 루바노빅

Publisher Resources

ISBN: 9791162245286