【发布时间】:2013-12-10 09:28:01
【问题描述】:
之前我使用 Ganglia 来监控一堆节点,但现在我们正在转向 Graphite,并将使用 RRDtool 作为我们的存储引擎。我已经从源代码构建了所有与石墨相关的文件,并且可以启动碳和石墨守护程序。但是如何在 ui 上查看这些图表?
【问题讨论】:
之前我使用 Ganglia 来监控一堆节点,但现在我们正在转向 Graphite,并将使用 RRDtool 作为我们的存储引擎。我已经从源代码构建了所有与石墨相关的文件,并且可以启动碳和石墨守护程序。但是如何在 ui 上查看这些图表?
【问题讨论】:
这是一个非常广泛的问题。尽管如此-
石墨栈由三部分组成-
Graphite web 将通过阅读 Whisper 的目录树来显示图形。默认情况下,堆栈将自身无缝安装在/opt/graphite,/opt/graphite/storage/whisper 是 RRD 目录树的默认位置。
您必须做的另一件事是您需要进入您的网络服务器的虚拟主机区域。如果您使用的是 apache,则可以执行以下操作 -
<IfModule !wsgi_module.c>
LoadModule wsgi_module modules/mod_wsgi.so
</IfModule>
# XXX You need to set this up!
# Read http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGISocketPrefix
WSGISocketPrefix run/wsgi
<VirtualHost *:80>
ServerName 54.28.2.2
DocumentRoot "/opt/graphite/webapp"
ErrorLog /opt/graphite/storage/log/webapp/error.log
CustomLog /opt/graphite/storage/log/webapp/access.log common
WSGIDaemonProcess graphite processes=5 threads=5 display-name='%{GROUP}' inactivity-timeout=120
WSGIProcessGroup graphite
WSGIApplicationGroup %{GLOBAL}
WSGIImportScript /opt/graphite/conf/graphite.wsgi process-group=graphite application-group=%{GLOBAL}
WSGIScriptAlias / /opt/graphite/conf/graphite.wsgi
Alias /content/ /opt/graphite/webapp/content/
<Location "/content/">
SetHandler None
</Location>
Alias /media/ "@DJANGO_ROOT@/contrib/admin/media/"
<Location "/media/">
SetHandler None
</Location>
<Directory /opt/graphite/conf/>
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
在大多数情况下,这就是设置堆栈所需的所有自定义。我建议您查看一些关于您的架构和分布的git gists。
【讨论】:
您可以尝试使用 ceres TSDB 的最新开发版本的石墨。
ceres ;众所周知,与耳语 DB 相比,Ceres 具有卓越的性能和更低的存储空间。
【讨论】: