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 可观测性工程
124
|
13
13.3 预见性地创建预测消耗告警
选择时间范围后,你可以立即设置一个触发器对你所关心的错误预算条件触发告警。最
容易设置的告警是零级告警(在你的整个错误预算用完时触发)
当错误预算用尽时会发生什么
当错误预算从正错误预算转变为负错误预算时,保障服务稳定性的优先级便要比上
线新功能高得多。准确叙述错误预算用尽后会发生什么则超出了本章的讨论范围,
但是从团队角度出发,预防错误预算用尽是第一要义。
将错误预算超支转化为直接的行动(比如暂停生产中的功能使用)。通过 SLO
型创建激励措施,以最大限度减少预算用尽后危及服务稳定性的行为。要深入分
析工程实践在这些情况下应如何改变以及如何设置适当的策略,建议可以阅读
Implementing Service Level Objectives
一书。
一个应对严峻问题的告警往往是需要提前一步通知到团队的。如果可以预见到错误预算
即将被用完,那么就有机会提前采取行动修复它,而不是任其发生。为了提高可靠性,
尽早修复最严重的错误源头是非常有必要的,优先级甚至高于任何新功能的发布。在可
持续地保障团队士气和稳定性方面,计划和预测是比英雄主义更好的方法。
因此,一个解决方案是追踪你的错误预算消耗率,并观察有可能消耗整个预算的急剧变
化。至少有两种模型可以用来触发高于零水平标志的消耗告警。第一种是选择一个非零
的阈值来发出告警。例如,你可以在你的剩余错误预算降到
30%
以下时发出告警,如
13-3
所示。
日期
错误预算剩余
30% 处发出错误预算消耗
简化的
告警
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