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 support contextpath #1818

Open
xuande opened this issue Nov 12, 2020 · 2 comments
Open

Sentinel Dashboard support contextpath #1818

xuande opened this issue Nov 12, 2020 · 2 comments
Labels
area/sentinel spring cloud alibaba sentinel

Comments

@xuande
Copy link

xuande commented Nov 12, 2020

sentinel #1839
Sentinel Dashboard support contextpath
Sentinel dashboard 支持设置contextpath

Which Component
Sentinel

Is your feature request related to a problem? Please describe.
Sentinel dashboard设置contextpath后,信息上报失败
Sentinel Dashboard failed to report information after setting contextPath

Describe the solution you'd like
Add spring.cloud.sentinel.transport.api-path,eg. dashboad url http://localhost:8080/sentinel,configuration as follows:
增加spring.cloud.sentinel.transport.api-path配置,如dashboard地址为http://localhost:8080/sentinel,那么配置如下:

spring:
  cloud:
    sentinel:
      transport:
        dashboard: localhost:8080
        api-path: /sentinel/registry/machine

Describe alternatives you've considered

Additional context

@dededecode
Copy link

请问用的是什么版本呢,我试了好多版本配置文件都无法识别api-path这个属性

@wabixia0515
Copy link

请问用的是什么版本呢,我试了好多版本配置文件都无法识别api-path这个属性

我也没找到,我找了另外的办法,自己在应用启动的时候设置属性;

System.setProperty("csp.sentinel.heartbeat.api.path", "/sentinel/registry/machine");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sentinel spring cloud alibaba sentinel
Projects
None yet
Development

No branches or pull requests

4 participants