Create a gist now

Instantly share code, notes, and snippets.

@derpston / Secret
Created Mar 12, 2012

Quick hack to send a datapoint to Metricfire when the enter key is pressed
while read line
# Send Metricfire an event that happened once ('1') and file it under a metric
# called 'um' in the application 'pg-um'
curl -s https://$ --data-binary 1
echo $?
echo $(date +%s) >> pg-um.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment