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/env python | |
# stats to dashing | |
import subprocess | |
import re | |
import httplib | |
import json | |
# config variables | |
# dashing host |
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
{ | |
"title": "HTTP Traffic", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "*", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 0, |
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
{ | |
"title": "SSH Traffic", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "*", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 0, |
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
[Unit] | |
Description=Circus for Taiga | |
After=syslog.target | |
After=network.target | |
[Service] | |
Type=simple | |
User=taiga | |
Group=taiga | |
ExecStart=/usr/bin/circusd /home/taiga/circus.ini |
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
==== Fedora 21+ required ==== | |
==== use in conjunction with http://taigaio.github.io/taiga-doc/dist/setup-production.html ==== | |
yum install -y gcc autoconf flex bison libjpeg-turbo-devel | |
yum install -y freetype-devel zlib-devel zeromq-devel gdbm-devel ncurses-devel | |
yum install -y automake libtool libffi-devel curl git tmux | |
yum install -y postgresql postgresql-contrib | |
yum install -y postgresql-docs postgresql-devel postgresql-server |
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
{ | |
"ID": "", | |
"Name": "Elasticsearch (latest)", | |
"Description": "Elasticsearch", | |
"Services": [ | |
{ | |
"Name": "Elasticsearch (latest)", | |
"Command": "", | |
"Description": "Elasticsearch", | |
"Tags": null, |
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
{ | |
"ID": "", | |
"Name": "Logstash (latest)", | |
"Description": "Logstash", | |
"Services": [ | |
{ | |
"Name": "Logstash (latest)", | |
"Command": "", | |
"Description": "Logstash", | |
"Tags": null, |
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
{ | |
"ID": "", | |
"Name": "ELK Stack", | |
"Description": "Elasticsearch, Logstash, and Kibana", | |
"ConfigFiles": null, | |
"Services": [ | |
{ | |
"Name": "ELK Stack", | |
"Command": "", | |
"Description": "Elasticsearch, Logstash, and Kibana", |
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
require 'httparty' | |
require 'addressable/uri' | |
# cpu_user url | |
uri_cpu = Addressable::URI.escape "http://localhost/ganglia/graph.php?r=hour&title=&vl=&x=&n=&hreg[]=compute&mreg[]=cpu_user>ype=stack&glegend=hide&aggregate=1&embed=1&_=1410463742829&json=1" | |
SCHEDULER.every '15s', :first_in => 0 do |job| | |
points = [] | |
response = HTTParty.get(uri_cpu) | |
response.each do |host| |
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
require 'httparty' | |
require 'addressable/uri' | |
uri = Addressable::URI.escape "graph.php?r=hour&c=Cluster&m=load_one&s=by+name&mc=2&g=mem_report&json=1" | |
SCHEDULER.every '15s', :first_in => 0 do |job| | |
points = [] | |
response = HTTParty.get(uri) | |
response.take(4).each do |data| | |
step = 0 |
OlderNewer