This plugin collects entropy metrics from file /proc/sys/kernel/random/entropy_avail
.
It's used in the Snap framework.
- golang 1.5+ - needed only for building
- Linux/amd64
Fork https://github.com/janczer/snap-plugin-collector-entropy
Clone repo into $GOPATH/src/github.com/intelsdi-x/
:
$ git clone https://github.com/<yourGithubID>/snap-plugin-collector-entropy.git
Build the Snap entropy plugin by running make within the cloned repo:
$ make
It may take a while to pull dependencies if you haven't had them already.
This builds the plugin in ./build/linux/x86_64/snap-plugin-collector-entropy
- Set up the Snap framework
$ snaptel plugin load build/linux/x86_64/snap-plugin-collector-entropy
$ snaptel metric list
Create entropy-task.yaml:
---
version: 1
schedule:
type: "simple"
interval: "1s"
max-failures: 10
workflow:
collect:
metrics:
/janczer/procfs/entropy: {}
publish:
- plugin_name: "file"
config:
file: "/tmp/entropy_metrics.log"
Create task in Snap:
$ snaptel task create -t entropy-task.yaml