Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6 from Showmax/code_refactor
Browse files Browse the repository at this point in the history
Code refactor Python 3.9
  • Loading branch information
zloo authored Jun 16, 2022
2 parents 5403b27 + fde88ef commit 4c5c5a5
Show file tree
Hide file tree
Showing 3 changed files with 404 additions and 322 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ daemon.
You can either use this as a standalone exporter that listens on an HTTP port, or use it to save data
on disk in a .prom file either periodically or just once, and run it from cron or something similar.

Warning: since 0.3.0, the code relies on Python3 specific code. If you need to use Python2, use
the 0.2.6 version.
**_WARNING_**: Since version 0.5.0 Python 3.9+ is required.

**_WARNING_**: Since version 0.3.0 Python 3.0+ is required. If you need to use Python2, use the 0.2.6 version.

# Usage
```
usage: ethtool-exporter.py [-h] (-f TEXTFILE_NAME | -l LISTEN | -p PORT)
Expand All @@ -38,6 +40,7 @@ optional arguments:
-1, --oneshot Run only once and exit. Useful for running in a
cronjob
-q, --quiet Silence any error messages and warnings
--debug Set logging level to DEBUG and see more log lines.
-w WHITELIST_REGEX, --whitelist-regex WHITELIST_REGEX
Only include values whose name matches this regex. -w
and -b are mutually exclusive
Expand Down
2 changes: 1 addition & 1 deletion deploy/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
prometheus_client==0.5.0 --hash=sha256:e8c11ff5ca53de6c3d91e1510500611cafd1d247a937ec6c588a0a7cc3bef93c
prometheus_client==0.14.1 --hash=sha256:5459c427624961076277fdc6dc50540e2bacb98eebde99886e59ec55ed92093a
Loading

0 comments on commit 4c5c5a5

Please sign in to comment.