Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
tas_monitor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9bb8e4bc
authored
Apr 08, 2022
by
陈森彬
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
712c66ca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
crawler_process.py
utils/es_api.py
crawler_process.py
View file @
9bb8e4bc
...
...
@@ -133,7 +133,6 @@ def main():
while
1
:
try
:
pi
=
get_crawler_process_info
()
print
(
pi
)
info_update
(
pi
)
except
Exception
:
logger
.
error
(
traceback
.
format_exc
())
...
...
utils/es_api.py
View file @
9bb8e4bc
...
...
@@ -90,7 +90,7 @@ def get_task_error_rate(time_range=30, error_rate=30):
"query"
:
{
"range"
:
{
"@timestamp"
:
{
"gte"
:
utc_since
.
strftime
(
"
%
Y-
%
m-
%
dT
%
H:
%
M:
%
SZ"
)
"gte"
:
utc_since
.
strftime
(
"
%
Y-
%
m-
%
dT
%
H:
%
M:
%
S
.000
Z"
)
}
}
},
...
...
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