An open API service indexing awesome lists of open source software.

https://github.com/postfinance/prom-alert

Create prometheus alerts (for testing purposes)
https://github.com/postfinance/prom-alert

alertmanager prometheus testing-tools

Last synced: about 1 year ago
JSON representation

Create prometheus alerts (for testing purposes)

Awesome Lists containing this project

README

          

# prom-alert

[![Go Report Card](https://goreportcard.com/badge/github.com/postfinance/prom-alert)](https://goreportcard.com/report/github.com/postfinance/prom-alert)
[![Coverage Status](https://coveralls.io/repos/github/postfinance/prom-alert/badge.svg?branch=master)](https://coveralls.io/github/postfinance/prom-alert?branch=master)
[![Build](https://github.com/postfinance/prom-alert/workflows/build/badge.svg)](https://github.com/postfinance/prom-alert/actions?query=workflow%3Abuild)

This tool lets you create prometheus test alerts.

## Usage

```
Usage of ./prom-alert:
-labels value
The labels to use for the alert. (default alertname=testalert-c6be61f6,instance=testalert-7341f7b5.example.net,user=zbindenren)
-summary string
The summary for the alert. (default "This is a test alert")
-url string
The prometheus URL. (default "http://localhost:9090/api/v1/alerts")
```

Example:

```
prom-alert -labels team=linux,severity=warning
```

You can hit `ctrl+c` to stop the alert firing.