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

Sentinel dashboard fetch metric failed: ConnectionException #847

Closed
tonfay opened this issue Jun 19, 2019 · 3 comments
Closed

Sentinel dashboard fetch metric failed: ConnectionException #847

tonfay opened this issue Jun 19, 2019 · 3 comments
Labels
area/dashboard Issues or PRs about Sentinel Dashboard kind/question Category issues related to questions or problems

Comments

@tonfay
Copy link

tonfay commented Jun 19, 2019

控制台无法正常监控,机器列表里面健康状态正常,但是没有监控数据。
image

实现类:
TransportConfig.getHeartbeatClientIp()->HostNameUtil.resolveHost()
两种实现方式:
1.修改对应hostname与ip地址的映射关系即可
2.可指定-Dcsp.sentinel.heartbeat.client.ip=xxx 配置

@sentinel-bot
Copy link
Collaborator

Hi @tonfay, we detect non-English characters in the issue. This comment is an auto translation from @sentinel-bot to help other users to understand this issue.
We encourage you to describe your issue in English which is more friendly to other users.

/metric ConnectionException

The console could not be monitored properly, the health status of the machine list was normal, but there was no monitoring data.
image

Implementation class:
TransportConfig.getHeartbeatClientIp()->HostNameUtil.resolveHost()
Two ways to achieve:

  1. Modify the mapping relationship between the corresponding hostname and ip address.
  2. You can specify -Dcsp.sentinel.heartbeat.client.ip=xxx configuration

@sczyh30 sczyh30 changed the title /metric ConnectionException Sentinel dashboard fetch metric failed: ConnectionException Jun 19, 2019
@sczyh30 sczyh30 added area/dashboard Issues or PRs about Sentinel Dashboard kind/question Category issues related to questions or problems labels Jun 19, 2019
@sczyh30
Copy link
Member

sczyh30 commented Jun 19, 2019

Thanks for summarizing. I've added this item to FAQ :)

@Liu1796997299
Copy link

Liu1796997299 commented Jul 27, 2020

For this question:The console could not be monitored properly, the health status of the machine list was normal, but there was no monitoring data.And the Sentinel application had ran on CentOS and throws this exception:
image

For ".yml" or ".properties",add this configuration property about "spring.cloud.sentinel.transport.clientIp".And the value is your Sentinel Controller's address.I test it myself,and pass!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dashboard Issues or PRs about Sentinel Dashboard kind/question Category issues related to questions or problems
Projects
None yet
Development

No branches or pull requests

4 participants