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

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

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
66
|
第
7
章
•
该时间周期内所有计时器的平均值;
•
该时间周期内收集的计时器总数。
虽然需要计算的指标似乎很多,但实际上十分简单。例如,如果发送如下的值作为计时器:
5
9
30
25
7
3
2
15
17
80
那么
StatsD
将发送的结果是:
mean_90: 10.37
upper_90: 25
sum_90: 83
upper: 80
lower: 2
sum: 193
mean: 19.3
count: 10
如果发送的是
gauge
类型数据,则只需要发送刷新期间的最后一个值。一组表现相同的数据
称为
gauge
。如果发送的是
counter
,则有两个指标会被发送:
counter
值和每秒值。例如,如
果在刷新间隔期间触发了
11
次
counter
,那么发送的
counter
值就是
11
,每秒值则是
1100
。
至于后端,可以将指标发送给各种不同的目的地,包括
Carbon
(
Graphite
)、
OpenTSDB
、
InfluxDB
,以及很多的
SaaS
工具。虽然每种不同的后端配置方法不同,但是都很简单。
StatsD
内置的后端是
Graphite
。对于如何配置特殊的后端,请查阅官方文档。
在官方文档中可以发现更多的
StatsD
特性,如果感兴趣的话,建议你读一读。值得一提的
是,大多数的
SaaS
监控供应商有自己的
StatsD
实现或类似
StatsD
的功能。
7.2
 监控构建和发布管道
对构建
/
发布管道或过程进行监控是构建发布流程中常被忽略的一个方面。监控该流程会
为应用程序和基础设施带来更多的洞察和信息,帮助你发现拟合和其他有问题的领域。大 ...
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