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
| #!/bin/env python | |
| # stats to dashing | |
| import subprocess | |
| import re | |
| import httplib | |
| import json | |
| # config variables | |
| # dashing host |
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
| { | |
| "title": "HTTP Traffic", | |
| "services": { | |
| "query": { | |
| "list": { | |
| "0": { | |
| "query": "*", | |
| "alias": "", | |
| "color": "#7EB26D", | |
| "id": 0, |
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
| { | |
| "title": "SSH Traffic", | |
| "services": { | |
| "query": { | |
| "list": { | |
| "0": { | |
| "query": "*", | |
| "alias": "", | |
| "color": "#7EB26D", | |
| "id": 0, |
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
| { | |
| "ID": "", | |
| "Name": "Elasticsearch (latest)", | |
| "Description": "Elasticsearch", | |
| "Services": [ | |
| { | |
| "Name": "Elasticsearch (latest)", | |
| "Command": "", | |
| "Description": "Elasticsearch", | |
| "Tags": null, |
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
| { | |
| "ID": "", | |
| "Name": "Logstash (latest)", | |
| "Description": "Logstash", | |
| "Services": [ | |
| { | |
| "Name": "Logstash (latest)", | |
| "Command": "", | |
| "Description": "Logstash", | |
| "Tags": null, |
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
| 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 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
| 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 |
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
| [Unit] | |
| {% from "jira/map.jinja" import jira with context %} | |
| Description=JIRA Issue Tracker | |
| After=syslog.target | |
| After=network.target | |
| [Service] | |
| ExecStart={{ jira.install_dir }}/bin/start-jira.sh | |
| ExecStop={{ jira.install_dir }}/bin/stop-jira.sh | |
| RemainAfterExit=yes |
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
| <table style="border-collapse: collapse; margin: 0px auto; padding: 0px;"> | |
| <thead style="background: silver; font-size: 1.5em; font-weight: bold; padding: 5px; border-bottom: 2px solid grey;">This is the heading</thead> | |
| <tbody> | |
| <tr> | |
| <td style="border: 0px; padding: 5px; border: 1px solid grey;">things</td> | |
| <td style="border: 0px; padding: 5px; border: 1px solid grey;">more things</td> | |
| </tr> | |
| </tbody> | |
| </table> |
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
| salt: | |
| mirrors: | |
| - ftp.us.debian.org | |
| - ftp.uk.debian.org | |
| - ftp.ua.debian.org | |
| locations: | |
| - us | |
| - uk | |
| - ua |
OlderNewer