Skip to Content
Graphite监控
book

Graphite监控

by Jason Dixon
October 2020
Intermediate to advanced
261 pages
5h 32m
Chinese
Publishing House of Electronics Industry
Content preview from Graphite监控
120
6
渲染
API
在前面的章节中,我们学习了监控工具和监控方法的概况、
Graphite
的起源和历史以及
Graphite
如何适应现代监控架构等多方面的基础知识。毫无疑问,这似乎是一条黑暗而曲
折的道路,但我相信这些积累最终将帮助你成为将要学习的分析工具的更有效的实践者。
然而,需要严谨、耐心和重复才能成为能够正确使用这些工具的工匠。这可能听起来很
俗气,但我很自豪能够知道如何将简单的折线图转换为有助于读者从看似不透明的数据
中获得答案的东西。一张好的图表应告知并提供具体问题的答案,一张好的图表会让你
提出以前从未考虑过的新问题。
本章将深入研究
Graphite
渲染
API
,展示其转换函数和输出格式。我们将正式介绍
函数
的概念,并学习如何使用它来构建之前无法实现的动态数据序列。
请注意,我们将强调直接使用渲染
API
而不是
Graphite
Composer
界面使用的间接资源。
本章中的代码主要包括图形图像(或原始数据或
JSON
)输出,以便我们可以集中精力
学习
Graphite
的渲染库。
Composer
生成的图表只是浏览器框架中的
PNG
图像。你可以右键单击其中一
个并在新的浏览器选项卡中加载图像,使用
curl
等命令行工具下载图像
URL
或者在自定义的网页中使用图像
URL
使用函数
Graphite Web
的渲染
API
包含一个相当丰富的函数库
1
,用于处理时间序列数据。其中,
许多函数提供了常见的数学运算,包括加、减或乘序列,还有一些函数具有分析性的功能,
1
 详情请参见链接
22
使用函数
121 ...
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

写给系统管理员的Python脚本编程指南

写给系统管理员的Python脚本编程指南

Posts & Telecom Press, Ganesh Sanjiv Naik
弱监督学习实用指南

弱监督学习实用指南

Wee Hyong Tok, Amit Bahree, Senja Filipi
精通機器學習

精通機器學習

Aurélien Géron

Publisher Resources

ISBN: 9787121395154