Alert Tester

Microservice to test Prometheus alerts.
Alternatives To Alert Tester
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Alertmanager5,5656624016 hours ago149April 05, 2022429apache-2.0Go
Prometheus Alertmanager
Dockprom5,284
23 days ago5mit
Docker hosts and containers monitoring with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager
Kube Prometheus5,115
2 days ago27June 17, 2022175apache-2.0Jsonnet
Use Prometheus to monitor Kubernetes and applications running on Kubernetes
Awesome Prometheus Alerts4,754
2 days ago18otherHTML
🚨 Collection of Prometheus alerting rules
Self Hosting Guide4,331
15 hours ago5Dockerfile
Self-Hosting Guide. Learn all about locally hosting (on premises & private web servers) and managing software applications by yourself or your organization. Including WireGuard, Home Assistant, Homebridge, Jellyfin, Wi-Fi 6 (2.4 GHz and 5 GHz), and Wi-Fi 6E (6 GHz).
Prometheus3,839
2 months agomit
A docker-compose stack for Prometheus monitoring
Hertzbeat2,654
9 hours ago74apache-2.0Java
An open source, real-time monitoring tool with custom-monitor and agentless. Web, database, os, middleware, cloudnative, network and more. Aim to monitor everything!
Goldpinger2,191
5 months ago11August 29, 202219apache-2.0JavaScript
Debugging tool for Kubernetes which tests and displays connectivity between nodes in the cluster.
Prometheusalert2,067
17 days ago10April 19, 202127mitJavaScript
Prometheus Alert是开源的运维告警中心消息转发系统,支持主流的监控系统Prometheus,Zabbix,日志系统Graylog和数据可视化系统Grafana发出的预警消息,支持钉钉,微信,华为云短信,腾讯云短信,腾讯云电话,阿里云短信,阿里云电话等
Karma1,922
3 days ago2August 12, 20213apache-2.0TypeScript
Alert dashboard for Prometheus Alertmanager
Alternatives To Alert Tester
Select To Compare


Alternative Project Comparisons
Readme

Alert-tester Microservice

This repository contains a microservice that exposes one single flag as a Prometheus metric. The state can be changed using the minimalistic UI or automatically via a configurable cron schedule.

With the alert-tester you can easily test the complete chain from Prometheus scraping to AlertManager to your target channel (like Slack, PagerDuty, VictorOps etc).

Deployment

A basic deployment for Kubernetes could look like this:

kind: Deployment
apiVersion: extensions/v1beta1
metadata:
  name: alert-tester
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: alert-tester
      annotations:
        prometheus.io/path: /metrics
        prometheus.io/scrape: "true"
        prometheus.io/port: "3003"
    spec:
      containers:
        - name: alert-tester-backend
          image: matthiasmuth/alert-tester:v1
          imagePullPolicy: Always
          ports:
          - containerPort: 3003
            protocol: TCP

Defining an alert in Prometheus

Add an alert in your Prometheus configuration based on the scraped metric:

ALERT TestAlert
    IF (alert_tester_service_health == 0)
    LABELS {
        service = "alert-tester",
        severity = "warning",
    }
    ANNOTATIONS {
        summary = "Test alert triggered"
    }

Configuration

Moreover, the service allows you to configure a cron schedule (as described in the npm cron package) for automatic alerting and recovery.

At meisterplan, we use this feature to send a notification whenever our on-call schedule in PagerDuty switches to the next employee. For example, if this shift change is every monday at 10 o'clock, the environment variables could be set like this:

env:
  - name: 'AUTO_UNHEALTHY_SCHEDULE'
    value: '00 00 10 * * 1'
  - name: 'AUTO_HEALTHY_SCHEDULE'
    value: '00 01 10 * * 1'
Popular Alert Projects
Popular Prometheus Projects
Popular User Interface Components Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Metrics
Microservice
Alert
Prometheus
Cron