Skip to content

Instantly share code, notes, and snippets.

@kedarvj
kedarvj / alert.sh
Created March 6, 2020 13:11 — forked from cherti/alert.sh
send a dummy alert to prometheus-alertmanager
#!/bin/bash
name=$RANDOM
url='http://localhost:9093/api/v1/alerts'
echo "firing up alert $name"
# change url o
curl -XPOST $url -d "[{
\"status\": \"firing\",