Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amctx: Context manager for amtool

Written in go

Summary

amctx is a cli tool to switch between Alertmanager instances for amtool. It works by editing the ~/.config/amtool/config.yml file. The aliases are stored in ~/.config/amctx/config.yml

Installation

go install github.com/Mohamed-elg/amctx@latest

Usage

# add an alias
$ amctx prod=http://localhost:9093
alias 'prod' set with url: http://localhost:9093

# switch to another Alertmanager
$ amctx prod
switched to context 'prod'.

# list aliases
$ amctx
prod
dev

About

Context manager for amtool

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages