Skip to content

Commit

Permalink
去除不需要upload的jar,修改readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi Qian committed Nov 14, 2017
1 parent 8ad0d60 commit 999f47b
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 98 deletions.
36 changes: 10 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# SkyEye
对java、scala等运行于jvm的程序进行实时日志采集、索引和可视化,对系统进行进程级别的监控,对系统内部的操作进行策略性的报警、对分布式的rpc调用进行trace跟踪以便于进行性能分析

# 交流方式

1. QQ群: 624054633
2. Email: leviqian@sina.com
3. blog: [blog](http://blog.csdn.net/jthink_)

# 架构
![](architecture.png)
- APP: 接入skyeye-client的系统会通过kafkaAppender向kafka写入日志
Expand Down Expand Up @@ -31,39 +38,21 @@

# 部署步骤

每个项目都需要修改gradle文件中的私服地址(这样才能打包deploy到自己的本地私服)
可以使用新增的打包脚本:bash build.sh(所有的jar包都会上传到私服和install到本地, 可运行项目依旧打在各自的target下)

- clean ./build --clean
- 打包 ./build --build
修改根目录gradle文件中的私服地址(这样才能打包deploy到自己的本地私服)
打包:gradle clean install upload -x test

## skyeye-base

本项目没有具体的业务逻辑,主要是各个模块通用的类定义,如:常量、dto、dapper相关、公用util,所以该项目无需部署,只需要打包。

```shell
cd skyeye-base
gradle clean install uploadArchives
```

## skyeye-client

本项目主要是提供给对接的项目使用,包含了log4j和logback的自定义appender和项目注册相关,所以该项目无需部署,只需要打包提供给对接方对接。

```shell
cd skyeye-client
gradle clean install uploadArchives
```

## skyeye-data

本项目主要是用来提供和数据操作相关的中间件,具体分为以下5个子modoule。本项目无需部署,只需要打包。

```shell
cd skyeye-data
gradle clean install uploadArchives
```

### skyeye-data-dubbox

该项目主要是自定义的spring-boot的dubbox starter,为spring-boot相关的项目使用dubbox提供简易的方式并集成spring-boot的auto configuration,见我的另一个开源项目:[spring-boot-starter-dubbox](https://github.com/JThink/spring-boot-starter-dubbox)
Expand Down Expand Up @@ -597,7 +586,7 @@ compile "skyeye:skyeye-client-log4j:1.2.0"
</layout>
</appender>
```
## Log4j2
## log4j2
### 依赖
Expand Down Expand Up @@ -696,8 +685,3 @@ LOGGER.info(EventLog.buildEventLog(EventType.thirdparty_call, "xx1", 100, EventL
LOGGER.info(EventLog.buildEventLog(EventType.thirdparty_call, "xx2", 100, EventLog.MONITOR_STATUS_SUCCESS, "我是mock third 成功日志").toString());
LOGGER.info(EventLog.buildEventLog(EventType.thirdparty_call, "xx2", 100, EventLog.MONITOR_STATUS_FAILED, "我是mock third 失败日志").toString());
```
# 交流方式
1. QQ群: 624054633
2. Email: leviqian@sina.com
3. blog: http://blog.csdn.net/jthink_
40 changes: 20 additions & 20 deletions skyeye-base/build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives sourcesJar
}
//task sourcesJar(type: Jar, dependsOn: classes) {
// classifier = 'sources'
// from sourceSets.main.allSource
//}
//
//artifacts {
// archives sourcesJar
//}

uploadArchives {
repositories {
mavenDeployer {
repository(url: mavenReleaseUrl) {
authentication(userName: 'admin', password: 'admin123')
}
snapshotRepository(url: mavenSnapshotUrl) {
authentication(userName: 'admin', password: 'admin123')
}
}
}
}
//uploadArchives {
// repositories {
// mavenDeployer {
// repository(url: mavenReleaseUrl) {
// authentication(userName: 'admin', password: 'admin123')
// }
// snapshotRepository(url: mavenSnapshotUrl) {
// authentication(userName: 'admin', password: 'admin123')
// }
// }
// }
//}

dependencies {

Expand Down
20 changes: 10 additions & 10 deletions skyeye-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ compile "skyeye:skyeye-client-log4j:1.2.0"
</layout>
</appender>
```
## Log4j2
## log4j2

### 依赖

Expand Down Expand Up @@ -127,15 +127,15 @@ http://blog.csdn.net/jthink_/article/details/73106745

## 埋点对接
### 日志类型
日志类型 | 说明
:------ |:-----
normal | 正常入库日志
invoke_interface | api调用日志
middleware_opt | 中间件操作日志(目前仅支持hbase和mongo)
job_execute | job执行日志
rpc_trace | rpc trace跟踪日志
custom_log | 自定义埋点日志
thirdparty_call | 第三方系统调用日志
| 日志类型 | 说明 |
| :--------------- | :------------------------ |
| normal | 正常入库日志 |
| invoke_interface | api调用日志 |
| middleware_opt | 中间件操作日志(目前仅支持hbase和mongo) |
| job_execute | job执行日志 |
| rpc_trace | rpc trace跟踪日志 |
| custom_log | 自定义埋点日志 |
| thirdparty_call | 第三方系统调用日志 |
### 正常日志

``` shell
Expand Down
42 changes: 21 additions & 21 deletions skyeye-data/build.gradle
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
allprojects {

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives sourcesJar
}

uploadArchives {
repositories {
mavenDeployer {
repository(url: mavenReleaseUrl) {
authentication(userName: 'admin', password: 'admin123')
}
snapshotRepository(url: mavenSnapshotUrl) {
authentication(userName: 'admin', password: 'admin123')
}
}
}
}
// task sourcesJar(type: Jar, dependsOn: classes) {
// classifier = 'sources'
// from sourceSets.main.allSource
// }
//
// artifacts {
// archives sourcesJar
// }
//
// uploadArchives {
// repositories {
// mavenDeployer {
// repository(url: mavenReleaseUrl) {
// authentication(userName: 'admin', password: 'admin123')
// }
// snapshotRepository(url: mavenSnapshotUrl) {
// authentication(userName: 'admin', password: 'admin123')
// }
// }
// }
// }
}

subprojects {
Expand Down
42 changes: 21 additions & 21 deletions skyeye-trace/build.gradle
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
allprojects {

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives sourcesJar
}

uploadArchives {
repositories {
mavenDeployer {
repository(url: mavenReleaseUrl) {
authentication(userName: 'admin', password: 'admin123')
}
snapshotRepository(url: mavenSnapshotUrl) {
authentication(userName: 'admin', password: 'admin123')
}
}
}
}
// task sourcesJar(type: Jar, dependsOn: classes) {
// classifier = 'sources'
// from sourceSets.main.allSource
// }
//
// artifacts {
// archives sourcesJar
// }
//
// uploadArchives {
// repositories {
// mavenDeployer {
// repository(url: mavenReleaseUrl) {
// authentication(userName: 'admin', password: 'admin123')
// }
// snapshotRepository(url: mavenSnapshotUrl) {
// authentication(userName: 'admin', password: 'admin123')
// }
// }
// }
// }
}

subprojects {
Expand Down

0 comments on commit 999f47b

Please sign in to comment.