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监控
“图表选项”菜单
93
5-24:删除之前的图表
“图表选项”菜单
Graphite
对用户展示了大量的渲染选项,与默认将数据展示为线型图(或者面积图,我
们很快就会看到)形成对比,这些选项影响了图表本身的视觉效果。这些功能可在
Composer
窗口左下角的“图表选项”(
Graph Options
)菜单中找到。
我们不打算介绍这个菜单中隐藏的功能,但是将介绍最常用的功能(至少从我的经验来
看)。那些显而易见的选项,例如改变背景颜色等,将被直接跳过。
从这里开始要特别注意,因为我将在介绍每个新功能的同时,介绍实际的渲染
API
函数。
例如,我们将用菜单中的“图表标题”(
Graph Title
)条目来设置图表标题,并且介绍其
幕后使用的
title
参数。
添加图表标题
尽管我认为一个设计良好的图表不需要标题,就像好的代码不需要注释一样。但是,
Graphite
开发人员还是为我们提供了一个函数用来设置图表标题。现在,让我们将现有
94
5
Graphite
用户界面
的图表命名为“
Carbon Performance
”(参见图
5-25
)。
5-25:设置图表标题
使用
API
的技巧
我之前强调过,修改
Graphite URL
是学习
API
的最佳方法,我没开玩笑。在
阅读本章的过程中,请花几分钟的时间在一个新的浏览器选项卡中打开 ...
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