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

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

by 조너선 슈나이더, 정병열
March 2022
Beginner to intermediate
348 pages
7h 5m
Korean
Hanbit Media, Inc.
Content preview from 자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴
123
2
장
애플리케이션 메트릭
예제
2-50
HTTP
메트릭만 허용하고 나머지는 모두 거부하는 필터
registry.config()
.meterFilter(MeterFilter.acceptNameStartsWith("http"))
.meterFilter(MeterFilter.deny());
2.17.2
메트릭 변형
미터 필터는 미터의 이름, 태그, 설명, 기본 단위를 변환할 수 있다. 가장 일반적인 사용법은 애
플리케이션 공통 태그 추가다. 범용 라이브러리 제작자는 사용자가 자신의 라이브러리를 구체
적으로 어떻게 측정하기 원하는지 알지 못한다. 모니터링 시스템이 메트릭을 식별하는 방식,
배포 환경, 코드가 실행될 인스턴스, 애플리케이션 버전 등에 따라 측정 요건은 매우 달라진다.
애플리케이션에 공통 태그를 추가하고 스트리밍할 수 있다면 저수준 라이브러리 작성자는 측
정할 부분에만 태그를 추가해 전체적인 단순성을 유지할 수 있다.
RabbitMQ
클라이언트를 예
로 들면 큐 이름이 이러한 측정 요소에 해당한다. 애플리케이션 개발자는 그 외 식별 정보를 더
해 저수준 라이브러리의 측정 정보를 보강할 수 있다.
[예제
2
-
51
]은 변형 필터 예시다. 이 필터는 이름이 ‘
test
’로 시작하는 미터에 접두어와 태그를
추가한다.
예제
2-51
미터 필터 변형
MeterFilter ...
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