모든 메트릭에 태그 목록을 추가한다. 애플리케이션명, 호스트, 지역 등을 나타내는 공통 태그
를 추가하면 좋다.
ignoreTags
(
String
...)
모든 미터에서 특정 태그 키를 제외한다. 태그의 카디널리티가 너무 높아져 모니터링 시스템에
부담을 주거나 비용이 상승하는 순간이 왔을 때 모든 측정 지점을 한번에 수정하기 어렵다. 이
런 상황에 특히 쓸모가 많은 빌더다.
replaceTagValues
(
String
tagKey
,
Function
<
String
,
String
>
replacement
,
String
...
exceptions
)
특정 태그키의 값을 매핑 규칙을 이용해 변경한다. 태그값 중 일부를 교체해 총 카디널리티를
줄이는 용도로 사용할 수 있다.
renameTag
(
String
meterNamePrefix
,
String
fromTagKey
,
String
toTagKey
)
지정한 접두어로 시작하는 모든 메트릭에서 태그키를 변경한다.
측정 메트릭과 태그가 과도하게 많은 상태라면 그중 일부 태그만 제외하는 조치를 취해도 획기
적으로 비용을 절감할 수 있다. 이번 절 도입부에 언급한,
API
엔드포인트 한 개당 수만 개 태
그를 생성했던 넷플릭스의 측정 시스템도 마찬가지다.
2.17.3
분포 통계 설정
Timer
,
LongTaskTimer
,
DistributionSummary
는 기본적으로 카운트, 합계, 최댓값 통계를
제공한다. 필터를 이용하면 분포 통계 정보도 ...
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.