Skip to content

Instantly share code, notes, and snippets.

View hoswey's full-sized avatar

Hoswey hoswey

  • Netease
  • Guangzhou, China
View GitHub Profile
@hoswey
hoswey / alert.sh
Last active March 12, 2020 16:30 — 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",