GeezerVison is showing github.com — Merge pull request #1 from uavorg/master · optimuse/uavstack@0971a0c
File treeExpand file treeCollapse file tree Open diff view settings com.creditease.uav.agent.heartbeat/src/main/java/com/creditease/agent/feature/hbagent/handlers src/main/java/com/creditease/agent/spi
com.creditease.uav.console.buildComponent/config com.creditease.uav.console com.creditease.uav.healthmanager/src/main/java/com/creditease/uav/feature/runtimenotify/task com.creditease.uav.hook.dubbo/src/main/java/com/creditease/uav/hook/dubbo com.creditease.uav.hook.httpclients/src/main/java/com/creditease/uav/hook com.creditease.uav.hook.jaxws/src/main/java/com/creditease/uav/hook/jaxws com.creditease.uav.hook.jdbc/src/main/java/com/creditease/uav/hook/jdbc com.creditease.uav.hook.mongoclients/src/main/java/com/creditease/uav/hook/mongoclients com.creditease.uav.hook.mq/src/main/java/com/creditease/uav/hook com.creditease.uav.hook.redis/src/main/java/com/creditease/uav/hook/redis com.creditease.uav.monitorframework.agent/src/main/java/com/creditease/uav/monitorframework/adaptors com.creditease.uav.monitorframework.apm/src/main/java/com/creditease/uav/apm/supporters com.creditease.uav.monitorframework.dproxy/src/main/java/com/creditease/uav/monitorframework/webservice/listeners com.creditease.uav.monitorframework.springbootFat monitorframework/fat/dubbo uav/monitorframework/springbootFat
com.creditease.uav.monitorframework/src/main/java/com/creditease com.creditease.uav.threadanalysis/src/main/java/com/creditease/uav/threadanalysis/client com.creditease.uav.tomcat.plus.core/src/main/java/com/creditease/tomcat/plus/interceptor
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: README.md +3-3Lines changed: 3 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | # UAVStack | 2 | | -UAVStack是由宜信技术研发中心推出的智能化服务技术栈,是研发运维一体化的解决方案。UAV是无人机的缩写,寓意无人机翱翔蓝天,智能的,透明的完成任务。 | | 2 | +UAVStack是智能化服务技术栈,是研发运维一体化的解决方案。UAV是无人机的缩写,寓意无人机翱翔蓝天,智能的,透明的完成任务。 | 3 | 3 | 它包括任务机器人(代号HIT),全维监控(代号UAV.Monitor),应用性能管理(代号UAV.APM),服务治理(代号UAV.ServiceGovern),微服务计算(代号UAV.MSCP),用户体验管理(代号UAV.UEM)等。 | 4 | 4 |
| 5 | | -UAVStack is an intelligent service technology stack launched by CreditEase Technology Research and Development Center. It is a solution for integration of R & D, operation and maintenance. UAV is the abbreviation of unmanned aerial vehicle (UAV), which means that unmanned aerial vehicle flies into the sky, and completes tasks intelligently and transparently. | | 5 | +UAVStack is an intelligent service technology stack. It is a solution for integration of R & D, operation and maintenance. UAV is the abbreviation of unmanned aerial vehicle (UAV), which means that unmanned aerial vehicle flies into the sky, and completes tasks intelligently and transparently. | 6 | 6 |
| 7 | 7 | It includes AIOps Robot (HIT),full dimension monitoring (UAV.Monitor), application performance management (UAV.APM), service governance (UAV.ServiceGovern), micro-service computing (UAV.MSCP), user experience management (UAV.UEM) etc.. | 8 | 8 |
| @@ -13,7 +13,7 @@ UAVStack Open Source series includes UAV.Monitor, UAV.APM, UAV.ServiceGovern, UA | 13 | 13 |
| 14 | 14 |  | 15 | 15 |
| 16 | | -# 更新公告 Project Updating Principle | | 16 | +# 更新模式 Project Updating Principle | 17 | 17 | * 开源系列源代码Issue更新,将与内部版本完全同步,最低频率每周一次 | 18 | 18 | * 开源系列源代码相关的功能优化,将与内部版本完全同步,最低频率每周一次 | 19 | 19 | * 开源系列源代码相关的新功能开放,会提前一周预告,并于下周内发布 | |
Collapse file Copy file name to clipboardExpand all lines: com.creditease.uav.agent.heartbeat/src/main/java/com/creditease/agent/feature/hbagent/handlers/HBQueryHandler.java +6-5Lines changed: 6 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -111,8 +111,9 @@ private void queryNodeInfo(UAVHttpMessage data) { | 111 | 111 | HeartBeatProtocol.STORE_KEY_NODEINFO); | 112 | 112 |
| 113 | 113 | String resultMsg = "{}"; | 114 | | - String filterValue = data.getRequest("appGroups"); // 多字段逗号分开 | 115 | | - // goup过滤 begin | | 114 | + String filterKey = data.getRequest("fkey"); | | 115 | + String filterValue = data.getRequest("fvalue"); | | 116 | + // 过滤 begin | 116 | 117 | if (!StringHelper.isEmpty(filterValue)) { | 117 | 118 | Map<String, String> filterMap = new HashMap<String, String>(); | 118 | 119 | String[] fValues = filterValue.split(","); | @@ -121,9 +122,9 @@ private void queryNodeInfo(UAVHttpMessage data) { | 121 | 122 | String key = String.valueOf(i.next()); | 122 | 123 | String body = resultMap.get(key); | 123 | 124 |
| 124 | | - for (String group : fValues) { | 125 | | - String filterKey = "\"group\":\"" + group + "\","; | 126 | | - if (body.indexOf(filterKey) >= 0) { | | 125 | + for (String value : fValues) { | | 126 | + String groupFilter = "\"" + filterKey + "\":\"" + value + "\","; | | 127 | + if (body.indexOf(groupFilter) >= 0) { | 127 | 128 | filterMap.put(key, body); | 128 | 129 | break; | 129 | 130 | } | |
Collapse file Copy file name to clipboardExpand all lines: com.creditease.uav.base/pom.xml +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 23 | 23 | <dependency> | 24 | 24 | <groupId>io.netty</groupId> | 25 | 25 | <artifactId>netty-all</artifactId> | 26 | | - <version>4.0.25.Final</version> | | 26 | + <version>4.1.11.Final</version> | 27 | 27 | </dependency> | 28 | 28 | </dependencies> | 29 | 29 |
| | 57 | 57 | </plugin> | 58 | 58 | </plugins> | 59 | 59 | </build> | 60 | | -</project> | | 60 | +</project> |
Collapse file Copy file name to clipboardExpand all lines: com.creditease.uav.base/src/main/java/com/creditease/agent/spi/ActionEngine.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -78,7 +78,7 @@ public ActionContext execute(String actionId, ActionContext context) { | 78 | 78 | } | 79 | 79 | catch (Exception e) { | 80 | 80 | if (log.isTraceEnable()) { | 81 | | - log.err(this, "Exception occured " + e.getMessage()); | | 81 | + log.err(this, "Exception occured " + e.getMessage(), e); | 82 | 82 | } | 83 | 83 | context.setE(e); | 84 | 84 | context.setJumpTargetActionId(null); | |
Collapse file Copy file name to clipboard +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | app.title=基础集群管理 | 2 | 2 | app.@eshead={"index":"1","title":"ES管理","file":"index.html"} | 3 | 3 | app.@jumpurl_1={"index":"2","title":"MQ管理","file":"jumpurl@http://uav.creditease.corp/rocket/cluster/list.do"} | | 4 | +app.@dbhead={"index":"3","title":"OpenTSDB管理","file":"index.html"} |
Collapse file Copy file name to clipboard +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | app.title=基础集群管理 | 2 | 2 | app.@eshead={"index":"1","title":"ES管理","file":"index.html"} | 3 | 3 | app.@jumpurl_1={"index":"2","title":"MQ管理","file":"jumpurl@http://127.0.0.1:8080/rocket/cluster/list.do"} | | 4 | +app.@dbhead={"index":"3","title":"OpenTSDB管理","file":"index.html"} |
Collapse file Copy file name to clipboardExpand all lines: com.creditease.uav.console.buildComponent/config/web_pro.xml +36Lines changed: 36 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 41 | 41 | <servlet-name>es-serlvet</servlet-name> | 42 | 42 | <url-pattern>/es/*</url-pattern> | 43 | 43 | </servlet-mapping> | | 44 | + <servlet> | | 45 | + <servlet-name>opentsdb-crdu-servlet</servlet-name> | | 46 | + <servlet-class>com.creditease.uav.opentsdb.OpenTSDBRestCRDUServlet</servlet-class> | | 47 | + <load-on-startup>2</load-on-startup> | | 48 | + <async-supported>true</async-supported> | | 49 | + </servlet> | | 50 | + | | 51 | + <servlet-mapping> | | 52 | + <servlet-name>opentsdb-crdu-servlet</servlet-name> | | 53 | + <url-pattern>/db/*</url-pattern> | | 54 | + </servlet-mapping> | | 55 | + | | 56 | + <servlet> | | 57 | + <servlet-name>opentsdb-agent-servlet</servlet-name> | | 58 | + <servlet-class>com.creditease.uav.opentsdb.OpenTSDBRestAgentServlet</servlet-class> | | 59 | + <load-on-startup>2</load-on-startup> | | 60 | + <async-supported>true</async-supported> | | 61 | + </servlet> | | 62 | + | | 63 | + <servlet-mapping> | | 64 | + <servlet-name>opentsdb-agent-servlet</servlet-name> | | 65 | + <!-- <url-pattern>/db2/*</url-pattern> | | 66 | + <url-pattern>/s/*</url-pattern> | | 67 | + <url-pattern>/q/*</url-pattern> --> | | 68 | + <url-pattern>/db2/q</url-pattern> | | 69 | + <url-pattern>/db2/suggest</url-pattern> | | 70 | + <url-pattern>/db2/stats</url-pattern> | | 71 | + <url-pattern>/db2/logs</url-pattern> | | 72 | + <url-pattern>/db2/version</url-pattern> | | 73 | + <url-pattern>/db2/</url-pattern> | | 74 | + <url-pattern>/db2/aggregators</url-pattern> | | 75 | + </servlet-mapping> | 44 | 76 | <!-- jersey restful service END --> | 45 | 77 |
| 46 | 78 | <!-- filter START --> | | 202 | 234 | <param-name>uav.apphub.sso.grafana.connection.info</param-name> | 203 | 235 | <param-value>{"api.url":"http://127.0.0.1:3000","web.url":"http://uav.creditease.corp/datacenter","datasource.opentsdb.url":"http://127.0.0.1:4242","datasource.elasticsearch.url":"http://127.0.0.1:9300","authorization.loginId":"apiuser","authorization.loginPwd":"Uav!630admin","authorization.register.defPwd":"1q@W3e","authorization.register.sleep.time":"2000"}</param-value> | 204 | 236 | </context-param> | | 237 | + <context-param> | | 238 | + <param-name>uav.app.opentsdb.http.client.params</param-name> | | 239 | + <param-value>{"max.con":50,"max.tot.con":200,"sock.time.out":10000,"con.time.out":10000,"req.time.out":10000}</param-value> | | 240 | + </context-param> | 205 | 241 | <context-param> | 206 | 242 | <param-name>uav.apphub.sso.white.list</param-name> | 207 | 243 | <!-- | |
Collapse file Copy file name to clipboardExpand all lines: com.creditease.uav.console.buildComponent/config/web_test.xml +36Lines changed: 36 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 41 | 41 | <servlet-name>es-serlvet</servlet-name> | 42 | 42 | <url-pattern>/es/*</url-pattern> | 43 | 43 | </servlet-mapping> | | 44 | + <servlet> | | 45 | + <servlet-name>opentsdb-crdu-servlet</servlet-name> | | 46 | + <servlet-class>com.creditease.uav.opentsdb.OpenTSDBRestCRDUServlet</servlet-class> | | 47 | + <load-on-startup>2</load-on-startup> | | 48 | + <async-supported>true</async-supported> | | 49 | + </servlet> | | 50 | + | | 51 | + <servlet-mapping> | | 52 | + <servlet-name>opentsdb-crdu-servlet</servlet-name> | | 53 | + <url-pattern>/db/*</url-pattern> | | 54 | + </servlet-mapping> | | 55 | + | | 56 | + <servlet> | | 57 | + <servlet-name>opentsdb-agent-servlet</servlet-name> | | 58 | + <servlet-class>com.creditease.uav.opentsdb.OpenTSDBRestAgentServlet</servlet-class> | | 59 | + <load-on-startup>2</load-on-startup> | | 60 | + <async-supported>true</async-supported> | | 61 | + </servlet> | | 62 | + | | 63 | + <servlet-mapping> | | 64 | + <servlet-name>opentsdb-agent-servlet</servlet-name> | | 65 | + <!-- <url-pattern>/db2/*</url-pattern> | | 66 | + <url-pattern>/s/*</url-pattern> | | 67 | + <url-pattern>/q/*</url-pattern> --> | | 68 | + <url-pattern>/db2/q</url-pattern> | | 69 | + <url-pattern>/db2/suggest</url-pattern> | | 70 | + <url-pattern>/db2/stats</url-pattern> | | 71 | + <url-pattern>/db2/logs</url-pattern> | | 72 | + <url-pattern>/db2/version</url-pattern> | | 73 | + <url-pattern>/db2/</url-pattern> | | 74 | + <url-pattern>/db2/aggregators</url-pattern> | | 75 | + </servlet-mapping> | 44 | 76 | <!-- jersey restful service END --> | 45 | 77 |
| 46 | 78 | <!-- filter START --> | | 206 | 238 | <param-name>uav.apphub.sso.grafana.connection.info</param-name> | 207 | 239 | <param-value>{"api.url":"http://127.0.0.1:3000","web.url":"http://127.0.0.1:3000","datasource.opentsdb.url":"http://127.0.0.1:4243","datasource.elasticsearch.url":"http://127.0.0.1:9200","authorization.loginId":"apiuser","authorization.loginPwd":"apiuser","authorization.register.defPwd":"1q@W3e","authorization.register.sleep.time":"2000"}</param-value> | 208 | 240 | </context-param> | | 241 | + <context-param> | | 242 | + <param-name>uav.app.opentsdb.http.client.params</param-name> | | 243 | + <param-value>{"max.con":50,"max.tot.con":200,"sock.time.out":10000,"con.time.out":10000,"req.time.out":10000}</param-value> | | 244 | + </context-param> | 209 | 245 | <context-param> | 210 | 246 | <param-name>uav.apphub.sso.white.list</param-name> | 211 | 247 | <!-- | |
Collapse file Copy file name to clipboardExpand all lines: com.creditease.uav.console/pom.xml +6Lines changed: 6 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 68 | 68 | <artifactId>aredis-api</artifactId> | 69 | 69 | <version>1.4</version> | 70 | 70 | </dependency> | | 71 | + | | 72 | + <dependency> | | 73 | + <groupId>commons-httpclient</groupId> | | 74 | + <artifactId>commons-httpclient</artifactId> | | 75 | + <version>3.0.1</version> | | 76 | + </dependency> | 71 | 77 | </dependencies> | 72 | 78 |
| 73 | 79 |
| |
Collapse file Copy file name to clipboardExpand all lines: com.creditease.uav.console/src/main/java/com/creditease/uav/godeye/rest/GodEyeRestService.java +17-8Lines changed: 17 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1027,20 +1027,29 @@ private void loadAppProfileListFromHttp(UAVHttpMessage message, final AsyncRespo | 1027 | 1027 | @GET | 1028 | 1028 | @Path("node/q/cache") | 1029 | 1029 | @Produces(MediaType.APPLICATION_JSON + ";charset=utf-8") | 1030 | | - public void loadUavNetworkInfo(@Suspended AsyncResponse response) { | | 1030 | + public void loadUavNetworkInfo(@QueryParam("fkey") String fkey, @QueryParam("fvalue") String fvalue, | | 1031 | + @Suspended AsyncResponse response) { | 1031 | 1032 |
| 1032 | 1033 | UAVHttpMessage message = new UAVHttpMessage(); | 1033 | 1034 | message.setIntent("node"); | 1034 | 1035 |
| 1035 | | - String groups = getUserGroupsByFilter(request); | 1036 | | - if ("NOMAPPING".equals(groups)) { | 1037 | | - response.resume("{\"rs\":\"{}\"}"); | 1038 | | - } | 1039 | | - else if ("ALL".equals(groups)) { | 1040 | | - loadUavNetworkInfoFromHttp(message, response); | | 1036 | + if (StringHelper.isEmpty(fkey) || StringHelper.isEmpty(fvalue)) { | | 1037 | + String groups = getUserGroupsByFilter(request); | | 1038 | + if ("NOMAPPING".equals(groups)) { | | 1039 | + response.resume("{\"rs\":\"{}\"}"); | | 1040 | + } | | 1041 | + else if ("ALL".equals(groups)) { | | 1042 | + loadUavNetworkInfoFromHttp(message, response); | | 1043 | + } | | 1044 | + else { | | 1045 | + message.putRequest("fkey", "group"); | | 1046 | + message.putRequest("fvalue", groups); | | 1047 | + loadUavNetworkInfoFromHttp(message, response); | | 1048 | + } | 1041 | 1049 | } | 1042 | 1050 | else { | 1043 | | - message.putRequest("appGroups", groups); | | 1051 | + message.putRequest("fkey", fkey); | | 1052 | + message.putRequest("fvalue", fvalue); | 1044 | 1053 | loadUavNetworkInfoFromHttp(message, response); | 1045 | 1054 | } | 1046 | 1055 |
| |
|