SAM

module
v0.0.0-...-8fead6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2019 License: GPL-3.0

README

Build Status Go Report Card

SAM

Similar Alerts Manager - provides a way to see what alerts were firing at the same time historically. You can find more information here.

Purpose

The goal of SAM is to implement a similar kind of functionality that New Relic has when it shows what other alerts were firing around the same time.

Features

  • Shows all related alerts of any alert
  • Shows the information of an alert according to its hash
  • Shows when the internal database was last updated
  • Survives restarts through Redis

Command line arguments

Name Default value Purpose Example
--elasticsearch ES instance http://127.0.0.1:1234
--addr :9888 API listen address 0.0.0.0:1111
--redis Redis instance 127.0.0.1:5555
--cacheinterval 5 Interval between cache uploads in seconds 25
--esinterval 10 ES check interval in seconds 33
--esindex alertmanager ES index name foobar
--rediskey SAM Redis key name where data will be saved mycoolkey

Architecture

architecture

Main use-case

Running

A Docker image is available with SAM. Pull it down and run it with:

$ docker pull stag1e/sam:latest
$ docker run --rm -it -p 9888:9888 stag1e/sam --elasticsearch 'http://127.0.0.1:1234' --redis '127.0.0.1:3333'

Directories

Path Synopsis
cmd
pkg
alerts
Package alerts has functions and data types for storing alert information and calculating similar alerts.
Package alerts has functions and data types for storing alert information and calculating similar alerts.
api
cache
Package cache is used to store the alerts parser state into Redis.
Package cache is used to store the alerts parser state into Redis.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳