配置Graphite+Carbon+Whisper

carbon.conf

31行解除注释:

      1 [cache]
      2 # Configure carbon directories.
      3 #
      4 # OS environment variables can be used to tell carbon where graphite is
      5 # installed, where to read configuration from and where to write data.
      6 #
      7 #   GRAPHITE_ROOT        - Root directory of the graphite installation.
      8 #                          Defaults to ../
      9 #   GRAPHITE_CONF_DIR    - Configuration directory (where this file lives).
     10 #                          Defaults to $GRAPHITE_ROOT/conf/
     11 #   GRAPHITE_STORAGE_DIR - Storage directory for whisper/rrd/log/pid files.
     12 #                          Defaults to $GRAPHITE_ROOT/storage/
     13 #
     14 # To change other directory paths, add settings to this file. The following
     15 # configuration variables are available with these default values:
     16 #
     17 #   STORAGE_DIR    = $GRAPHITE_STORAGE_DIR
    
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Whisper是一个基于Python语言开发的分布式消息传递系统,它具有高可靠、高效率、高灵活性等优势,被广泛应用于互联网领域的消息推送、数据同步、实时计算等场景。下面是Whisper搭建教程。 一、安装Python和pip Whisper是基于Python语言开发的,因此需要安装Python 2.6.6或更高版本,同时也需安装Python包管理工具pip,可以使用以下命令进行安装: sudo apt-get install python-pip 二、安装Whisper 使用pip进行安装: sudo pip install whisper 三、创建Whisper数据存储目录 在创建Whisper数据存储目录前,需要先创建数据目录和日志目录: sudo mkdir -p /opt/graphite/storage/whisper /opt/graphite/storage/log 然后修改这两个目录的权限: sudo chown -R www-data /opt/graphite/storage sudo chmod 0775 /opt/graphite/storage /opt/graphite/storage/whisper /opt/graphite/storage/log 四、安装Carbon CarbonWhisper的守护进程,用于接收、存储和查询Whisper数据,可以使用以下命令进行安装: sudo pip install carbon 然后运行Carbon的安装脚本: sudo /opt/graphite/bin/carbon-cache.py start 五、安装Web应用 Graphite-web是Whisper的Web应用,可用于查看和分析Whisper数据,可以使用以下命令进行安装: sudo pip install graphite-web 六、修改配置文件 修改Carbon配置文件/opt/graphite/conf/carbon.conf,将以下内容复制到文件末尾: [whisper] enabled = True data_dir = /opt/graphite/storage/whisper 修改Graphite-web的配置文件/opt/graphite/webapp/graphite/local_settings.py,将以下内容修改为自己的数据库信息: DATABASES = { 'default': { 'NAME': 'graphite', 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'USER': 'graphite', 'PASSWORD': 'your_password', 'HOST': '127.0.0.1', 'PORT': '' } } 七、启动服务 重启Carbon服务: sudo /opt/graphite/bin/carbon-cache.py stop sudo /opt/graphite/bin/carbon-cache.py start 启动Web应用: sudo /opt/graphite/bin/run-graphite-devel-server.py /opt/graphite/ 八、访问Web页面 通过浏览器访问http://your_server_ip:8888,即可打开Graphite-web的主页。在这里,你可以创建图表、查询Whisper数据、设置阈值等操作。 总结:通过以上步骤,我们就可以轻松搭建自己的Whisper分布式消息传递系统,并通过Graphite-web进行快速数据查询和分析,在互联网领域的消息推送、数据同步、实时计算等场景中大放异彩。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值