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监控
“图表选项”菜单
97
使用图表模板
能够自定义
Graphite
的展示效果固然很好,但是如果每次构建一个新图表时都必须进行
我们喜欢的设置,这将是一件相当麻烦的事。幸运的是,我们可以在
graphTemplates
.
conf
中定义预设模板,其中包含许多用于覆盖字体样式和颜色默认值的选项。
每个模板都使用我们之前见过的
INI
样式的语法。应将每个模板的名称传递给
template
参数,该参数将加载首选项并将其应用于图表。模板定义中没有必填设置。例如,图
5-6
和图
5-7
所示的那些有趣的图表所使用的模板仅仅定义了
lineColors
设置。
奇怪的是,
graphTemplates.conf
中的许多设置都没有直接映射到相应的渲染
API
参数,
因此示例
5-3
显示了一个示例模板,其中添加了注释以帮助消除任何可能的混淆。请注意,
通过
URL
传递的任何参数都将覆盖其相关的模板设置。
示例5-3graphTemplates.conf中的可视化模板示例
[grafana]
background = white # bgcolor
foreground = black # fgcolor
minorLine = grey # minorGridLineColor
majorLine = rose # majorGridLineColor
lineColors = #7eb26d,#eab839,#6ed0e0,#ef843c # colorList
fontName = Sans # fontName
fontSize ...
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