https://github.com/miquido/alertmanager-webhook-forwarder
The project was made by Miquido. https://www.miquido.com/
https://github.com/miquido/alertmanager-webhook-forwarder
Last synced: about 1 year ago
JSON representation
The project was made by Miquido. https://www.miquido.com/
- Host: GitHub
- URL: https://github.com/miquido/alertmanager-webhook-forwarder
- Owner: miquido
- License: apache-2.0
- Created: 2019-05-14T12:22:25.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2023-02-25T04:45:55.000Z (over 3 years ago)
- Last Synced: 2025-02-23T03:42:21.555Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 183 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Alertmanager Webhook Forwarder
- [Alertmanager Webhook Forwarder](#alertmanager-webhook-forwarder)
- [Build Matrix](#build-matrix)
- [Docker Guide](#docker-guide)
- [Build](#build)
- [Run](#run)
- [Lint](#lint)
- [Go Guide](#go-guide)
- [Init](#init)
- [Run](#run-1)
- [Build](#build-1)
---
## Build Matrix
| CI Job | Branch [`develop`](https://github.com/miquido/alertmanager-webhook-forwarder/tree/develop) | Branch [`master`](https://github.com/miquido/alertmanager-webhook-forwarder/tree/master) |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Circle | [](https://circleci.com/gh/miquido/alertmanager-webhook-forwarder/tree/develop) | [](https://circleci.com/gh/miquido/alertmanager-webhook-forwarder/tree/master) |
## Docker Guide
### Build
```sh
docker-compose build --pull
```
### Run
```sh
docker-compose run --rm cli help
# or
docker-compose up server
# 2nd terminal
curl http://localhost:8080/healthz
```
### Lint
```sh
docker-compose run --rm go
```
## Go Guide
### Init
```sh
export GO111MODULE=on
go mod init
go mod download
go mod verify
```
### Run
```sh
go run main.go help
```
### Build
```sh
go build -o alertmanager-webhook-forwarder main.go
./alertmanager-webhook-forwarder help
```