Skip to content

Instantly share code, notes, and snippets.

View morganfletcher's full-sized avatar

Morgan Fletcher morganfletcher

  • San Francisco, CA
View GitHub Profile
@morganfletcher
morganfletcher / process.yaml
Created September 19, 2014 16:56
process check with datadog
init_config:
instances:
# - name: (required) STRING. It will be used to uniquely identify your metrics as they will be tagged with this name
# search_string: (required) LIST OF STRINGS. If one of the elements in the list matches,
# return the counter of all the processes that contain the string
# exact_match: (optional) Boolean. Default to True, if you want to look for an arbitrary
# string, use exact_match: False
# cpu_check_interval: (optional) CPU percent check interval: 0.1 - 1.0 sec.
# ignore_denied_access: (optional) Boolean. Default to True, when getting the number of files descriptors, dd-agent user might
@morganfletcher
morganfletcher / gist:5001060
Created February 21, 2013 00:56
anchor pattern attempt
class base {
anchor { 'base::begin': }
anchor { 'base::end': }
class{'yumrepos':
require => Anchor['base::begin'],
}
class{'base::dependant_module':
require => Class['yumrepos'],