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监控
配置
Graphite Web
67
配置
Graphite Web
在处理了各种
Carbon
守护进程的无数配置文件和设置之后,设置
Graphite Web
应用程
序就像在公园里散步一样简单。我们只需准备几个文件就能在几分钟内启动并运行它。
local_settings.py
所有
Graphite Web
应用程序设置都在
local_settings.py
文件中配置,而该文件又会覆盖
settings.py
文件中的默认值。请勿自行更改
settings.py
,因为此文件在升级期间会被覆盖。
我们将复制
Graphite Web
提供的示例文件,然后在那里进行更改
$ cd /opt/graphite/webapp/graphite
$ sudo cp local_settings.py.example local_settings.py
在开始使用
Graphite Web
之前,需要修改以下设置。说实话,尽管
SECRET_KEY
是唯一
必须编辑的设置,然而这也是一个很好的设置
TIME_ZONE
以避免图形中出现混乱的机会,
同时可以设置
MEMCACHE_HOSTS
来指示
Graphite Web
使用
memcached
以获得性能的提升
(当你最终需要它时)。
SECRET_KEY
Django
使用此值来对加密哈希进行加盐以提高应用程序的安全性。它应该被设置为
一个相当长的随机值,例如命令
date | sha256sum
输出的字符串。请注意,如果你
碰巧在负载均衡器后面运行了多个
Web
应用程序服务器,则此设置在各个服务器上 ...
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