Quellcode durchsuchen

nacos持久化

master
wangjx vor 3 Jahren
Ursprung
Commit
c08a8b0540
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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>



Laden…
Abbrechen
Speichern