█████╗ ███╗ ███╗████████╗██╗ ██╗██╗
██╔══██╗████╗ ████║╚══██╔══╝██║ ██║██║
███████║██╔████╔██║ ██║ ██║ ██║██║
██╔══██║██║╚██╔╝██║ ██║ ██║ ██║██║
██║ ██║██║ ╚═╝ ██║ ██║ ╚██████╔╝██║
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝
AMTUI is a terminal-based user interface (TUI) application that allows you to interact with Prometheus Alertmanager using your terminal. It provides a convenient way to monitor alerts, view silences, and check the status of Alertmanager instances right from your command line.
- View active alerts with details such as severity, alert name, and description.
- Browse and review existing silences in Alertmanager.
- Filter alerts and silences using matchers.
- Check the general status of your Alertmanager instance.
You can install AMTUI using the Homebrew package manager:
brew tap pehlicd/tap
brew install amtui
You can install AMTUI using the go install
command:
go install github.com/pehlicd/amtui@latest
You can download the latest release of AMTUI from the GitHub releases page.
To use AMTUI, you'll need to have Go installed on your system. Then, you can install AMTUI using the following steps:
- Clone the repository:
git clone https://github.com/pehlicd/amtui.git
- Navigate to the project directory:
cd amtui
- Build the application:
go build
- Run the application:
./amtui
Once you've launched AMTUI, you can navigate through different sections using the following keyboard shortcuts:
- Press
1
to view and interact with active alerts. - Press
2
to see existing silences. - Press
3
to check the general status of your Alertmanager instance.
q
: Quit the application.l
: Focus on the preview list.h
: Focus on the sidebar list.j
: Move focus to the preview.k
: Move focus to the preview list.CTRL + F
: Focus on the filter input.ESC
: Return focus to the sidebar list.
AMTUI uses a configuration file to connect to your Alertmanager instance. By default, the application will look for a configuration file at ~/.amtui.yaml
. If the configuration file doesn't exist, AMTUI will guide you through creating it with the necessary connection details.
You can also specify connection details using command-line flags:
amtui --host 127.0.0.1 --port 9093 --scheme http
AMTUI also supports basic authentication. You can specify the username and password using the --username
and --password
flags:
amtui --host 127.0.0.1 --port 9093 --scheme http --username admin --password admin
AMTUI uses the following dependencies:
github.com/gdamore/tcell/v2
: Terminal handling and screen painting.github.com/prometheus/alertmanager/api/v2/client
: Alertmanager API client.github.com/rivo/tview
: Terminal-based interactive viewer.github.com/spf13/pflag
: Flag parsing.github.com/spf13/viper
: Configuration management.
If you'd like to contribute to AMTUI, feel free to submit pull requests or open issues on the GitHub repository. Your feedback and contributions are highly appreciated!
This project is licensed under the MIT License - see the LICENSE file for details.
Developed by Furkan Pehlivan - Project Repository