Giter VIP home page Giter VIP logo

go-vigil-reporter's Introduction

go-vigil-reporter

Test and Build Buy Me A Coffee

Vigil Reporter for Golang. Used in pair with Vigil, the Microservices Status Page.

Vigil Reporter is used to actively submit health information to Vigil from your apps. Apps are best monitored via application probes, which are able to report detailed system information such as CPU and RAM load. This lets Vigil show if an application host system is under high load.

๐Ÿ‡ญ๐Ÿ‡บ Crafted in Budapest, Hungary.

Who uses it?

๐Ÿ‘‹ You use vigil-reporter and you want to be listed there? Contact me.

How to use?

Create reporter

vigil-reporter can be instantiated as such:

import (
  Reporter "github.com/valeriansaliou/go-vigil-reporter/vigil_reporter"
  "time"
)

// Build reporter
// `page_url` + `reporter_token` from Vigil `config.cfg`
builder := Reporter.New("https://status.example.com", "YOUR_TOKEN_SECRET")

// Probe ID containing the parent Node for Replica
// Node ID containing Replica
// Unique Replica ID for instance (ie. your IP on the LAN)
// Reporting interval (in seconds; defaults to 30 seconds if not set)
reporter := builder.ProbeID("relay").NodeID("socket-client").ReplicaID("192.168.1.10").Interval(time.Duration(30 * time.Second)).Build()

// Run reporter (starts reporting)
reporter.Run()

What is Vigil?

โ„น๏ธ Wondering what Vigil is? Check out valeriansaliou/vigil.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.