Skip to content

Instantly share code, notes, and snippets.

View vvuksan's full-sized avatar

Vladimir Vuksan vvuksan

View GitHub Profile
@vvuksan
vvuksan / gmetad.conf
Created August 25, 2015 21:47
gmetad.conf
data_source "LOCALCL" 10 127.0.0.1:57203
RRAs "RRA:AVERAGE:0.5:1:244"
setuid_username "ganglia"
xml_port 8700
interactive_port 8701
server_threads 20
rrd_rootdir "/opt/ganglia/unused-rrds"
write_rrds off
#!/usr/bin/env ruby
# coding: UTF-8
# install_phantomjs.rb
#
# download, build, and install PhantomJS for Raspberry Pi
#
# * tested: PhantomJS 1.9.7 / Raspbian (Wheezy)
#
# created on : 2014.02.13
Run #1: ./tiotest -t 8 -f 2048 -r 500 -b 4096 -d /mnt/fio/test -TTT
Unit information
================
File size = megabytes
Blk Size = bytes
Rate = megabytes per second
CPU% = percentage of CPU used during the test
Latency = milliseconds
Lat% = percent of requests that took longer than X seconds
#!/usr/bin/ruby
require "rexml/document"
require 'socket'
ganglia_hostname = 'localhost'
ganglia_port = 8649
graphite_host = "localhost"
graphite_port = "2003"
begin
@vvuksan
vvuksan / Graphite Diff
Created October 26, 2010 01:28
Graphite Installation
--- webapp/graphite/storage.py 2009-12-07 05:58:32 +0000
+++ webapp/graphite/storage.py 2010-10-14 16:36:07 +0000
@@ -262,7 +262,8 @@
def getDataSources(self):
try:
info = rrdtool.info(self.fs_path)
- return [RRDDataSource(self, source) for source in info['ds']]
+ #return [RRDDataSource(self, source) for source in info['ds']]
+ return [RRDDataSource(self, source) for source in ["sum"]]
except:
@vvuksan
vvuksan / README.txt
Created April 6, 2011 21:09
Produce Rundeck compliant node list
Stick the PHP file in your Ganglia Web directory. Then in
$RUNDECK_HOME/projects/Default/etc/project.properties
add following lines
project.resources.file = /opt/rundeck/projects/Default/etc/resources.yaml
project.resources.url = http://ganglia.local/ganglia/rundeck.php
In Rundeck web UI there will be a link that says
@vvuksan
vvuksan / gist:988765
Created May 24, 2011 14:14
Logstash Init script
#! /bin/sh
#
# Logstash Start/Stop logstash
#
# chkconfig: 345 99 99
# description: Logstash
# processname: logstash
logstash_bin="/usr/java/latest/bin/java -jar /opt/logstash/logstash.jar"
logstash_conf="/etc/logstash/logstash.conf"
@vvuksan
vvuksan / gist:992206
Created May 25, 2011 23:03
URL Metrics
# Based on https://github.com/ripienaar/mcollective-plugins/blob/master/agent/urltest/urltest.rb
require 'net/http'
require 'socket'
req_url = "http://www.google.com"
url = URI.parse(req_url)
@vvuksan
vvuksan / gist:996051
Created May 27, 2011 20:04
ESC Conference abbrevation. What does it mean ?
For those who have wondered what ESC in ESC Conference stands for. Here is a short guide.
1. (15:50:22) nahamu: Extreme SCalability?
2. (15:50:29) whack: elastic synergy computing
3. (15:50:50) nahamu: "Eh, Something Cool"?
4. (15:51:47) devdas: Extremely Scalable Computing
5. (15:52:27) devdas: Explicitly Scalable Computing?
6. (15:53:03) lusis: eastern seaboard computing?
7. (15:53:15) Cope: Eloquent Sophistry Convention
8 (15:53:28) whack: Enterprise Synergism Combinatorics
@vvuksan
vvuksan / gist:1025952
Created June 14, 2011 21:31
Velocity 2011 links