Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard向应用服务发起Metric请求,请求失败后,无详细错误信息 #3380

Open
jackchen723122704 opened this issue Apr 23, 2024 · 1 comment

Comments

@jackchen723122704
Copy link

Issue Description

Type: bug report or feature request

Describe what happened (or what feature you want)

Dashboard向应用服务发起Metric请求,请求失败后,无详细错误信息,客户端也看不到具体原因。
具体是 Dashboard 中 MetricFetcher.fetchOnce() 向客户端获取Metric信息时,客户端响应了内容,但是返回码是失败的。

使用 curl 命令获取metric信息,会提示“Error when retrieving metrics”。

经跟踪,发现是 SendMetricCommandHandler.handle() 中,list = searcher.findByTimeAndResource(startTime, endTime, identity) 出现了异常。

11

该函数应该是从本地 metric 文件获取到资源统计数据,什么情况下会出现异常

Describe what you expected to happen

什么原因导致的这个问题发生?什么情况下会出现这种情况?

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

Sentinel Dashboard 是 1.8.0,应用Sentinel组件依赖版本为 1.4.1

Anything else we need to know?

在本地和测试环境运行正常,生产环境出现这个问题

@jackchen723122704
Copy link
Author

此外,排查到出问题的环境中,metric.log 文件内容存在空行
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant