Skip to Content
Kafka权威指南
book

Kafka权威指南

by Neha Narkhede, Gwen Shapira, Todd Palino
January 2018
Beginner to intermediate
234 pages
7h 8m
Chinese
Posts & Telecom Press
Content preview from Kafka权威指南
监控
Kafka
161
没有监控
Java
应用程序的经验,那么可以考虑使用第三方的监控服务。如果采用了这种方
式,那就需要从服务供应商那里购买监控服务,由他们提供监控代理、度量指标收集点、
存储、图形化和告警。服务供应商可以搭建监控代理,并提供后续的服务支持。
找到
JMX
端口
broker
JMX
端口作为整个
broker
配置信息的一部分保存在
Zookeeper
上。所以,如果要通过编程的方式访问
Kafka
JMX
,比如管理工具需要
在没有端口配置的情况下连接到
JMX
,那么可以从
Zookeeper
上获取端口
信息。
/brokers/ids/<ID>
节点包含了
JSON
格式的
broker
信息,里面有
JMX
对应的主机名(
hostname
)和端口(
jmx_port
)。
10.1.2
 内部或外部度量
JMX
接口提供的是内部度量指标,它们由被监控的应用程序生成。对于很多内部度量来说
(比如各个请求阶段的时间),使用内部度量指标是最好的选择。没有什么能比应用程序更
加了解自己了。还有一些度量指标,比如请求的整体时间、某种请求类型的可用性,可以
在应用程序外部进行度量。也就是说,这些度量指标是由客户端或其他第三方应用(对于
我们来说就是指
Kafka broker
)提供的。另外也有一些度量指标,比如可用性(
broker
否可达)或延迟(请求需要的时间)。这些度量指标为被监控的应用程序提供了很有用的
外部视图。
网站健康监控就是我们所熟知的一种外部度量。一个正常运行的
Web
服务器能够正常处理
请求,它向监控系统发送度量指标,一切看起来都很好。不过 ...
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

精通機器學習

精通機器學習

Aurélien Géron
精通特征工程

精通特征工程

Alice Zheng, Amanda Casari
高效能PYTHON程式設計

高效能PYTHON程式設計

Micha Gorelick, Ian Ozsvald

Publisher Resources

ISBN: 9787115473271