-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Logs
jialianglinjl edited this page Jul 20, 2018
·
11 revisions
All interception logs will be recorded inn {user_home}/logs/csp/sentinel-block.log
:
2014-06-20 16:35:10|1|sayHello(java.lang.String,long),FlowException,default,origin|61,0
2014-06-20 16:35:11|1|sayHello(java.lang.String,long),FlowException,default,origin|1,0
-
2014-06-20 16:35:10
,timestamp; -
1
,index; -
sayHello(java.lang.String,long)
,resource; -
XXXException
,what kinds of rules。FlowException
for flow control,DegradeException
for circuit break,SystemException
for system protection -
default
for callers defined in rules; -
origin
,for the real caller of the request; -
61,0
,61 for block times,0 has no meaning, can be ignored
Metrics of resources can be recorded in {user_home}/logs/csp/{app_name}_{port}_metrics.log
:
1529573107000|2018-06-21 17:25:07|sayHello(java.lang.String,long)|10|10|3601|0|2
-
1529573107000
,timestamp; -
2018-06-21 17:25:07
,format datetime; -
sayHello(java.lang.String,long)
,resource; -
10
,incoming request count; -
10
,success handled count; -
3601
,blocked count; -
0
,biz exception count; -
2
,average response time。
Other info is recorded in {user_home}/logs/csp/record.log
。
-
文档
-
Documents
- Read Me
- Introduction
- How to Use
- How it Works
- Flow Control
- Parameter Flow Control
- Cluster Flow Control
- API Gateway Flow Control
- Circuit Breaking
- Adaptive System Protection
- Metrics
- General Configuration
- Dynamic Rule Configuration
- Dashboard
- Integrations with open-source frameworks
- Contribution Guideline