39.3. 外部日志记录解决方案的扩展选项
您可以使用扩展选项来链接外部日志记录解决方案,而不使用 OpenShift Container Platform 的 EFK 日志记录堆栈:
'use strict';
angular.module("mylinkextensions", ['openshiftConsole'])
.run(function(extensionRegistry) {
extensionRegistry.add('log-links', _.spread(function(resource, options) {
return {
type: 'dom',
node: '<span><a href="https://extension-point.example.com">' + resource.metadata.name + '</a><span class="action-divider">|</span></span>'
};
}));
});
hawtioPluginLoader.addModule("mylinkextensions");
添加脚本,如 Loading Extension Scripts 和 Stylesheets 所述。