Skip to content

Instantly share code, notes, and snippets.

@dergachev
dergachev / pantheon_monitoring_tools.md
Created May 22, 2013 21:30
Kyle monitoring tools: sensu, graphite, statsd

This is what they use.

@logikal
logikal / monitorama_scatterbrain_notes.md
Created August 16, 2013 17:06
Just some scatterbrained notes I wrote at the end of monitorama.

We need 3 things from our monitoring systems: Log aggregation and analysis tools for (deep-dive info) Data visualization tools (at-a-glace information, data correlation/causation, pattern identification, easier anomaly detection) non-simple error reporting (To let us know when things are actually going wrong. e.g. rollups, multi-variable alerts, alerts that include more data than 'I passed a threshold')

If I were starting from scratch, this is the architecture I'd build for monitoring.

Logstash -> Reimann and/or Flapjack-> (dataviz) Statsd -> Graphite -> Tasseo & Descarte
                                   |
 |--> (alerting) Sensu -> Pagerduty
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrant plug-ins in use:
# vagrant-vbguest to ensure all VirtualBox VMs have guest additions
# vagrant-hostmanager to manipulate /etc/hosts on the guest VMs and host machine.
# vagrant-proxyconf to configure an HTTP proxy for apt [requires instructor VM to be booted on an accessible IP]
#
# If vagrant-hostmanager isn't installed edit /etc/hosts on your laptop and place these entries in it.
# 172.16.1.10 web
@thcipriani
thcipriani / chef_server_setup
Last active December 26, 2015 05:49
Chef Server Setup
Chef Server Setup
=============
- Ubuntu 12.04 x86_64 (only other option is RHEL 5 or 6)
- Hostname setup:
echo "parabola" > /etc/hostname
hostname -F /etc/hostname
```/etc/hosts
127.0.0.1 fqdn hostname localhost
# (e.g., 127.0.0.1 parabola.tylercipriani.com parabola localhost)
@andrew-michael-lee
andrew-michael-lee / se-install-collectd
Last active December 28, 2015 21:29
A snippet detailing the installation and configuration of collectd on Ubuntu 12.04 with openjdk-7.
# client install
sudo apt-get install libcurl4-gnutls-dev ruby cmake openjdk-7-jdk openjdk-7-source libgcrypt11-dev python-dev git
# server install
sudo apt-get install libcurl4-gnutls-dev ruby cmake openjdk-7-source libgcrypt11-dev librrd4 librrd-dev
# install yajl
git clone git://github.com/lloyd/yajl
cd yajl
./configure
@jandre
jandre / onedayofgo.md
Last active January 1, 2016 23:19
One Day Of Go

One day of Go

One of my ongoing resolutions is to learn a new programming language every year. I've been looking at Go for a while and I thought it would be fun to use the 'holiday' today to really get cranking. I recorded some random impressions as I was chugging along...

When learning a language, I'm one of those people that can't simply read documentation and contrived code examples with any usable level of recall -- I need to internalize it by writing code to solve a legitimate problem. So, I decided to write a little library, a parser for the Linux /proc filesystem. There aren't very many good ones that I've found for Go (and I am thinking of some projects I may want to use it for in the future).

Steps taken:

  1. Read a bit of code
@mndoci
mndoci / iam_fog.rb
Created May 29, 2011 03:48 — forked from zapnap/iam_fog.rb
Using Amazon IAM with Fog (example)
# via http://blog.zerosum.org/2011/03/02/better-aws-access-control-with-iam-and-fog.html
require 'fog'
username = 'testuser'
bucket = 'uniquebucketname1234'
aws_credentials = {
:aws_access_key_id => 'YOUR-ACCESS-KEY-ID',
:aws_secret_access_key => 'YOUR-SECRET-ACCESS-KEY'
@garnaat
garnaat / firstlaunch.py
Created May 18, 2011 12:16
Simple example of creating your first instance in EC2
import boto.ec2
import os, time
# define region_name to be region you want to connect to
region_name = 'eu-west-1'
conn = boto.ec2.connect_to_region(region_name)
# First upload a public key to use for SSH'ing to instance. Use "ssh-keygen" to generate.
fp = open(os.path.expanduser('~/.ssh/mykey.pub'))
material = fp.read()
@obazoud
obazoud / Graphite - Relay - Collectd
Last active March 16, 2017 20:04
Install Graphite / Collectd in Ubuntu 12.04 (precise 64)
ssh -p 2222 -R 2204:192.168.7.176:2204 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR -o IdentitiesOnly=yes -i ~/.vagrant.d/insecure_private_key vagrant@127.0.0.1