Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
flink-monitor
Project
Project
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵建伟
flink-monitor
Commits
bf5f978d
Commit
bf5f978d
authored
Mar 19, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
01a6a305
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
crontab
docs/crontab
+2
-2
statistics.py
libs/statistics.py
+2
-0
No files found.
docs/crontab
View file @
bf5f978d
*/10 * * * * python /srv/apps/flink-monitor/shs/statistics.py
*/10 * * * * /usr/local/bin/python2.7 /srv/apps/flink-monitor/libs/statistics.py
\ No newline at end of file
\ No newline at end of file
libs/statistics.py
View file @
bf5f978d
...
@@ -133,6 +133,8 @@ def check_is_ok():
...
@@ -133,6 +133,8 @@ def check_is_ok():
if
shd_dic
.
get
(
suc
[
0
])
!=
suc
[
1
]:
if
shd_dic
.
get
(
suc
[
0
])
!=
suc
[
1
]:
is_send
=
True
is_send
=
True
error_msg
+=
"【"
+
mapping_dic
.
get
(
suc
[
0
])
+
"】打点异常,应打点个数为:"
+
bytes
(
shd_dic
.
get
(
suc
[
0
]))
+
",实际打点个数为:"
+
bytes
(
suc
[
1
])
+
", 请核实!
\n
"
error_msg
+=
"【"
+
mapping_dic
.
get
(
suc
[
0
])
+
"】打点异常,应打点个数为:"
+
bytes
(
shd_dic
.
get
(
suc
[
0
]))
+
",实际打点个数为:"
+
bytes
(
suc
[
1
])
+
", 请核实!
\n
"
else
:
print
"all is ok!"
if
is_send
:
if
is_send
:
logging
.
error
(
error_msg
)
logging
.
error
(
error_msg
)
...
...
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