I hereby claim:
- I am leocavaille on github.
- I am leoc (https://keybase.io/leoc) on keybase.
- I have a public key ASBSobNvEApafDPbyjmRGHX55u3ksIGgP3uH3rzgxG6rXgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Usage: Remember the last step number you were working on Katacoda and | |
# if you're stuck you can reset the env by pressing the "shut down" button | |
# then refresh and: | |
# * set your Datadog API key below | |
# * set your Datadog APP key if you were after step 16 as well | |
# * paste all the commands up to the step you were at before | |
# FIRST SET YOUR API KEY (AND APP KEY) |
This is a test. |
def factorielle(n): | |
if n < 0: | |
raise ValueError("pas de factorielle pour les nombres negatifs") | |
result = 1 | |
for i in xrange(1, n+1): | |
result *= i | |
return result |
{ | |
"size_by": "pct_mem", | |
"color_by": "user", | |
"q": "processes{host:myhosta}", | |
"group_by": "family", | |
"viz": "treemap", | |
"requests": [] | |
} |
#!/usr/bin/perl | |
use warnings; | |
use Data::Dumper; | |
use IO::Zlib; | |
use DBI; | |
my $dbh = DBI->connect("dbi:Pg:dbname=datadog_test;host=localhost;port=15432", "", ""); | |
sub insert_hash { |
defaults: &DEFAULTS | |
collect_response_time: true | |
timeout: 42 | |
tags: | |
- "test:tag" | |
skip_event: true | |
init_config: | |
# Change default path of trusted certificates |
[alias] | |
checkoutpr = "!f() { git fetch origin refs/pull/$1/head:pr/$1; git checkout pr/$1; } ; f" | |
checkoutcontrib = "!f() { git checkout master && git pull && git remote add $1 [email protected]:$1/dd-agent && git fetch $1 $2 && git checkout -b $3 $1/$2 && git rebase master } ; f" |
How to use custom Datadog metrics on Google App Engine
We will use the dogapi
module to instrument your code. There are a lot of ways to ship libraries to Google App Engine using virtualenvs, symlinks, etc. If you already have that, just add to your stack the latest version of dogapi from PyPi.
If not, here is an easy way to use dogapi
:
cd $MY_GAE_PROJECT