https://github.com/oxyno-zeta/prometheus-cachethq
Prometheus Alertmanager wehbooks to CachetHQ
https://github.com/oxyno-zeta/prometheus-cachethq
alertmanager alertmanager-webhook cachethq incident prometheus webhooks
Last synced: 10 months ago
JSON representation
Prometheus Alertmanager wehbooks to CachetHQ
- Host: GitHub
- URL: https://github.com/oxyno-zeta/prometheus-cachethq
- Owner: oxyno-zeta
- License: apache-2.0
- Created: 2019-11-14T22:24:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-23T13:18:57.000Z (over 2 years ago)
- Last Synced: 2025-03-27T12:07:23.058Z (about 1 year ago)
- Topics: alertmanager, alertmanager-webhook, cachethq, incident, prometheus, webhooks
- Language: Go
- Homepage: https://oxyno-zeta.github.io/prometheus-cachethq/
- Size: 159 KB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Prometheus-CachetHQ
[](https://circleci.com/gh/oxyno-zeta/prometheus-cachethq/tree/master) [](https://goreportcard.com/report/github.com/oxyno-zeta/prometheus-cachethq) [](https://golangci.com) [](https://coveralls.io/github/oxyno-zeta/prometheus-cachethq?branch=master)  [](https://github.com/oxyno-zeta/prometheus-cachethq/blob/master/LICENSE) 
Prometheus alerts to CachetHQ
- [Features](#features)
- [Configuration](#configuration)
- [Setup](#setup)
- [Prometheus Alertmanager](#prometheus-alertmanager)
- [Deploy](#deploy)
- [Configuration](#configuration-1)
- [Kubernetes - Helm](#kubernetes---helm)
- [Docker](#docker)
- [Thanks](#thanks)
- [Author](#author)
- [License](#license)
## Features
- Filter Prometheus alerts by name or labels
- Change CachetHQ component status
- Allow to create incident for component
- Manage resolved alert for component or incident
## Configuration
See here: [Configuration](./docs/configuration.md)
## Setup
### Prometheus Alertmanager
Just put a new receiver in your alertmanager configuration:
```yaml
route:
...
receivers:
- name: cachethq-receiver
webhook_configs:
- url: http://prometheus-cachet-domain:8080/prometheus/webhook
send_resolved: true
```
Add also a new route to send alert to prometheus-cachethq:
```yaml
route:
...
routes:
- receiver: cachethq-receiver
continue: true
# match: ...
```
### Deploy
#### Configuration
See configuration values [here](./docs/configuration.md)
#### Kubernetes - Helm
A helm chart have been created to deploy this in a Kubernetes cluster.
You can find it here: [https://github.com/oxyno-zeta/helm-charts/tree/master/stable/prometheus-cachethq](https://github.com/oxyno-zeta/helm-charts/tree/master/stable/prometheus-cachethq)
#### Docker
First, write the configuration file in a config folder. That one will be mounted.
Run this command:
```shell
docker run -d --name prometheus-cachethq -p 8080:8080 -p 9090:9090 -v $PWD/config:/config oxynozeta/prometheus-cachethq
```
## Thanks
- My wife BH to support me doing this
## Author
- Oxyno-zeta (Havrileck Alexandre)
## License
Apache 2.0 (See in LICENSE)