Skip to content

Instantly share code, notes, and snippets.

@remh
remh / gist:1426ccb24ec36162ba2b
Last active August 29, 2015 14:03
Datadog Agent 5.0.0

What is Datadog Agent 5.0.0 ?

Datadog Agent 5.0.0 is the next major version of the Datadog Agent. Its main improvement being that it will be self-contained. All dependencies required by the Agent to run will be part of the package.

Warning

This version of the Datadog-Agent is still in beta. It's planned to be released soon and is being used by us and a few of our users without any major issue but please keep in mind that it's a BETA version.

What issues will it solve ?

  • Conflicts with dependencies (Tornado, Supervisor, Check dependencies: MysqlDB, Postgres....)
  • On Centos 5, there is no forwarder which can create some issues (such as no proxy support for Dogstatsd). This will be solved
  • Full support of Fedora Core
@bketelsen
bketelsen / ddagent.json
Last active August 29, 2015 14:07
DataDog agent as privileged Pod with Service - collects info on host, and all docker containers. Accepts statsd on port 8125 on every machine.
{
"id": "ddagent",
"kind": "ReplicationController",
"apiVersion": "v1beta1",
"desiredState": {
"replicas": 3,
"replicaSelector": {"name": "ddagent"},
"podTemplate": {
"desiredState": {
"manifest": {
@wallin
wallin / script.js
Created April 12, 2011 21:11 — forked from jacobk/script.js
$(function() {
$('div.content').live('showoff:show', function(evt) {
var bg_img = $('img[alt=background]', evt.target);
var old_bg = '';
if (bg_img.size() > 0) {
var src = bg_img.attr('src');
bg_img.hide();
// Set new background on body
old_bg = $('body').css('background-image');
$('body')
@massat
massat / supervisord
Created October 12, 2011 06:52
init script for supervisord
#!/bin/sh
#
# /etc/rc.d/init.d/supervisord
#
# Supervisor is a client/server system that
# allows its users to monitor and control a
# number of processes on UNIX-like operating
# systems.
#
# chkconfig: - 64 36
@alq666
alq666 / cloudwatch.awk
Created March 5, 2012 20:52
aws crawler stats
BEGIN {
skipped = 0;
processed = 0;
}
/Skipped/ {
skipped++;
}
/Saving/ {
@bcambel
bcambel / gist:2844136
Created May 31, 2012 15:24
DDAGENTSRV_LOG
2012-05-31 15:17:40,719 - root - INFO - Logging to /tmp/dd-agent.log
2012-05-31 15:17:40,719 - root - WARNING - Pid file: /tmp/dd-agent.pid
2012-05-31 15:17:40,719 - root - INFO - Running in foreground
2012-05-31 15:17:40,719 - agent - DEBUG - Collecting basic system stats
2012-05-31 15:17:40,738 - agent - DEBUG - System: {'nixV': ('Ubuntu', '10.04', 'lucid'), 'cpuCores': 2, 'machine': 'x86_64', 'platform': 'linux2', 'pythonV': '2.6.5', 'processor': ''}
2012-05-31 15:17:40,738 - agent - DEBUG - Creating checks instance
2012-05-31 15:17:40,785 - agent - INFO - Running on EC2, instanceId: i-fdf2929e
2012-05-31 15:17:40,786 - checks - INFO - Dogstream parsers: []
2012-05-31 15:17:40,788 - checks - INFO - Starting checks
2012-05-31 15:17:40,788 - checks - DEBUG - SIZE: <function getApacheStatus at 0x2ca5a28> wrote 5 bytes uncompressed
@mlambie
mlambie / apache_extended_status
Created July 11, 2012 03:26
Extended output
root@arcee:/var/log# curl http://localhost/server-status?auto
BusyWorkers: 1
IdleWorkers: 9
Scoreboard: _W.________.....................................................................................................................................................................................................................................................
VS.
mlambie@blitzwing:~$ curl http://localhost/server-status?auto
Total Accesses: 557
Total kBytes: 17924
@alq666
alq666 / dogapi.sh
Created August 29, 2012 22:39
Deploy the dog cli in your home directory
#!/bin/bash -e
# Check python 2.6 or greater
python -V 2>&1 | awk '$2 !~ /^2.[67]|^3/ {exit 1}'
# Download virtualenv
curl https://raw.github.com/pypa/virtualenv/master/virtualenv.py > virtualenv.py
python virtualenv.py $HOME/datadog
source $HOME/datadog/bin/activate
# Install dogapi
pip install dogapi
# Set up the dog alias
occurrence_doy notifying daily
1 1 12
1 0 426
2 0 1158
2 1 2
3 0 630
3 1 48
4 0 1398
4 1 76
5 1 8
@alq666
alq666 / by_day.R
Created December 10, 2012 22:30
Alerting Trends
alerts_by_day <- read.csv(‘by_day.csv’)
ggplot(alerts_by_day, aes(day_of_year, daily, color=factor(notifying))) + geom_line()
+ xlab("Day of year")
+ ylab("Service Alerts")
+ ggtitle("Notifying v. silent alerts per day")
+ geom_smooth()