Snap Collector Plugin. Plugin collects entropy metrics.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
entropy
examples/tasks
scripts
.gitignore
LICENSE
Makefile
README.md
main.go
metadata.yml

README.md

Snap Collector Plugin - Entropy

This plugin collects entropy metrics from file /proc/sys/kernel/random/entropy_avail.

It's used in the Snap framework.

  1. Getting Started

Getting Started

System Requirements

Operating Systems

  • Linux/amd64

Installation

Build the plugin binary:

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

Configuration and Usage

Load the plugin

$ snaptel plugin load build/linux/x86_64/snap-plugin-collector-entropy
$ snaptel metric list

Examples

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