Documentation ¶
Overview ¶
Revere is an alerting system for medium-sized microservices architectures.
Usage:
revere [-conf env.json] [-mode mode,...]
Configuration ¶
The -conf flag specifies the path to a JSON file configuring Revere's static environment. When no file is specified, Revere uses its default settings.
See github.com/yext/revere/env.EnvJSONModel for the structure the JSON in this file should take.
Modes ¶
The -mode flag specifies the comma-separated modes that this invocation of Revere should run.
The initdb mode initializes Revere's database storage. Depending on whether there are existing Revere tables in the database specified by the environment configuration, this mode either creates a new storage area from scratch or updates an existing area to the current schema. This mode cannot be combined with any other modes.
The daemon mode runs the daemon that monitors systems and generates alerts.
The web mode serves the HTTP UI for administering Revere and viewing its current state.
The -mode flag defaults to daemon,web.
Directories ¶
Path | Synopsis |
---|---|
Package boxes is a wrapper around a set of go.rice boxes created by a go.rice Config defined to first look for files in the package directory, and then in the binary.
|
Package boxes is a wrapper around a set of go.rice boxes created by a go.rice Config defined to first look for files in the package directory, and then in the binary. |
Package daemon implements the core engine for Revere's daemon mode.
|
Package daemon implements the core engine for Revere's daemon mode. |
Package db encapsulates all interaction with Revere's backing database storage.
|
Package db encapsulates all interaction with Revere's backing database storage. |
Package durationfmt formats durations for easier human consumption.
|
Package durationfmt formats durations for easier human consumption. |
Package env handles Revere's static environment.
|
Package env handles Revere's static environment. |
Package probe implements the ways Revere can measure the outside world.
|
Package probe implements the ways Revere can measure the outside world. |
Package settings provides a framework for adding custom settings to your-revere.com/settings/ page.
|
Package settings provides a framework for adding custom settings to your-revere.com/settings/ page. |
Package state defines the set of states monitored services can be in in Revere's view.
|
Package state defines the set of states monitored services can be in in Revere's view. |
Package target implements the ways Revere can alert people to problems.
|
Package target implements the ways Revere can alert people to problems. |
Package web handles all web-based user interaction.
|
Package web handles all web-based user interaction. |
server
Package server implements the core engine for Revere's web mode.
|
Package server implements the core engine for Revere's web mode. |
tmpl
Package tmpl provides a wrapper around golang's html/template package, and provides additional template manipulation functions.
|
Package tmpl provides a wrapper around golang's html/template package, and provides additional template manipulation functions. |
vm
Package vm represents the intermediate step between a revere db struct and a renderable front-end struct.
|
Package vm represents the intermediate step between a revere db struct and a renderable front-end struct. |
vm/renderables
Package renderables processes package vm structs and bundles them with the appropriate metadata, html templates, and scripts to create a fully functional web page.
|
Package renderables processes package vm structs and bundles them with the appropriate metadata, html templates, and scripts to create a fully functional web page. |