Skip to content

prometheus 不能正常采集 hystrix 线程池 queue.capacity 数据 #1129

Closed
@klook-tech-jayyang

Description

@klook-tech-jayyang

BUG 报告

在开始报告错误之前,请确保认真查看了以下步骤:

请在提交问题之前回答这些问题,谢谢。

你使用了哪个项目?hippo4j config 还是 hippo4j server?

hippo4j config

你使用了哪个版本?

最新版本

预期行为

prometheus 正常采集 hystrix 线程池数据

实际行为

prometheus 采集 hystrix 线程池数据报 warn(NPE):
Failed to apply the value function for the gauge 'adapter.thread-pool.queue.capacity'. Note that subsequent logs will be logged at debug level.

原因分析(如果可以)

HystrixThreadPoolAdapter#getThreadPoolState 中没有 setBlockingQueueCapacity 导致

问题重现步骤

用于重现此问题的示例代码(例如 GitHub 链接)

Metadata

Metadata

Labels

type: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions