This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"strings" | |
"os/exec" | |
"strconv" | |
) | |
const vmax = 65635 |
This file contains hidden or 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 | |
from gi.repository import Gtk, Gdk | |
import ConfigParser | |
from subprocess import Popen | |
from glob import glob | |
from difflib import get_close_matches | |
from pprint import pprint | |
### | |
# |
This file contains hidden or 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
Adafruit: | |
Qty. Products | |
2 Stepper Motor Mount with Hardware - NEMA-17 Sized | |
4 Aluminum GT2 Timing Pulley - 6mm Belt - 20 Tooth - 5mm Bore | |
4 Linear Rail Shaft Guide/Support - 8mm Diameter | |
4 Linear Ball Bearing - 8mm diameter | |
Mcmaster: | |
Qty Products | |
4 Hardened Precision Metric Steel Shaft, 8 mm Diameter, 400 mm Length |
This file contains hidden or 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
#################################### | |
# BASIC REQUIREMENTS | |
# http://graphite.wikidot.com/installation | |
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
# Last tested & updated 10/13/2011 | |
#################################### | |
cd | |
sudo apt-get update | |
sudo apt-get upgrade |
This file contains hidden or 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 { | |
tcp{ | |
port => 2003 | |
type => "graphite" | |
mode => "server" | |
} | |
} | |
filter { | |
grok { | |
pattern => "%{DATA:name} %{NUMBER:value:float} %{POSINT:ts}" |
This file contains hidden or 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
. | |
./aggregation-cpu-average | |
./aggregation-cpu-average/cpu-idle.wsp | |
./aggregation-cpu-average/cpu-interrupt.wsp | |
./aggregation-cpu-average/cpu-nice.wsp | |
./aggregation-cpu-average/cpu-softirq.wsp | |
./aggregation-cpu-average/cpu-steal.wsp | |
./aggregation-cpu-average/cpu-system.wsp | |
./aggregation-cpu-average/cpu-user.wsp | |
./aggregation-cpu-average/cpu-wait.wsp |
This file contains hidden or 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
. | |
./aggregation-cpu-average | |
./aggregation-cpu-average/cpu-idle.wsp | |
./aggregation-cpu-average/cpu-interrupt.wsp | |
./aggregation-cpu-average/cpu-nice.wsp | |
./aggregation-cpu-average/cpu-softirq.wsp | |
./aggregation-cpu-average/cpu-steal.wsp | |
./aggregation-cpu-average/cpu-system.wsp | |
./aggregation-cpu-average/cpu-user.wsp | |
./aggregation-cpu-average/cpu-wait.wsp |
This file contains hidden or 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
output { | |
# stdout { | |
# debug => false | |
# debug_format => ruby | |
# } | |
# graphite { | |
# host => "localhost" | |
# metrics => [ "machines.%{datacenter}.%{hostname}.%{path}", "%{value}" ] | |
# port => 2003 | |
# type => "collectdPlain" |
This file contains hidden or 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 { | |
rabbitmq { | |
host => "rmq.xxx.xxx.com" | |
port => 5672 | |
vhost => "metrics" | |
user => "xxxx" | |
password => "xxxx" | |
exchange => "collectd.logstash.plain" | |
queue => "<%= @node[:fqdn] %>" | |
exclusive => false |
This file contains hidden or 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 { | |
rabbitmq { | |
host => "rmq.xxx.xxx.com" | |
port => 5672 | |
vhost => "metrics" | |
user => "xxxx" | |
password => "xxxx" | |
exchange => "collectd.logstash.plain" | |
queue => "<%= @node[:fqdn] %>" | |
exclusive => false |
NewerOlder