Skip to content

Add disk timeout configuration option#6826

Merged
mx-psi merged 4 commits intomasterfrom
mx-psi/disk-timeout
Jun 9, 2020
Merged

Add disk timeout configuration option#6826
mx-psi merged 4 commits intomasterfrom
mx-psi/disk-timeout

Conversation

@mx-psi
Copy link
Copy Markdown
Member

@mx-psi mx-psi commented Jun 5, 2020

What does this PR do?

  • Add disk timeout configuration option to allow users to customize it for slow disks.
  • Rewrite warning to hint at the new configuration option

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have changelog/ and integration/ labels attached

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 5, 2020

AlexandreYang
AlexandreYang previously approved these changes Jun 5, 2020
Copy link
Copy Markdown
Member

@AlexandreYang AlexandreYang left a comment

Choose a reason for hiding this comment

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

Looks good to me. Just a nice to have feedback.

Comment thread disk/datadog_checks/disk/disk.py
hithwen
hithwen previously approved these changes Jun 5, 2020
* test_timeout_value which checks that every timeout call is done
  with the configuration value
* test_timeout_warning which checks that a warning is raised when
  the timeout raises an exception
albertvaka
albertvaka previously approved these changes Jun 8, 2020
Copy link
Copy Markdown
Contributor

@albertvaka albertvaka left a comment

Choose a reason for hiding this comment

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

LGTM. Nice test as well :)

Copy link
Copy Markdown
Member

@AlexandreYang AlexandreYang left a comment

Choose a reason for hiding this comment

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

Looks good. Thx for the test 👍

Just a small comment about logging.

Comment thread disk/datadog_checks/disk/disk.py Outdated
@mx-psi mx-psi merged commit d73fca0 into master Jun 9, 2020
@mx-psi mx-psi deleted the mx-psi/disk-timeout branch June 9, 2020 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants