Skip to content
View corecapture
#!/usr/bin/env bash
echo a
echo b
echo ----
echo c
echo d
echo ----
echo
View hekad.toml
# -*- mode: toml -*-
# vi: set ft=toml :
[hekad]
base_dir = "/tmp"
[on_space]
type = "TokenSplitter"
delimiter = " "
View gist:4912279e49dce41ab9b2
#!/usr/bin/env bash
URL="http://a0.awsstatic.com/pricing/1/ec2/ri-v2/linux-unix-shared.min.js"
(echo 'function callback(data) { console.log(JSON.stringify(data)); }'; curl -s "$URL") |\
node |\
jq -r '.config.regions[] |
select(.region == "us-east-1") |
.instanceTypes[] |
[
View gist:2fc3af0387eceeeaf614
FROM (base)
MAINTAINER Mat Schaffer <mat@stellar.org>
ENV (foo)_VERSION 1.4.3
EXPOSE (port)
ADD install /
RUN /install
View alert.lua
return {
send = function(ns, message)
print("alert - " .. ns .. ": " .. message)
end
}
View docker-compose.yml
ledgerclose: &default
image: stellar/atlas-alert
restart: always
log_driver: syslog
env_file:
- ./smtp.env
- ./base.env
environment:
DESCRIPTION: "Ledger close rate has dropped < 0.1/s on the following nodes:"
QUERY: "name,ledger.ledger.close,:eq,stat,1_min_rate,:eq,:and,:sum,(,node,),:by,:dup,0.1,:le,alert: $(node),:legend,:vspan,60,:alpha"
View cadvisor.json
[
{
"name": "stats",
"columns": [
"time",
"sequence_number",
"tx_errors",
"memory_usage",
"rx_errors",
"container_name",
View logexamples.txt
info: type=query, sql=update `Transactions` set `confirmedAt` = ? where `id` = ?
error: unhandled error type name=NetworkError, stack=NetworkError: noNetwork
View atlas.conf
atlas {
core {
model {
step = 1m
}
db {
class = "com.netflix.atlas.core.db.MemoryDatabase"
View autorun.sh
#!/bin/sh
set -e
IMAGE="$1"
VOLUME_PATH="${VOLUME_PATH:-$(pwd)/volumes}"
NAME="$(echo "${IMAGE}" | awk -F: '{print $1}' | awk -F/ '{print $NF}')"
Something went wrong with that request. Please try again.