Skip to content

davidaparicio/ambari-to-opsgenie

Repository files navigation

Ambari to Opsgenie

Ambari-to-Opsgenie logo

Docs Go Report Card Github GitLab Froggit License FOSSA Status Maintenance Twitter

Security Rating Vulnerabilities

This Go server forwards Ambari alerts to OpsGenie.

Some extensions have been added like Blinky or xbar integration (for MacOS).

Installation

age-keygen -o secrets/age.key > secrets/public_age.key 2>&1

Configuration

Edit with correct information and generate the new configuration file with

export SOPS_AGE_RECIPIENTS=$(<secrets/public_age.key)
sops --encrypt --age ${SOPS_AGE_RECIPIENTS} configs/config.yaml > configs/config.enc.yaml

Usage

First, for in-flight decryption purposes, you need to specify your AGE private key, only, if it's not in secrets/age.key with this command

export SOPS_AGE_KEY_FILE="/TOCHANGETO/Your/Path/Of/Your/AGE/Private.key"

For Mac OS, xbar+Blinky integrations inside the script /scripts/xbar_alert.5m.sh

or manually with

go run cmd/xbar/main.go

If needed, you can run a very simple mockserver of Ambari

go run cmd/mockserver/main.go

Contribute

Works on my machine - and yours ! Spin up pre-configured, standardized dev environments of this repository, by clicking on the button below.

Open in Gitpod

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Licensed under the MIT License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. You may obtain a copy of the License here.

If needed some help, there are a "Licenses 101" by FOSSA, a Snyk explanation of MIT license and a French conference talk by Jean-Michael Legait about licenses.

About

Go CLI to forward Ambari alerts to Opsgenie

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published