Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Koch
monitoring-ws20
Commits
bc5e4178
Commit
bc5e4178
authored
Nov 27, 2021
by
wolfsack
Browse files
..
parent
1e6941a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
project/pi/app/metrics.py
View file @
bc5e4178
import
os
import
platform
import
psutil
from
vcgencmd
import
Vcgencmd
from
metric
import
Metric
...
...
@@ -69,6 +73,14 @@ def metrics():
}
)]
print
(
os
.
name
)
print
(
platform
.
system
())
# raspberry pi exclusive
vcgm
=
Vcgencmd
()
output
=
vcgm
.
version
()
print
(
output
)
for
partition
in
partitions
:
disk
=
psutil
.
disk_usage
(
partition
[
1
])
metrics_list
.
append
(
...
...
project/pi/requirements.txt
View file @
bc5e4178
...
...
@@ -6,4 +6,4 @@ Jinja2==3.0.3
MarkupSafe==2.0.1
psutil==5.8.0
Werkzeug==2.0.2
vcgencmd~=0.1.1
\ No newline at end of file
Write
Preview
Supports
Markdown
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