Skip to content
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

Update json reading logging #198

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Update json reading logging #198

merged 1 commit into from
Jan 25, 2024

Conversation

SuperQ
Copy link
Contributor

@SuperQ SuperQ commented Jan 22, 2024

Update the smartctl command reading and parsing of json logging to make for easier debugging of slow devices by adding a duration to the debug logging.

For #197

@bitfehler
Copy link
Contributor

I'd prefer to keep it a single log line, at the end, with "msg", "Collected S.M.A.R.T. json data", "device", device, "duration", time.Since(start)?

@SuperQ
Copy link
Contributor Author

SuperQ commented Jan 24, 2024

Sure, that's also fine.

Update the smartctl command reading and parsing of json logging to make
for easier debugging of slow devices by adding a duration to the debug
logging.

For #197

Signed-off-by: SuperQ <superq@gmail.com>
Copy link
Contributor

@bitfehler bitfehler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@SuperQ SuperQ merged commit 77e6b07 into master Jan 25, 2024
6 checks passed
@SuperQ SuperQ deleted the superq/debug_timing branch January 25, 2024 16:52
zxzharmlesszxz pushed a commit to zxzharmlesszxz/smartctl_exporter that referenced this pull request Mar 5, 2024
Update the smartctl command reading and parsing of json logging to make
for easier debugging of slow devices by adding a duration to the debug
logging.

For prometheus-community#197

Signed-off-by: SuperQ <superq@gmail.com>
Signed-off-by: mort <mort@syneforge.com>
zxzharmlesszxz pushed a commit to zxzharmlesszxz/smartctl_exporter that referenced this pull request Mar 5, 2024
Update the smartctl command reading and parsing of json logging to make
for easier debugging of slow devices by adding a duration to the debug
logging.

For prometheus-community#197

Signed-off-by: SuperQ <superq@gmail.com>
Signed-off-by: Denys <zxzharmlesszxz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants