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

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

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
统计入门
|
39
4.4
 平均值和平均数
平均值,通常称为平均数(技术上称为
算术平均值
),用于在不检查数据集中的每个单一
条目的情况下确定数据集大体是什么样子。计算平均值很容易:将数据集中所有的数字相
加,然后除以它的条目数量。
时间序列中一个常用的平均法是
移动平均法
。它不是获取整个数据集并计算平均值,而是
在新数据点到达时计算平均值。这个处理过程附带产生的效果是它让尖峰图形变得
平滑
。
TSDB
中也使用此处理过程来存储汇总的数据,而且每个时间序列图形工具在查看大量指
标时也会用到它。
2
例如,你有一个指标,在过去一小时内,每分钟都有对应的记录值,那么你就有了
60
个
唯一的数据点。图
4-1
中显示的数据点很杂乱,很难看出发生了什么。
负载平均值
图 4-1:负载平均值
应用一个以
5
分钟为间隔的滚动平均值会得到截然不同的图。图
4-2
所示的结果就是我们
所说的
平滑化
。
注
2
:
从磁盘加载几千个数据点来显示一个图形需要很长时间,而且在查看长达
4
个星期的数据时,你可能
并不会关心粒度。
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