-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added monitoring namespace based on pid, tid and hostname #1222
Conversation
efddd11
to
7e28316
Compare
Codecov ReportBase: 71.70% // Head: 71.36% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #1222 +/- ##
==========================================
- Coverage 71.70% 71.36% -0.34%
==========================================
Files 284 285 +1
Lines 13639 13656 +17
==========================================
- Hits 9780 9746 -34
- Misses 3859 3910 +51
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
src/neptune/internal/init/run.py
Outdated
@@ -141,25 +143,25 @@ def init_run( | |||
Unix style pathname pattern expansion is supported. For example, you can pass `*.py` to upload | |||
all Python files from the current directory. | |||
If None is passed, the Python file from which the run was created will be uploaded. | |||
capture_stdout: Whether to log the stdout of the run. Defaults to True. | |||
TODO: capture_stdout: Whether to log the stdout of the run. Defaults to True. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@normandy7 I need you here 🚀. After this PR we're going to log all monitoring metadata (CPU, GPU, memory usage, standard console output etc.) under monitoring/<some-hash>
for instance monitoring/ab8c2f0d
. This hash will be generated based on some environment information (network name of user computer, process identifier, thread identifier). I really have no idea how to rephrase it properly. Could you help me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I'll propose something.
import hashlib | ||
|
||
|
||
def generate_hash(*descriptors, length: int = 8): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a fan of such default value. Probably should be explicitly set to 8.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Before submitting checklist