Skip to content

Instantly share code, notes, and snippets.

View vvuksan's full-sized avatar

Vladimir Vuksan vvuksan

View GitHub Profile
@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: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 / 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 / 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:
#!/usr/bin/ruby
require "rexml/document"
require 'socket'
ganglia_hostname = 'localhost'
ganglia_port = 8649
graphite_host = "localhost"
graphite_port = "2003"
begin
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