Skip to content

Instantly share code, notes, and snippets.

output {
if "metric" not in [tags] {
elasticsearch {
hosts => ['elasticsearch-101', 'elasticsearch-102', 'elasticsearch-103', 'elasticsearch-104']
user => "logstash"
password => "**********************"
cacert => "/usr/local/share/ca-certificates/ca.crt"
ssl => true
}
}
#
# this file is managed by salt - manual changes will be overwritten
#
upstream elasticsearch {
server 127.0.0.1:9200;
keepalive 64;
}
# 8433 is wide open for logstash
server {
@wryfi
wryfi / salt
Created November 25, 2015 00:35
roles:
- graphite
- postgres
hosts:
- ns-101.soma.plos.org
secrets:
postgres:
root: "asdf1234"
@wryfi
wryfi / PKGBUILD
Created January 17, 2015 05:24
PKGBUILD for eclipse-pydev-3.9.0
# Maintainer: Arthur Zamarin <arthurzam@gmail.com>
pkgname=eclipse-pydev
pkgver=3.9.0
pkgrel=1
pkgdesc="Python IDE for Eclipse"
url="http://pydev.org/"
arch=('any')
license=('EPL')
depends=('java-environment>=7' 'eclipse>=3.8')
@wryfi
wryfi / lxc_load.py
Created October 16, 2012 23:34
simple python script to check cpu utilization of lxc containers and print percentage
#!/usr/bin/python
import multiprocessing, os, re, sys, time
cgroup_dir = '/sys/fs/cgroup'
node_rgx = u'[a-z]*[0-9]{2}'
interval = 1
def main():
cpus = multiprocessing.cpu_count()