首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >石墨webapp并不能显示所有碳缓存过程中的数据

石墨webapp并不能显示所有碳缓存过程中的数据
EN

Stack Overflow用户
提问于 2014-05-17 13:32:42
回答 1查看 1.3K关注 0票数 1

我正在运行4个碳缓存实例后面的一个碳中继实例。下面是我的carbon.conf。

代码语言:javascript
复制
[cache:1]
        LINE_RECEIVER_PORT = 2103
        PICKLE_RECEIVER_PORT = 2104
        CACHE_QUERY_PORT = 7102
        STORAGE_DIR = /graphite_data/01
        LOCAL_DATA_DIR = /graphite_data/01

        [cache:2]
        LINE_RECEIVER_PORT = 2203
        PICKLE_RECEIVER_PORT = 2204
        CACHE_QUERY_PORT = 7202
        STORAGE_DIR = /graphite_data/02
        LOCAL_DATA_DIR = /graphite_data/02

        [cache:3]
        LINE_RECEIVER_PORT = 2303
        PICKLE_RECEIVER_PORT = 2304
        CACHE_QUERY_PORT = 7302
        STORAGE_DIR = /graphite_data/03
        LOCAL_DATA_DIR = /graphite_data/03

        [cache:4]
        LINE_RECEIVER_PORT = 2403
        PICKLE_RECEIVER_PORT = 2404
        CACHE_QUERY_PORT = 7402
        STORAGE_DIR = /graphite_data/04
        LOCAL_DATA_DIR = /graphite_data/04

我已经用下面的配置配置了我的碳继电器

代码语言:javascript
复制
    LINE_RECEIVER_INTERFACE = 0.0.0.0
    LINE_RECEIVER_PORT = 2003
    PICKLE_RECEIVER_INTERFACE = 0.0.0.0
    PICKLE_RECEIVER_PORT = 2004
    RELAY_METHOD = consistent-hashing

 .
    REPLICATION_FACTOR = 1
    DESTINATIONS=127.0.0.1:2104:1,127.0.0.1:2204:2,127.0.0.1:2304:3,127.0.0.1:2404:4

我已经用下面的配置配置了我的石墨get应用程序,以便从所有碳缓存过程中获取数据。

代码语言:javascript
复制
    STANDARD_DIRS = ['/graphite_data/01',
                     '/graphite_data/02',
                     '/graphite_data/03',
                     '/graphite_data/04']
    # You *should* use 127.0.0.1 here in most cases
    CARBONLINK_HOSTS = ["127.0.0.1:7102:1", "127.0.0.1:7202:2", "127.0.0.1:7302:3","127.0.0.1:7402:4"]

配置之后,我开始使用示例-client.py将数据推送到我的碳中继过程中。我可以看到中继正在将数据推送到碳缓存过程中。

代码语言:javascript
复制
**[root@poc-graphite graphite]# ls /graphite_data/02/system/loadavg_5min.wsp 
/graphite_data/02/system/loadavg_5min.wsp
[root@poc-graphite graphite]# ls /graphite_data/03/system/loadavg_1min.wsp 
/graphite_data/03/system/loadavg_1min.wsp
[root@poc-graphite graphite]# ls /graphite_data/04/system/loadavg_15min.wsp 
/graphite_data/04/system/loadavg_15min.wsp**

但是我无法在我的webapp中看到这个指标。配置有什么问题吗。

EN

回答 1

Stack Overflow用户

发布于 2015-03-15 13:37:21

您应该使用blow命令检查扭曲插件的路径:

代码语言:javascript
复制
$python
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']

如果结果中存在路径"/usr/local/lib/python2.7/dist-packages",,则将其移除:

代码语言:javascript
复制
sudo rm -rf /usr/local/lib/python2.7/dist-packages/twiste*

然后

代码语言:javascript
复制
sudo service carbon-cache stop      ## wait a few seconds here
sudo service carbon-cache start
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23711943

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档