Created
December 31, 2015 21:11
-
-
Save miketheman/f446f858bbde513346df to your computer and use it in GitHub Desktop.
Datadog Agent Linux Entropy Available
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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