Skip to content
This repository has been archived by the owner on Jun 12, 2019. It is now read-only.

Latest commit

 

History

History
85 lines (70 loc) · 2.46 KB

README.md

File metadata and controls

85 lines (70 loc) · 2.46 KB

Snap publisher plugin - Warp10

This plugin publishes metrics to Warp10

  1. Getting Started
  1. Documentation
  1. License

System Requirements

Installation

To build the plugin binary:

This will build the plugin binary in your $GOPATH/bin

$ go get github.com/gregleroux/snap-plugin-publisher-warp10

Build the plugin by running make in the repo:

$ make

This builds the plugin in ./build

Configuration and Usage

Documentation

Task Manifest Config

A Task Manifest that includes the publishing to warp10 will require configuration data in order for the plugin to establish a connection. Config arguments include:

  • "warp_url" (required) - the adress of warp10 host.
  • "token" (required) - warp10 token .

Examples


Create a [task manifest](https://github.com/intelsdi-x/snap/blob/master/docs/TASKS.md) (see [exemplary tasks](examples/tasks/)),
for example `psutil-warp10-simple.json` with following content:
```json
{
    "version": 1,
    "schedule": {
        "type": "simple",
        "interval": "30s"
    },
    "max-failures":10,
    "workflow": {
        "collect": {
            "metrics": {
                "/intel/psutil/load/load1": {},
                "/intel/psutil/load/load5": {},
                "/intel/psutil/load/load15": {},
                "/intel/psutil/cpu/cpu-total/user": {},
                "/intel/psutil/cpu/cpu-total/iowait": {},
                "/intel/psutil/cpu/cpu-total/system": {},
                "/intel/procfs/meminfo/mem_used": {}
            },
          },
          "publish": [
              {
              "plugin_name": "warp10",
                  "config": {
                      "warp_url": "https://127.0.0.1/api/v0/update",
                      "token": "xxxxxxxxx"
                      }
              }
          ]
        }
    }
}

License

License