Skip to Content
监控运维实践:原则与策略
book

监控运维实践:原则与策略

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
25
第 3 章
告警、待命值班以及事件管理
告警是监控中最关键的部分之一,
你肯定想创建优秀的告警。不知为何,基础设施好像总
是喜欢在半夜出现问题。为什么总是在凌晨
3
点停机?为什么不能在某个周二的下午两点
停机?没有告警,我们就得日复一日地盯着图表看,因为有太多东西可能会出错,而且随
着系统越来越复杂,这样做根本行不通。
我们都同意告警是监控系统的一个重要功能。但是有时会忘记监控的目的不仅仅是发送告
警。下面是我们对监控的定义:
监控是长期观察并检查一个系统及其组件的行为和输出的活动。
告警仅仅是实现这个目标的一种途径。
创建优秀的告警比看上去更难。系统指标倾向于尖峰型,所以在原始数据点上创建告警往
往会产生大量的误报。为了解决这个问题,需要经常应用滚动平均数来平滑数据(例如,
把
5
分钟数据点的值平均到一个数据点上)。很不幸,这又会导致我们丢失粒度,并且偶
尔会错过重要事件。没有赢家,是不是?
告警如此难以做好的另一个原因是你常常想把它们发送给人类,而人类的注意力是有限
的。他们宁愿关注自己选择的问题,也不愿关注监控系统发送的一条关于什么东西着火了
的短信。每次收到告警,监控系统都会分散我们的注意力。
本章首先会介绍几条关于创建更好的告警的建议,然后会探讨待命值班给人们带来的考验
与折磨,最后会说明一些关于事件管理以及事后处理的内容。
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

Java数据科学实战

Java数据科学实战

Michael R. Brzustowicz, PhD
可编程网络自动化

可编程网络自动化

Jason Edelman, Scott S. Lowe, Matt Oswalt
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115550750