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

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

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
26
|
第
3
章
3.1
 怎样才能创建优秀的告警
如果你的各种告警有时有用、有时没用、有时根本毫无意义,那你该如何重构它们使其变
好呢?好的告警到底是什么样的呢?
在回答这些问题之前,我们先来做一下区分。我发现当人们谈起告警时,根据语境,他们
说的其实是两回事。
告警意味着把某人叫醒
这类告警要求人们立即采取行动,否则系统就会停机或一直处于停机状态。它可能是电
话、短信或警报。例如你的所有
Web
服务器都不可用了,并且公司网站主站点也已经
无法访问了。
告警意味着仅供参考
这类告警不要求人们立即采取行动,但是当其发生时应该通知某人。例如:一个夜间备
份任务失败。
后者可能会导致前者的发生。例如,如果系统有自动修复能力,那么自动修复动作可能只
会在日志文件中留下一条信息。如果自动修复失败,那你可能要给待命值班的人发送一条
信息,期望他们立即采取行动。
就目的而言,第二种类型的告警并非真正的告警,它是一条信息。本节将主要讨论第一种
类型。告警应唤起紧迫感,并要求接收者立即采取行动。其他所有事情最终都可以归结为
一个日志条目、一条发送到你们内部聊天室的消息或一个自动生成的凭据。
鉴于此理解,现在再来看看开头提出的那个问题:怎样才能创建优秀的告警?我总结了以
下
6
条实践,它们是创建优秀告警的关键:
•
停止使用电子邮件发送告警;
•
撰写运行手册;
•
任意的静态阈值不是唯一的方法;
•
删除告警和优化告警;
•
使用维护周期;
•
优先尝试自动修复。
接下来将深入研究上面这些实践会对你的告警策略产生怎样的影响,以及如何利用这些实
践改进你的告警。 ...
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