Skip to content

Instantly share code, notes, and snippets.

@technovangelist
Created November 4, 2014 18:19
Show Gist options
  • Save technovangelist/4326e9adde324874f6a2 to your computer and use it in GitHub Desktop.
Save technovangelist/4326e9adde324874f6a2 to your computer and use it in GitHub Desktop.
Simplest code to create a metric on Google App Engine using Python
from dogapi import dog_http_api as api
api.api_key = 'YOUR_API_KEY'
api.application_key = 'YOUR_APPLICATION_KEY'
# Submit a single point with a timestamp of `now`
api.metric('page.views', 1000)
#see more examples here: http://docs.datadoghq.com/api/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment