Skip to content

Latest commit

 

History

History
90 lines (60 loc) · 2.79 KB

README.md

File metadata and controls

90 lines (60 loc) · 2.79 KB

Prometheus-CachetHQ

CircleCI Go Report Card GolangCI Coverage Status Docker Pulls GitHub license GitHub release (latest by date)

Prometheus alerts to CachetHQ

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

Setup

Prometheus Alertmanager

Just put a new receiver in your alertmanager configuration:

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:

route:
  ...
    routes:
    - receiver: cachethq-receiver
      continue: true
      # match: ...

Deploy

Configuration

See configuration values here

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

Docker

First, write the configuration file in a config folder. That one will be mounted.

Run this command:

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)