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

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

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
77
第 8 章
服务器监控
许多监控工作始于系统管理员
/
运维团队,因此难怪许多人会立即将“监控”与“系统管
理员所做的事情”联系起来。这很不幸,因为我们已经看到,除了服务器上发生的事情之
外,还有很多事情需要监控。
当然,误解中有一个事实:服务器上确实发生了很多事情!即使是在一个
serverless
架构
中,仍然有一些服务器在底层提供平台和所有使架构工作的东西。本章将深入研究目前服
务器上常见的服务、提供的指标和日志,以及如何理解它们。
开始前要说明一点:本章将
Linux
作为假定的操作系统,因为这是我最熟悉的。对于将这
些经验应用于
Windows
的读者来说,接下来涉及的几乎所有内容同样适用于
Windows
,尽
管你的工具有所不同。
8.1
 标准操作系统指标
全书中,我始终反对痴迷于标准操作系统指标(
CPU
、内存、负载、网络和磁盘),而且
理由很充分:使用它们来开始监控工作,只能为你的主要关注点(你的应用程序在正常工
作)提供最少的信号。为了知道事物是否正常工作,你必须从顶层开始。
然而,这并不是说这些指标一无是处。事实上,在恰当的场景中使用时,比如用于诊断和故
障排除,它们也可以成为帮手。在这种情况下,这些指标是你拥有的一些最有用的指标。
对于如何使用这些指标,我的建议是为你拥有的每个系统自动记录它们,但是不要在它们
上面设置告警(除非你有充分的理由)。几乎所有的监控工具都默认收集这些数据,而基
78
|
第
8
章
本不需要你的干预。因此,与其讨论如何收集它们,不如讨论它们的含义以及如何使用。
在论述中,我会使用
Linux ...
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