Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
f47ce8cc
Commit
f47ce8cc
authored
12 years ago
by
Benjamin Fiorini
Browse files
Options
Downloads
Patches
Plain Diff
mae : handle uncaught exception and add initialisation
parent
0d44de9d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
monitoring/mae/mae-consumer.py
+2
-0
2 additions, 0 deletions
monitoring/mae/mae-consumer.py
monitoring/mae/mae/analyzer.py
+7
-1
7 additions, 1 deletion
monitoring/mae/mae/analyzer.py
with
9 additions
and
1 deletion
monitoring/mae/mae-consumer.py
+
2
−
0
View file @
f47ce8cc
...
...
@@ -105,6 +105,8 @@ def main():
sys
.
exit
(
1
)
else
:
cockpit_enabled
=
False
cockpit_buffer_lock
=
None
cockpit_buffer
=
None
# Set config variables
metrics_path
=
conf
[
'
metrics_path
'
]
...
...
This diff is collapsed.
Click to expand it.
monitoring/mae/mae/analyzer.py
+
7
−
1
View file @
f47ce8cc
...
...
@@ -7,6 +7,7 @@ import time
from
messaging.message
import
Message
from
messaging.queue.dqs
import
DQS
from
messaging.error
import
MessageError
import
MetricsAnalysisEngine
...
...
@@ -41,7 +42,12 @@ class Analyzer(threading.Thread):
if
self
.
STOP_FLAG
.
isSet
():
return
if
self
.
_message_queue
.
lock
(
name
):
msg
=
self
.
_message_queue
.
get_message
(
name
)
try
:
msg
=
self
.
_message_queue
.
get_message
(
name
)
except
MessageError
,
exc
:
self
.
_message_queue
.
remove
(
name
)
logging
.
warning
(
"
Analyzer :
"
+
str
(
exc
))
continue
for
m
in
self
.
_parse
(
msg
):
self
.
_apply
(
m
)
try
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment