Discover Packages
github.com/GiedriusS/SAM
module
Version:
v0.0.0-...-8fead6e
Opens a new window with list of versions in this module.
Published: Feb 2, 2019
License: GPL-3.0
Opens a new window with license information.
README
README
¶
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
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'
Expand ▾
Collapse ▴
Directories
¶
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.
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.
Click to show internal directories.
Click to hide internal directories.