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

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

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
38
|
第
4
章
下一次是
4.1
呢?可以想象,事情会变得很杂乱。
Nagios
和类似的工具已经构建了一些机制,以
震荡检测
的形式来消除这类特殊问题的干
扰。这种方法简单而又相当天真:指定时间段内在
OK
和告警状态之间来回摆动次数过多
的检查将被监控工具消除。我认为像震荡检测这样的机制只是用来掩盖糟糕的告警机制,
如果有更好的方法呢
?
4.2
 数学来拯救
现代监控栈的核心原则之一是不要丢弃监控服务提供的指标。过去,
Nagios
不会记录它从
检查中获取的值,所以你不知道趋势是什么,无论是上周还是
5
分钟前。值得庆幸的是,
如今在
TSDB
中记录这些数据已经很常见了,即使使用
Nagios
也是如此(参见
Graphios
和
pnp4nagios
)。经常被忽略的一点是保存数据这一行为给通过使用统计数据来检测问题提
供了许多新的可能性。
当前使用的每个主流的
TSDB
都支持基础的统计。它们的配置和用法各不相同,本章所要
讨论的是统计本身,而不是它们在特定工具中的使用。
如果你已经习惯了运行检查的
Nagios
模型,那么需要稍微改变一下想法。不是让监控系统
在收集数据的同时还要根据设置的阈值去执行检查(这是典型的
Nagios
行为),而是将它
们解耦为两个单独的功能。
我们需要某些组件收集数据并定期将其写入
TSDB
中(我非常喜欢出于这个目的来收集
数据)。另外,我们不会让
Nagios
直接针对主机去运行平均负载检查,而是针对存储在
TSDB
中的指标来运行。你需要为此准备一个不同的检查脚本,该脚本用于查询你选择的
TSDB
(参考
Nagios+Graphite ...
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