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

Directory check #581

Merged
merged 4 commits into from
Jul 31, 2013
Merged

Directory check #581

merged 4 commits into from
Jul 31, 2013

Conversation

brettlangdon
Copy link
Member

Not sure if this is the most useful check for you guys to have, but we intend to use it for alerts.

basically we have directories which have log files that are rotates every so often and then they get uploaded to s3 and deleted. We want to use a check like this to setup alerts for when the age of a file is too old or when there are more files than expected in a directory.

@clofresh
Copy link
Contributor

Cool, thanks for this check Brett, I've wanted to do this for a while but never got around to it. One small thing before merging, we try to stay compatible with python 2.4, do you think you can switch the .format() string formatting to %-style formatting?

@brettlangdon
Copy link
Member Author

@clofresh no problem, done.

@clutchski
Copy link
Contributor

Cool! One more small recommendation. Can we prefix the dirs with system.disk so that it show up alongside other disk metrics?

@brettlangdon
Copy link
Member Author

@clutchski what do you mean? prefix the metric names with system.disk?

@clutchski
Copy link
Contributor

Yes, exactly. Sorry that wasn't super clear ;)

@brettlangdon
Copy link
Member Author

@clutchski no problem, just wanted to make sure I got it right :)

@elijahandrews
Copy link
Contributor

Merging. Thanks @brettlangdon!

elijahandrews added a commit that referenced this pull request Jul 31, 2013
@elijahandrews elijahandrews merged commit ecfe4c9 into DataDog:master Jul 31, 2013
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

4 participants