Skip to Content
可观测性工程
book

可观测性工程

by Charity Majors, Liz Fong-Jones, George Miranda
July 2023
Beginner to intermediate
270 pages
4h 48m
Chinese
China Machine Press
Content preview from 可观测性工程
111
12
使用 SLO 来提高可靠性
虽然可观测性和传统的监控可以共存,但是可观测性为监控带来了更复杂且具有补
充性的使用潜力。接下来的两章将向你展示如何通过可观测性和
SLO
Service-Level
Objective
,服务级别目标)提高系统可靠性。
在本章中,你将了解到传统基于阈值的监控方法给你的团队带来的常见问题、分布式系
统如何加剧这些问题以及如何使用基于
SLO
的监控方法来解决这些问题。我们会使用一
个真实的案例来展示如何使用
SLO
来代替传统的基于阈值触发的告警方式。在第
13
章,
我们将研究可观测性如何使你的基于
SLO
的告警具备可操作性以及更易于调试。让我们
首先了解监控和告警的作用以及以前对它们的做法。
12.1 传统监控方法造成危险的告警疲劳
在基于监控的方法中,告警往往测量最容易测量的东西。指标被用来追踪简单的系统状
态,这些状态可能表明服务的底层进程可能运行不佳,或者可能是一个问题相关的预测
性指标。这些状态可能会触发告警,例如,
CPU
占用超过
80%
、内存可用率低于
10%
磁盘空间快要满了、有超过
x
个线程在运行,或者其他任何一组简单的基础系统状况的
测量。
虽然这种简单的“潜在原因”测量很容易收集,但它们并不能产生有意义的告警供你采
取行动。
CPU
利用率的偏差也可能表明一个备份进程正在运行或一个垃圾收集器正在做
它的清理工作,又或者任何其他可能在一个系统上发生的现象。换句话说,这些情况可
能反映了诸多系统问题,而不仅是我们真正关心的那些问题。基于底层硬件配置的异常
告警往往会产生很高比例的误报。 ...
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

可观察性工程

可观察性工程

Charity Majors, Liz Fong-Jones, George Miranda
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9787111729099