项目作者: SignifAi

项目描述 :
Publishes snap metrics/events to SignifAI metrics service
高级语言: Go
项目地址: git://github.com/SignifAi/snap-plugin-publisher-signifai.git
创建时间: 2017-05-14T05:26:11Z
项目社区:https://github.com/SignifAi/snap-plugin-publisher-signifai

开源协议:Apache License 2.0

下载


CircleCI
Hex.pm

snap-plugin-publisher-signifai

Publishes snap metrics/events to SignifAI metrics service.

SignifAI is a machine intelligence platform that helps TechOps teams get to answers faster by learning from their expertise, not generic algorithims. SignifAI helps TechOps deliver more uptime by intelligently prioritizing alerts, quickly identifying the root cause of an issue and correlating all the relevant log, events and metric data associated with the issue.

  1. Getting Started
  2. Documentation
  3. Community Support
  4. Contributing
  5. License
  6. Acknowledgements

Getting Started

System Requirements

Operating systems

All OSs currently supported by snap:

  • Linux/amd64
  • Darwin/amd64

Installation

Download signifai plugin binary:

You can get the pre-built binaries for your OS and architecture under the plugin’s release page. For Snap, check here.

To build the plugin binary:

Fork https://github.com/SignifAi/snap-plugin-publisher-signifai

Clone repo into $GOPATH/src/github.com/SignifAi/:

  1. $ git clone https://github.com/<yourGithubID>/snap-plugin-publisher-signifai.git

Building

The following provides instructions for building the plugin yourself if
you decided to download the source. We assume you already have a $GOPATH
setup for golang development. The
repository utilizes glide for
library management.

build:

  1. testing:
  2. ```make test

Configuration and Usage

Load the Plugin

Once the framework is up and running, you can load the plugin.

  1. $ snaptel plugin load snap-plugin-publisher-signifai
  2. Plugin loaded
  3. Name: signafai
  4. Version: 1
  5. Type: publisher
  6. Signed: false
  7. Loaded Time: Sat, 18 Mar 2017 13:28:45 PDT

Task File

You need to create or update a task file to use the signafai publisher
plugin. We have provided an example, _tasks/signifai.yaml shown below. In
our example, we utilize the psutil collector so we have some data to
work with. There is only a single required configuration parameter:

Setting|Description|Required?|
|———-|—————-|————-|
|token|The Signafai JWT token.|Yes|

  1. ---
  2. version: 1
  3. schedule:
  4. type: "simple"
  5. interval: "5s"
  6. max-failures: 10
  7. workflow:
  8. collect:
  9. config:
  10. metrics:
  11. /intel/psutil/load/load1: {}
  12. /intel/psutil/load/load15: {}
  13. /intel/psutil/load/load5: {}
  14. /intel/psutil/vm/available: {}
  15. /intel/psutil/vm/free: {}
  16. /intel/psutil/vm/used: {}
  17. publish:
  18. - plugin_name: "signifai-publisher"
  19. config:
  20. token: "1234ABCD"
  21. api: metrics
  22. application: Signifai

Once the task file has been created, you can create and watch the task.

  1. $ snaptel task create -t tasks/signafai.yaml
  2. Using task manifest to create task
  3. Task created
  4. ID: 72869b36-def6-47c4-9db2-822f93bb9d1f
  5. Name: Task-72869b36-def6-47c4-9db2-822f93bb9d1f
  6. State: Running
  7. $ snaptel task list
  8. ID NAME
  9. STATE ...
  10. 72869b36-def6-47c4-9db2-822f93bb9d1f
  11. Task-72869b36-def6-47c4-9db2-822f93bb9d1f Running ...

Documentation

https://docs.signifai.io

Roadmap

We keep working on more feature and will update the publisher as needed.

Community Support

Open an issue and we will respond.

Contributing We love contributions!

The most immediately helpful way you can benefit this plug-in is by cloning the repository, adding some further examples and submitting a pull request.

License

Released under the Apache 2.0 License.

Acknowledgements