Commit 33597d53 by zhangwei

增加les配置

parent fa729f6d
...@@ -28,7 +28,6 @@ def check_log(project_name): ...@@ -28,7 +28,6 @@ def check_log(project_name):
Log_Change_Time = curr_secs - log_secs Log_Change_Time = curr_secs - log_secs
fields = dimensions.replace("project",project_name) fields = dimensions.replace("project",project_name)
#print("time: "+str(Log_Change_Time))
print(Log_Change_Time) print(Log_Change_Time)
#cms_post.post(ali_uid, metric_name, Log_Change_Time, unit, fields) #cms_post.post(ali_uid, metric_name, Log_Change_Time, unit, fields)
#strlog = '|%s|%s|%d|%s|%s|' % (ali_uid, metric_name, Log_Change_Time, unit, fields) #strlog = '|%s|%s|%d|%s|%s|' % (ali_uid, metric_name, Log_Change_Time, unit, fields)
......
...@@ -34,6 +34,11 @@ ...@@ -34,6 +34,11 @@
"project_name": "summer-hill", "project_name": "summer-hill",
"log_file": "/web/shenlan/summer-hill/protected/runtime/app.log", "log_file": "/web/shenlan/summer-hill/protected/runtime/app.log",
"check_string": "'error'" "check_string": "'error'"
},
{
"project_name": "les",
"log_file": "/var/lib/docker/volumes/570bfcafdfdd027b1dceba1ae2f5003ec28f92a86cb53b670c8cb11b37ca6a7d/_data/app.log",
"check_string": "'error'"
} }
] ]
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment