Pushproxy
Jump to navigation
Jump to search
bash client
current_time_seconds=$(date +%s)
ts=$((current_time_seconds - 0))
rn=$(( ( RANDOM % 20 ) + 10 ))
echo $rn
curl -X POST -g \
-u user1:pass1 \
--data "my_metric2{app=\"test\",job=\"test\",instance=\"test\"} $rn ${ts}" \
http://localhost:8080/api/v1/push
Trash notes
# -H "Content-Type": "application/json" \
# -H "X-Scope-OrgID: test" \
# --header "Content-Type: application/json" \