Skip to content

Instantly share code, notes, and snippets.

View vukasin-nikodijevic's full-sized avatar

Vukasin Nikodijevic vukasin-nikodijevic

View GitHub Profile
@vukasin-nikodijevic
vukasin-nikodijevic / alert.sh
Created January 6, 2020 14:46 — 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\",