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)
- Host: GitHub
- URL: https://github.com/postfinance/prom-alert
- Owner: postfinance
- License: mit
- Created: 2020-04-24T12:09:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-27T11:05:43.000Z (about 6 years ago)
- Last Synced: 2025-01-22T06:22:24.882Z (over 1 year ago)
- Topics: alertmanager, prometheus, testing-tools
- Language: Go
- Size: 18.6 KB
- Stars: 1
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prom-alert
[](https://goreportcard.com/report/github.com/postfinance/prom-alert)
[](https://coveralls.io/github/postfinance/prom-alert?branch=master)
[](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.