On Mac OS X:
- Install puppet 3.0.2, facter 1.6.17 and hiera 1.1.2
- create /etc/puppet/puppet.conf
- configure launchd puppet daemon
- initial puppet run
#number of seconds to use between flushing, default of 10, 1 for realtime | |
statsite_flush_interval=1 | |
# 1 seconds * 1209600 datapoints = 2 week of 1 second granularity | |
# 10 seconds * 864000 datapoints = 2 months of 10-second granularity | |
# 60 seconds * 259200 datapoints = 6 months of 1-minute granularity | |
# 10 minutes * 262974 datapoints = ~3 years of 10-minute granularity | |
graphite_retentions='1:1209600,10:864000,60:259200,600:262974' | |
#################################### | |
# BASIC REQUIREMENTS |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: carbon-cache | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: carbon-cache init script | |
# Description: An init script for Graphite's carbon-cache daemon. | |
### END INIT INFO |
# | |
# shell function to print graphite graphs as sparklines in the terminal | |
# needs https://github.com/holman/spark | |
# | |
function graphline() { | |
GRAPHITEHOST="graphite.example.com" | |
if [ ! -n "$1" ]; then print "Usage: $0 metric [minutes]"; return 1; fi | |
if [ ! -n "$2" ]; then MINUTES=10 ; else MINUTES=$2; fi | |
curl -s "${GRAPHITEHOST}/render?from=-${MINUTES}minutes&target=${1}&format=raw" | cut -d"|" -f 2 | spark ; | |
} |
#! /usr/bin/ruby | |
# | |
# A script to check Amazon Webservice's Health Status Dashboard | |
# | |
# Jens Braeuer, github.com/jbraeuer | |
# | |
# Version 1.0 | |
# |
[default] | |
background = white | |
foreground = black | |
majorLine = grey | |
minorLine = rose | |
lineColors = 0fff00aa,0f337799,0f000077,ff000077 | |
fontName = Helvetica | |
fontSize = 10 | |
fontBold = False | |
fontItalic = False |
On Mac OS X:
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice | |
maxconn 4096 | |
user haproxy | |
group haproxy | |
daemon | |
listen rabbitmq 0.0.0.0:5672 | |
mode tcp |
There are two ways to send data to ElasticSearch from Logstash. The first is the 'elasticsearch' output and the other is the 'elasticsearch_http' output. In a nutshell, the 'elasticsearch' output is tightly coupled with your elasticsearch cluster, and the 'elasticsearch_http' output isn't.
description "Tomcat Server" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 10 5 | |
# run as non privileged user | |
# add user with this command: | |
## adduser --system --ingroup www-data --home /opt/apache-tomcat apache-tomcat |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |