gorets:1|[email protected]
glork:320|ms
gaugor:333|g
uniques:765|s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import simplejson as json | |
import sys | |
#{ | |
# "results": 91, | |
# "rows": [ | |
# { | |
# "ec2": { | |
# "instance_action": "none", | |
# "instance_id": "i-f9069c96", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN { | |
print "ts,payloads,points,read,transform,kafka,redis" | |
} | |
# 2013-09-16 02:30:04,537 INFO dd.sobotka.core (core.py:186) - sobotka_loop: 429.2ms - processed 3 payloads (0.0/ms) 237 points (0.6/ms) - read:0.0ms, transform:56.7ms, kafka_write:39.7ms redis_write:294.8ms | |
/redis_write/ { | |
ts = $1 "T" $2 | |
match($0, /processed ([[:digit:]]+) payloads.*([[:digit:]]+) points.*- read:[[:digit:].]+)ms, transform:([[:digit:].]+)ms, kafka_write:([[:digit:].]+)ms redis_write:([[:digit:].]+)ms/, arr); | |
print substr(ts, 1, length(ts) - 4), arr[1], arr[2], arr[3], arr[4], arr[5], arr[6]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default_overrides({ | |
:datadog => { | |
:api_key => "...", | |
# ... | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set pkgrepo = { | |
'Debian': { | |
"managed": True, | |
"humanname": "Datadog Agent", | |
"name": "deb http://apt.datadoghq.com/ unstable main", | |
"keyserver": "keyserver.ubuntu.com", | |
"keyid": "C7A7DA52", | |
"file": "/etc/apt/sources.list.d/datadog.list" | |
}, | |
'RedHat': { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RCfile for "top with windows" # shameless braggin' | |
Id:a, Mode_altscr=0, Mode_irixps=1, Delay_time=3.000, Curwin=0 | |
Def fieldscur=AEHIOQTWKNMbcdfgjplrsuvyzX | |
winflags=64441, sortindx=10, maxtasks=0 | |
summclr=1, msgsclr=1, headclr=3, taskclr=1 | |
Job fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX | |
winflags=62777, sortindx=0, maxtasks=0 | |
summclr=6, msgsclr=6, headclr=7, taskclr=6 | |
Mem fieldscur=ANOPQRSTUVbcdefgjlmyzWHIKX | |
winflags=62777, sortindx=13, maxtasks=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"events": [], | |
"requests": [ | |
{ | |
"q": "aws.elb.latency{host:elb_name}*sum:aws.elb.request_count{host:elb_name}" | |
} | |
], | |
"viz": "timeseries" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT nspname, | |
relname, | |
pg_size_pretty(pg_relation_size(C.oid)) AS "size" | |
FROM pg_class C | |
LEFT JOIN pg_namespace N | |
ON (N.oid = C.relnamespace) | |
WHERE nspname NOT IN ('pg_catalog', 'information_schema') | |
ORDER BY pg_relation_size(C.oid) DESC | |
LIMIT 40; |