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
input { | |
syslog { | |
type => "haproxy-access" | |
port => 514 | |
} | |
} | |
filter { | |
grok { | |
type => "haproxy-access" |
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
#!/bin/bash | |
# | |
# constants | |
IFACE=eth0 | |
TX_QUEUE_LEN=5000 | |
RPS_FLOW_CNT=32768 | |
QUEUES=$(ls -d /sys/class/net/${IFACE}/queues/rx-* | wc -l) | |
RPS_FLOW_QUEUE=$((RPS_FLOW_CNT / QUEUES)) | |
# set global flow queue |
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
#!/usr/bin/python | |
import boto | |
import boto.utils | |
import subprocess | |
import logging | |
import re | |
import sys | |
import os | |
import psutil | |
import time |
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
#!/usr/bin/python | |
import os | |
import sys | |
import configobj | |
import pwd | |
import grp | |
for path in [ | |
os.path.join('opt', 'diamond', 'lib'), |
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
# diamond - A system statistics collector for graphite | |
# | |
# Diamond is a daemon and toolset for gather system statistics | |
# and publishing them to graphite. | |
description "Diamond system statistics collector" | |
start on (local-filesystems and net-device-up IFACE!=lo) | |
stop on [!12345] |
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
#!/usr/bin/env python | |
import os | |
import sys | |
import configobj | |
import pwd | |
import grp | |
for path in [ | |
os.path.join('opt', 'diamond', 'lib'), |
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
#!/usr/bin/env python | |
# Sample | |
from jira.client import JIRA | |
from optparse import OptionParser | |
from pagerduty import * | |
import hashlib | |
import hipchat | |
import simplejson as json | |
import socket |
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
#!/usr/bin/env python | |
from optparse import OptionParser | |
from brod.zk import * | |
import pickle | |
import struct | |
import socket | |
import sys | |
import time | |
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
#!/usr/bin/env python | |
from optparse import OptionParser | |
from brod.zk import * | |
import pickle | |
import struct | |
import socket | |
import sys | |
import time | |
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
#!/usr/bin/env python | |
from optparse import OptionParser | |
from brod.zk import ZKConsumer | |
import time | |
import socket | |
import struct | |
import sys | |
import pickle | |
NewerOlder