Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
monitoring
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Deike, Benedikt
monitoring
Commits
fe96cf7f
Commit
fe96cf7f
authored
3 years ago
by
bav6096
Browse files
Options
Downloads
Patches
Plain Diff
testing
parent
1ec5a206
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
nodes/monitor_test_1
+2
-2
2 additions, 2 deletions
nodes/monitor_test_1
nodes/monitor_test_2
+2
-2
2 additions, 2 deletions
nodes/monitor_test_2
nodes/monitor_test_3
+2
-2
2 additions, 2 deletions
nodes/monitor_test_3
with
6 additions
and
6 deletions
nodes/monitor_test_1
+
2
−
2
View file @
fe96cf7f
...
...
@@ -6,9 +6,9 @@ from monitoring.monitor import Monitor
def
monitor_test_1
():
rospy
.
init_node
(
"
monitor_test_1
"
)
monitor
=
Monitor
(
1
,
1.0
)
monitor
=
Monitor
(
1
,
0.2
)
rate
=
rospy
.
Rate
(
1
0
)
rate
=
rospy
.
Rate
(
0
.2
)
while
not
rospy
.
is_shutdown
():
monitor
.
update_metric
(
"
test_domain_1
"
,
"
test_label_1
"
,
10
,
"
unit
"
,
0.5
)
rate
.
sleep
()
...
...
This diff is collapsed.
Click to expand it.
nodes/monitor_test_2
+
2
−
2
View file @
fe96cf7f
...
...
@@ -6,9 +6,9 @@ from monitoring.monitor import Monitor
def
monitor_test_2
():
rospy
.
init_node
(
"
monitor_test_2
"
)
monitor
=
Monitor
(
1
,
1.0
)
monitor
=
Monitor
(
1
,
0.2
)
rate
=
rospy
.
Rate
(
10
)
rate
=
rospy
.
Rate
(
1
.
0
)
value
=
0
while
not
rospy
.
is_shutdown
():
monitor
.
update_metric
(
"
test_domain_1
"
,
"
test_label_2
"
,
10
,
"
unit
"
,
value
)
...
...
This diff is collapsed.
Click to expand it.
nodes/monitor_test_3
+
2
−
2
View file @
fe96cf7f
...
...
@@ -6,9 +6,9 @@ from monitoring.monitor import Monitor
def
monitor_test_3
():
rospy
.
init_node
(
"
monitor_test_3
"
)
monitor
=
Monitor
(
1
,
1.0
)
monitor
=
Monitor
(
1
,
0.2
)
rate
=
rospy
.
Rate
(
1
0
)
rate
=
rospy
.
Rate
(
0
.2
)
while
not
rospy
.
is_shutdown
():
monitor
.
update_metric
(
"
test_domain_2
"
,
"
test_label_3
"
,
10
,
"
unit
"
,
1.0
)
rate
.
sleep
()
...
...
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