【问题标题】:decanter framework doesnt work as expected in OpenDaylight Karaf shell醒酒器框架在 OpenDaylight Karaf shell 中无法按预期工作
【发布时间】:2019-05-13 09:12:03
【问题描述】:

我一直在寻找 OpenDaylight Controller 中可用的日志框架。 类似于 ELK 堆栈的东西。

我发现 apache decanter 是一种可行的方法。 https://karaf.apache.org/manual/decanter/latest-1/

问题是它在普通的 karaf shell 上工作正常,但在 Oxygen SR4 版本的 ODL karaf shell 上不能正常工作。

根据文档, https://karaf.apache.org/download.html#decanter-installation

feature:repo-add decanter
feature:install decanter-appender-elasticsearch
feature:install decanter-collector-log
feature:install decanter-collector-jmx

我在 ODL karaf shell 中尝试了相同的方法。 我下载了 Oxygen-SR4 二进制文件并启动了 karaf shell。

./karaf clean Apache Karaf starting up. Press Enter to open the shell now... 100% [========================================================================]

Karaf started in 0s. Bundle stats: 13 active, 13 total

    ________                       ________                .__  .__       .__     __       
    \_____  \ ______   ____   ____ \______ \ _____  ___.__.|  | |__| ____ |  |___/  |_     
     /   |   \\____ \_/ __ \ /    \ |    |  \\__  \<   |  ||  | |  |/ ___\|  |  \   __\    
    /    |    \  |_> >  ___/|   |  \|    `   \/ __ \\___  ||  |_|  / /_/  >   Y  \  |      
    \_______  /   __/ \___  >___|  /_______  (____  / ____||____/__\___  /|___|  /__|      
            \/|__|        \/     \/        \/     \/\/            /_____/      \/          


Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown OpenDaylight.

opendaylight-user@root>system:version 

4.1.6

opendaylight-user@root>feature:repo-add decanter Adding feature url

opendaylight-user@root>feature:install decanter-appender-elasticsearch
org.apache.karaf.features.core[org.apache.karaf.features.internal.service.FeaturesServiceImpl] : null

但同样的事情也适用于普通的 apache karaf shell。

./karaf 
        __ __                  ____      
       / //_/____ __________ _/ __/      
      / ,<  / __ `/ ___/ __ `/ /_        
     / /| |/ /_/ / /  / /_/ / __/        
    /_/ |_|\__,_/_/   \__,_/_/         

  Apache Karaf (4.2.5)

Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> feature:repo-add decanter Adding feature url mvn:org.apache.karaf.decanter/apache-karaf-decanter/RELEASE/xml/features karaf@root()>  feature:install decanter-appender-elasticsearch                                                                                                                                               karaf@root()>

谁能指出这里缺少什么,因为我觉得 shell 版本很相似?

您能否建议一些其他日志框架来处理 OpenDaylight 控制器(Oxygen SR4)中的 Karaf 日志和数据,类似于 ELK 堆栈。

【问题讨论】:

    标签: opendaylight


    【解决方案1】:

    我们在上游 OpenDaylight 系统测试中使用醒酒器。我们的特点 安装(使用 etc/org.apache.karaf.features.cfg 中的 featuresBoot 变量是:

    odl-jolokia,decanter-collector-jmx,decanter-appender-elasticsearch
    

    但是,我们还将 featuresRepositories 配置为:

    mvn:org.apache.karaf.decanter/apache-karaf-decanter/1.0.0/xml/features
    

    这里是wiki page,其中包含一些额外信息。

    这是我们抓取数据以查找 Mem Usage 的示例,我们还 安装 elasticsearch 让我们将其视为graph over time

    希望对你有帮助。

    【讨论】:

    • 嗨。您能否更新此评论中的链接?找不到获取页面。
    猜你喜欢
    • 1970-01-01
    • 2018-03-09
    • 1970-01-01
    • 2016-08-17
    • 2023-03-14
    • 2019-06-26
    • 2022-01-02
    • 2014-09-22
    相关资源
    最近更新 更多