moosh3 / gitlab-alerts

GitLab Integration for Prometheus Alertmanager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitLab-Alerts

GitLab Integration for Prometheus Alertmanager. This project is a webhook receiver that autogenerates Gitlab issues from dispatched Alertmanager JSON.

Dependencies

  • npm v5.10.0+
  • node v8.10.0+
  • (Optional) nodemon 1.18.3+
  • (Optional) Docker 18.06.0+ and Docker Compose 1.22.0+

Running

Before running, execute npm i at project root to install all dependencies.

  • npm run dev to run with Nodemon (livereload); or
  • node server.js

Example Alertmanager Configuration

route:
  receiver: 'gitlab-alerts'
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 24h
  group_by: [alertname]

receivers:
- name: 'gitlab-alerts'
  webhook_configs:
  - url: 'http://<gitlab-alerts-hostname>:3005/alerts'
    send_resolved: true

About

GitLab Integration for Prometheus Alertmanager

License:Apache License 2.0


Languages

Language:JavaScript 80.4%Language:Dockerfile 17.6%Language:Makefile 2.0%