weaveworks / alertdiff

Expose metrics detailing differences between two alert sources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

alertdiff is a service that continuously compares the alerts generated by a Prometheus-compatible implementation (e.g. Weave Cortex) with a reference Prometheus instance, and exports metrics which detail spurious or missing alerts.

Usage

  • Deploy alertdiff
  • Append e.g. http://alertdiff:8080/expected/api/v1/alerts to the --alertmanager.url of your reference Prometheus server
  • Add http://alertdiff:8080/actual/api/v1/alerts as an alertmanager to Cortex
  • Ensure both Prometheus & Cortex are configured with the same set of alerting rules and are receiving identical metrics

Then add some alert definitions based on the exported metrics:

ALERT AlertDiffMissingAlert
  IF alertdiff_missing_alert > 0
  FOR 1m

ALERT AlertDiffSpuriousAlert
  IF alertdiff_spurious_alert > 0
  FOR 1m

Getting Help

If you have any questions about, feedback for or problems with alertdiff:

Weaveworks follows the CNCF Code of Conduct. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting a Weaveworks project maintainer, or Alexis Richardson (alexis@weave.works).

Your feedback is always welcome!

About

Expose metrics detailing differences between two alert sources

License:Apache License 2.0


Languages

Language:Haskell 95.3%Language:Makefile 4.0%Language:Dockerfile 0.6%