Trendyol / es-alert-cli

ES Alert as a Code CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ES ALERT CLI

Description

ES ALERT CLI is an open-source project that facilitates the management of Elasticsearch monitoring configurations. The tool provides a CLI interface to upsert alerts, ensuring synchronization of your monitoring YAML with a remote Elasticsearch cluster.

Getting Started

To use this tool, follow the steps below:

  1. Install the necessary dependencies by running:

    go get -u github.com/Trendyol/es-alert-cli  
  2. Navigate to the project directory and build the CLI tool:

    go build -o es-alert-cli
  3. Run the tool with the -c and -n flags, providing your cluster IP and monitoring file name:

    ./es-alert-cli upsert -c <your_cluster_ip> -n <your_monitoring_file_name>

Command-Line Options

  • -c, --cluster: Specify the cluster IP to update.
  • -n, --filename: Specify the monitoring file name.

Features

  • Upsert command: Updates your monitoring YAML to the remote if any changes exist.
  • Synchronization of local and remote monitors.
  • Creation and update of monitors based on changes.

Usage

./es-alert-cli upsert -c <your_cluster_ip> -n <your_monitoring_file_name>

Code of Conduct

Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Libraries Used For This Project

Contribution

Contributions are welcome! Feel free to open issues, submit pull requests, or provide feedback.

License

This project is licensed under the MIT License.

Acknowledgments

  • Thanks to Trendyol for inspiration and collaboration.

About

ES Alert as a Code CLI

License:MIT License


Languages

Language:Go 94.6%Language:Shell 4.2%Language:Makefile 1.2%