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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title> PuppetContinuousIntegration < Technology < LMAX</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
<link rel="icon" href="/pub/System/ProjectLogos/favicon.ico" type="image/x-icon" /> | |
<link rel="shortcut icon" href="/pub/System/ProjectLogos/favicon.ico" type="image/x-icon" /> | |
<meta name="TEXT_NUM_TOPICS" content="Number of topics:" /> | |
<meta name="TEXT_MODIFY_SEARCH" content="Modify search" /> |
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
{ | |
"acl": { | |
"default_policy": "deny", | |
"enable_token_persistence": true, | |
"enabled": true | |
}, | |
"auto_encrypt": { | |
"tls": true | |
}, | |
"bind_addr": "0.0.0.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
{ | |
"acl": { | |
"default_policy": "deny", | |
"enable_token_persistence": true, | |
"enabled": true | |
}, | |
"auto_encrypt": { | |
"allow_tls": true | |
}, | |
"bind_addr": "0.0.0.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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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
class profile::statistics::collection_server( | |
$apache_listen_ip = undef, | |
$logical_volume_size = '100G', | |
$volume_group = 'vg_os', | |
$physical_volume = undef, | |
$extra_proxy_pass = [], | |
$extra_docroot_index_links = {}, | |
$influxdb_index_version = 'inmem', | |
$cache_max_memory_size = 1048576000, | |
) inherits profile { |
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
[user@host ~]$ influx | |
Connected to http://localhost:8086 version 1.5.2 | |
InfluxDB shell version: 1.5.2 | |
> use lanz | |
Using database lanz | |
> select * from congestion_record order by time desc limit 10 | |
name: congestion_record | |
time entry_type host hostname intf_name port port_id q_drop_count queue_size switch_id time_of_max_qlen timestamp traffic_class tx_latency | |
---- ---------- ---- -------- --------- ---- ------- ------------ ---------- --------- ---------------- --------- ------------- ---------- | |
1527250808255589742 3 xxxxxxxxxxxxxxxxxxx yyyyyyyyyyyyyyyyyyyy Ethernet35 50001 33 0 15 0 0 152725080820836 1 5790 |
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
def process_zpool_data(pool_array) | |
if pool_array == [] | |
return Hash.new(:absent) | |
end | |
#get the name and get rid of it | |
pool = Hash.new | |
pool[:pool] = pool_array[0] | |
pool_array.shift | |
tmp = [] |
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
#!/usr/bin/env python | |
import sys | |
import subprocess | |
import getopt | |
import re | |
import json | |
def print_usage_and_exit(): | |
print "Usage: interfaces.py [-d] [-h] [-i interface]" |
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
BEGIN {"hostname" | getline hstnm ; }; | |
{ | |
#one_way_delay | |
a = $4 | |
v = gensub(/ /, "", "g", a) | |
print "PUTVAL " hstnm "/one_way_delay/precise_time_offset interval=1 N:" v*1000000000 | |
#offset_from_master | |
a = $5 | |
v = gensub(/ /, "", "g", a) |
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
from datetime import datetime, timedelta | |
import sys | |
last_t = None | |
min_delta = timedelta(seconds=1) | |
#2016-02-05T09:46:33Z | |
for line in sys.stdin: | |
t = datetime.strptime(line, "%Y-%m-%dT%H:%M:%SZ\n") | |
if last_t: | |
diff = t - last_t |
NewerOlder