Browse Source

nacos持久化

master
wangjx 3 years ago
parent
commit
c08a8b0540
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/FlowRuleNacosProvider.java
  2. +2
    -2
      sentinel-dashboard/src/main/webapp/resources/app/scripts/directives/sidebar/sidebar.html

+ 1
- 1
sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/FlowRuleNacosProvider.java View File

@@ -47,7 +47,7 @@ public class FlowRuleNacosProvider implements DynamicRuleProvider<List<FlowRuleE

@Override
public List<FlowRuleEntity> getRules(String appName) throws Exception {
logger.info("FlowRuleNacosProvider getRules [appName] " + appName);
logger.info("FlowRuleNacosProvider getRules [appName] " + appName);
String dataId=new StringBuilder(appName).append(NacosConstants.DATA_ID_POSTFIX).toString();
String rules = nacosConfiguration.getConfig(dataId,nacosProperties.getGroupId(),3000);
//log.info("pull FlowRule from nacos Config:"+rules);


+ 2
- 2
sentinel-dashboard/src/main/webapp/resources/app/scripts/directives/sidebar/sidebar.html View File

@@ -21,7 +21,6 @@
<span class="fa arrow"></span>
<span class="arrow">({{entry.healthyCount}}/{{entry.machines.length}})</span>
</a>
sentinel_dashboard
<!--<ul class="nav nav-second-level" collapse="{{entry.active}}" style="display: none;">-->
<ul class="nav nav-second-level" ng-show="entry.active">
<li ui-sref-active="active">
@@ -54,7 +53,8 @@
</li>

<li ui-sref-active="active" ng-if="!entry.isGateway">
<a ui-sref="dashboard.flowV1({app: entry.app})">
<!-- a ui-sref="dashboard.flowV1({app: entry.app})" -->
<a ui-sref="dashboard.flow({app: entry.app})">
<i class="glyphicon glyphicon-filter"></i>&nbsp;&nbsp;流控规则</a>
</li>



Loading…
Cancel
Save