Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
roncoo
roncoo-education
提交
87b85528
R
roncoo-education
项目概览
roncoo
/
roncoo-education
10 个月 前同步成功
通知
146
Star
5
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
1
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roncoo-education
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
1
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
87b85528
编写于
2月 28, 2019
作者:
夏天飘过的风
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加zipkin链路追踪服务
上级
ba0bd48b
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
212 addition
and
0 deletion
+212
-0
roncoo-education-course/roncoo-education-course-service/pom.xml
...-education-course/roncoo-education-course-service/pom.xml
+6
-0
roncoo-education-server-zipkin/pom.xml
roncoo-education-server-zipkin/pom.xml
+63
-0
roncoo-education-server-zipkin/src/main/java/com/roncoo/education/server/zipkin/ServerZipkinApplication.java
...ncoo/education/server/zipkin/ServerZipkinApplication.java
+19
-0
roncoo-education-server-zipkin/src/main/resources/application-dev.properties
...rver-zipkin/src/main/resources/application-dev.properties
+20
-0
roncoo-education-server-zipkin/src/main/resources/application-local.properties
...er-zipkin/src/main/resources/application-local.properties
+0
-0
roncoo-education-server-zipkin/src/main/resources/application-prod.properties
...ver-zipkin/src/main/resources/application-prod.properties
+0
-0
roncoo-education-server-zipkin/src/main/resources/application-test.properties
...ver-zipkin/src/main/resources/application-test.properties
+0
-0
roncoo-education-server-zipkin/src/main/resources/application.properties
...n-server-zipkin/src/main/resources/application.properties
+19
-0
roncoo-education-server-zipkin/src/main/resources/logback-roncoo.xml
...ation-server-zipkin/src/main/resources/logback-roncoo.xml
+73
-0
roncoo-education-system/roncoo-education-system-service/pom.xml
...-education-system/roncoo-education-system-service/pom.xml
+6
-0
roncoo-education-user/roncoo-education-user-service/pom.xml
roncoo-education-user/roncoo-education-user-service/pom.xml
+6
-0
未找到文件。
roncoo-education-course/roncoo-education-course-service/pom.xml
浏览文件 @
87b85528
...
...
@@ -78,6 +78,12 @@
<artifactId>
mysql-connector-java
</artifactId>
<scope>
runtime
</scope>
</dependency>
<!-- zipkin -->
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-zipkin
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
roncoo-education-server-zipkin/pom.xml
0 → 100644
浏览文件 @
87b85528
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
com.roncoo
</groupId>
<artifactId>
roncoo-education
</artifactId>
<version>
2.0.0-SNAPSHOT
</version>
</parent>
<artifactId>
roncoo-education-server-zipkin
</artifactId>
<dependencies>
<!-- zipkin -->
<dependency>
<groupId>
io.zipkin.java
</groupId>
<artifactId>
zipkin-server
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-slf4j-impl
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
io.zipkin.java
</groupId>
<artifactId>
zipkin-autoconfigure-ui
</artifactId>
</dependency>
<!-- security -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-security
</artifactId>
</dependency>
<!-- devtools -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
</dependency>
</dependencies>
<build>
<finalName>
server-zipkin
</finalName>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<executions>
<execution>
<goals>
<goal>
build-info
</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>
true
</executable>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
roncoo-education-server-zipkin/src/main/java/com/roncoo/education/server/zipkin/ServerZipkinApplication.java
0 → 100644
浏览文件 @
87b85528
/**
* Copyright 2015-现在 广州市领课网络科技有限公司
*/
package
com.roncoo.education.server.zipkin
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
zipkin2.server.internal.EnableZipkinServer
;
@EnableZipkinServer
@SpringBootApplication
public
class
ServerZipkinApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
ServerZipkinApplication
.
class
,
args
);
}
}
roncoo-education-server-zipkin/src/main/resources/application-dev.properties
0 → 100644
浏览文件 @
87b85528
# server
server.port
=
5781
# security
spring.security.user.name
=
roncoo
spring.security.user.password
=
123456
# zipkin 默认存储在内存,商业版本是存储到elasticsearch,通过 kafka
#zipkin.storage.type=elasticsearch
# elasticsearch
# ZipkinElasticsearchStorageProperties
# zipkin.storage.elasticsearch.hosts=http://172.16.6.235:9200/,http://172.16.6.236:9200/,http://172.16.6.237:9200/
# kafka
# ZipkinKafkaCollectorProperties
#zipkin.collector.kafka.bootstrap-servers=172.16.6.205:9092,172.16.6.206:9092,172.16.6.207:9092
#zipkin.collector.kafka.group_id=test-consumer-group
#zipkin.collector.kafka.topic=
#zipkin.collector.kafka.streams=
roncoo-education-server-zipkin/src/main/resources/application-local.properties
0 → 100644
浏览文件 @
87b85528
roncoo-education-server-zipkin/src/main/resources/application-prod.properties
0 → 100644
浏览文件 @
87b85528
roncoo-education-server-zipkin/src/main/resources/application-test.properties
0 → 100644
浏览文件 @
87b85528
roncoo-education-server-zipkin/src/main/resources/application.properties
0 → 100644
浏览文件 @
87b85528
# profiles
spring.profiles.active
=
dev
# application
spring.application.name
=
roncoo-education-server-zipkin
# logback
logging.config
=
classpath:logback-roncoo.xml
info.roncoo.logging.path
=
/home/roncoo/education/logs/server-zipkin
# info
info.build.name
=
@project.name@
info.build.description
=
@project.description@
info.build.groupId
=
@project.groupId@
info.build.artifact
=
@project.artifactId@
info.build.version
=
@project.version@
# metrics
management.metrics.web.server.auto-time-requests
=
false
roncoo-education-server-zipkin/src/main/resources/logback-roncoo.xml
0 → 100644
浏览文件 @
87b85528
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include
resource=
"org/springframework/boot/logging/logback/defaults.xml"
/>
<springProperty
name=
"springApplicationName"
source=
"spring.application.name"
defaultValue=
"roncoo-education"
/>
<springProperty
name=
"FILE_PATH"
source=
"info.roncoo.logging.path"
defaultValue=
"/home/roncoo/logs"
/>
<property
name=
"PATTERN"
value=
"%-12(%d{yyyy-MM-dd HH:mm:ss.SSS}) |-%-5level [%thread] %c [%L] -| %msg%n"
/>
<!-- 开发环境 -->
<springProfile
name=
"dev"
>
<appender
name=
"CONSOLE"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder>
<pattern>
${PATTERN}
</pattern>
</encoder>
</appender>
<logger
name=
"com.roncoo"
level=
"info"
/>
<root
level=
"warn"
>
<appender-ref
ref=
"CONSOLE"
/>
</root>
</springProfile>
<!-- 测试环境 -->
<springProfile
name=
"test"
>
<appender
name=
"CONSOLE"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder>
<pattern>
${PATTERN}
</pattern>
</encoder>
</appender>
<appender
name=
"TEST-FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<!-- 文件路径 -->
<file>
${FILE_PATH}/info
</file>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<!-- 文件名称 -->
<fileNamePattern>
${FILE_PATH}/info.%d{yyyy-MM-dd}.log
</fileNamePattern>
<!-- 文件最大保存历史数量 -->
<MaxHistory>
100
</MaxHistory>
</rollingPolicy>
<layout
class=
"ch.qos.logback.classic.PatternLayout"
>
<pattern>
${PATTERN}
</pattern>
</layout>
</appender>
<root
level=
"warn"
>
<appender-ref
ref=
"CONSOLE"
/>
<appender-ref
ref=
"TEST-FILE"
/>
</root>
</springProfile>
<!-- 生产环境 -->
<springProfile
name=
"prod"
>
<appender
name=
"PROD_FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<file>
${FILE_PATH}/warn
</file>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<fileNamePattern>
${FILE_PATH}/warn.%d{yyyy-MM-dd}.log
</fileNamePattern>
<MaxHistory>
100
</MaxHistory>
</rollingPolicy>
<layout
class=
"ch.qos.logback.classic.PatternLayout"
>
<pattern>
${PATTERN}
</pattern>
</layout>
</appender>
<root
level=
"warn"
>
<appender-ref
ref=
"PROD_FILE"
/>
</root>
</springProfile>
</configuration>
roncoo-education-system/roncoo-education-system-service/pom.xml
浏览文件 @
87b85528
...
...
@@ -69,6 +69,12 @@
<artifactId>
mysql-connector-java
</artifactId>
<scope>
runtime
</scope>
</dependency>
<!-- zipkin -->
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-zipkin
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
roncoo-education-user/roncoo-education-user-service/pom.xml
浏览文件 @
87b85528
...
...
@@ -85,6 +85,12 @@
<artifactId>
mysql-connector-java
</artifactId>
<scope>
runtime
</scope>
</dependency>
<!-- zipkin -->
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-zipkin
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录