Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 623 Bytes

File metadata and controls

32 lines (23 loc) · 623 Bytes

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