Skip to content

janczer/snap-plugin-collector-entropy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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