Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
ops
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangwei
ops
Commits
33597d53
Commit
33597d53
authored
Mar 16, 2017
by
zhangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加les配置
parent
fa729f6d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
cms_log.py
cms_log/cms_log/cms_log.py
+0
-1
cms_config_check_log.json
cms_log/cms_log/config/cms_config_check_log.json
+5
-0
No files found.
cms_log/cms_log/cms_log.py
View file @
33597d53
...
@@ -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)
...
...
cms_log/cms_log/config/cms_config_check_log.json
View file @
33597d53
...
@@ -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'"
}
}
]
]
}
}
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