Skip to content

Instantly share code, notes, and snippets.

@miketheman
Created December 31, 2015 21:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miketheman/f446f858bbde513346df to your computer and use it in GitHub Desktop.
Save miketheman/f446f858bbde513346df to your computer and use it in GitHub Desktop.
Datadog Agent Linux Entropy Available
from checks import AgentCheck
class LinuxEntropyCheck(AgentCheck):
def check(self, instance):
with open('/proc/sys/kernel/random/entropy_avail', 'r') as procfile:
data = procfile.read().strip()
self.gauge('system.kernel.entropy_available', int(data))
init_config:
instances:
# No configuration is needed for this check.
# A single instance needs to be defined with any value.
- foo: bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment