Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 如何在ui上查看石墨图?_Linux_Graphite_Ganglia - Fatal编程技术网

Linux 如何在ui上查看石墨图?

Linux 如何在ui上查看石墨图?,linux,graphite,ganglia,Linux,Graphite,Ganglia,早些时候,我使用Ganglia来监视一组节点,但现在我们正转向Graphite,并将使用RRDtool作为存储引擎。我已经从源代码构建了所有与graphite相关的文件,并且可以启动carbon和graphite守护进程。但是如何在ui上查看这些图形 这是一个非常广泛的问题。然而- 石墨堆由三部分组成- 碳(聚合工具) 耳语(基于sqlite3的RRD) Graphite web(基于django的webapp) 石墨网将通过读取whisper的目录树来显示图形。默认情况下,堆栈无缝地安装在/o

早些时候,我使用Ganglia来监视一组节点,但现在我们正转向Graphite,并将使用RRDtool作为存储引擎。我已经从源代码构建了所有与graphite相关的文件,并且可以启动carbon和graphite守护进程。但是如何在ui上查看这些图形

这是一个非常广泛的问题。然而-

石墨堆由三部分组成-

  • 碳(聚合工具)
  • 耳语(基于sqlite3的RRD)
  • Graphite web(基于django的webapp)
  • 石墨网将通过读取whisper的目录树来显示图形。默认情况下,堆栈无缝地安装在
    /opt/graphite
    上,其中
    /opt/graphite/storage/whisper
    是RRD目录树的默认位置

    您必须做的另一件事是,您需要进入Web服务器的virtualhost区域。如果您使用的是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>
    
    
    LoadModule wsgi_modules/mod_wsgi.so
    #XXX你需要设置这个!
    #阅读http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGISocketPrefix
    WSGISocketPrefix运行/wsgi
    服务器名54.28.2.2
    DocumentRoot“/opt/graphite/webapp”
    ErrorLog/opt/graphite/storage/log/webapp/error.log
    CustomLog/opt/graphite/storage/log/webapp/access.log通用
    WSGIDaemonProcess graphite进程=5个线程=5个显示名称=“%$GROUP}”非活动超时=120
    钨基石墨
    WSGIApplicationGroup%{GLOBAL}
    WSGIImportScript/opt/graphite/conf/graphite.wsgi进程组=graphite应用程序组=%{GLOBAL}
    WSGIScriptAlias//opt/graphite/conf/graphite.wsgi
    别名/content//opt/graphite/webapp/content/
    SetHandler无
    别名/media/“@DJANGO_ROOT@/contrib/admin/media/”
    SetHandler无
    命令拒绝,允许
    通融
    

    在大多数情况下,这是设置堆栈所需的全部定制。我建议您了解一下您的体系结构和发行版。

    您可以使用ceres TSDB尝试graphite的最新开发版本


    );众所周知,与whisper DB相比,Ceres具有更高的性能和更低的存储面积。

    除了使用@erbdex所述的内置graphite web之外,您还可以尝试使用开源仪表板软件。Grafana可以从graphite(以及其他后端)中提取数据

    或者,它也可以发出警报,但不是开源的。AppsDash使用graphite(和statsd)协议