Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (32 sloc) 2.53 KB

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

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'