Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
java-devop-sentry
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouzihao
java-devop-sentry
Commits
c0e6df3b
Commit
c0e6df3b
authored
Mar 19, 2020
by
zhouzihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf 修改采样率
parent
59bdd6ad
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
19 deletions
+25
-19
README.md
README.md
+7
-3
src/main/java/com/vandyo/sentry/core/Tmp.java
src/main/java/com/vandyo/sentry/core/Tmp.java
+2
-2
src/main/resources/application.yaml
src/main/resources/application.yaml
+16
-14
No files found.
README.md
View file @
c0e6df3b
...
@@ -8,8 +8,9 @@
...
@@ -8,8 +8,9 @@
# Feature
# Feature
-
正常接口请求一组的时间间隔为5秒钟(配置的),也就是一分钟请求了12次。
-
正常接口请求一组的时间间隔为30秒钟(配置的),也就是一分钟请求了2次。
-
可以设置接口在时间段内出错个数。可以设置一个阈值。(建议设置成6次)。
-
可以设置接口在时间段内出错个数。可以设置一个阈值。(设置成3次,即错误率30%)。
-
每5分钟生成了报告。使用10个采样点。
## Deploy
## Deploy
修改配置
修改配置
...
@@ -37,6 +38,10 @@ checkmeta:
...
@@ -37,6 +38,10 @@ checkmeta:
"
[/car/my_car/list]"
:
6
"
[/car/my_car/list]"
:
6
"
[/carDynamic/api/status/car/state/get]"
:
6
"
[/carDynamic/api/status/car/state/get]"
:
6
test
:
2
test
:
2
# 邮箱配置方法
emailList[0]
:
"
1042181618@qq.com"
emailList[1]
:
"
jiaxiantao@vandyo.com"
emailList[2]
:
"
yuzhanyong@vandyo.com"
```
```
# 项目结构
# 项目结构
...
@@ -93,4 +98,3 @@ com.vandyo.sentry.core
...
@@ -93,4 +98,3 @@ com.vandyo.sentry.core
-
[
]
数据收集器依赖解耦
-
[
]
数据收集器依赖解耦
# ChangeLog
# ChangeLog
src/main/java/com/vandyo/sentry/core/Tmp.java
View file @
c0e6df3b
...
@@ -37,7 +37,7 @@ public class Tmp {
...
@@ -37,7 +37,7 @@ public class Tmp {
@Autowired
@Autowired
private
EmailDealer
emailDealer
;
private
EmailDealer
emailDealer
;
@Scheduled
(
fixedRate
=
500
0
)
@Scheduled
(
fixedRate
=
1000
*
3
0
)
public
void
test
()
{
public
void
test
()
{
log
.
info
(
"we run it {} times"
,
++
times
);
log
.
info
(
"we run it {} times"
,
++
times
);
Case
case1
=
null
;
Case
case1
=
null
;
...
@@ -80,7 +80,7 @@ public class Tmp {
...
@@ -80,7 +80,7 @@ public class Tmp {
log
.
info
(
"over!"
);
log
.
info
(
"over!"
);
}
}
@Scheduled
(
fixedRate
=
1000
*
60
)
@Scheduled
(
fixedRate
=
1000
*
60
*
5
)
public
void
check
()
{
public
void
check
()
{
Map
<
String
,
Map
<
ErrStatus
,
Long
>>
data
=
CollectionMachine
.
checkRule
(
5
);
Map
<
String
,
Map
<
ErrStatus
,
Long
>>
data
=
CollectionMachine
.
checkRule
(
5
);
String
info
=
JSONUtil
.
parseFromMap
(
data
).
toStringPretty
();
String
info
=
JSONUtil
.
parseFromMap
(
data
).
toStringPretty
();
...
...
src/main/resources/application.yaml
View file @
c0e6df3b
...
@@ -23,22 +23,24 @@ checkmeta:
...
@@ -23,22 +23,24 @@ checkmeta:
"
[/msg/msg_get]"
:
获取消息接口
"
[/msg/msg_get]"
:
获取消息接口
test
:
测试接口
test
:
测试接口
timeMap
:
timeMap
:
"
[/car/my_car/info]"
:
6
"
[/car/my_car/info]"
:
3
"
[/car/car_detect]"
:
6
"
[/car/car_detect]"
:
3
"
[/car/my_car/list]"
:
6
"
[/car/my_car/list]"
:
3
"
[/carDynamic/api/status/car/state/get]"
:
6
"
[/carDynamic/api/status/car/state/get]"
:
3
"
[/user/banner/list]"
:
6
"
[/user/banner/list]"
:
3
"
[/user/info/get]"
:
6
"
[/user/info/get]"
:
3
"
[/car/api/reprt/reportDay/get]"
:
6
"
[/car/api/reprt/reportDay/get]"
:
3
"
[/car/api/locus/list/page]"
:
6
"
[/car/api/locus/list/page]"
:
3
"
[/car/api/locus/points/list]"
:
6
"
[/car/api/locus/points/list]"
:
3
"
[/car/api/locus/statistics/get]"
:
6
"
[/car/api/locus/statistics/get]"
:
3
"
[/car/api/locus/event/v111]"
:
6
"
[/car/api/locus/event/v111]"
:
3
"
[/user/mall/goods/list]"
:
6
"
[/user/mall/goods/list]"
:
3
"
[/user/authorize/logout]"
:
6
"
[/user/authorize/logout]"
:
3
"
[/msg/msg_get]"
:
6
"
[/msg/msg_get]"
:
3
test
:
2
test
:
2
emailList[0]
:
"
1042181618@qq.com"
emailList[0]
:
"
1042181618@qq.com"
emailList[1]
:
"
jiaxiantao@vandyo.com"
emailList[2]
:
"
yuzhanyong@vandyo.com"
spring
:
spring
:
mail
:
mail
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment