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}')"
View gist:71fb91e6390d3928d8e2
[hekad]
maxprocs = 2
[statsd_input]
type = "StatsdInput"
stat_accum_name = "stat_accumulator"
address = ":8125"
[stat_accumulator]
type = "StatAccumInput"
View core.toml
[hekad]
base_dir = "/tmp"
[StellarCoreMetricsInput]
type = "HttpInput"
url = "http://localhost:8000/metrics"
ticker_interval = 1
[StellarCoreMetricsFilter]
type = "SandboxFilter"
View recover.rb
require 'pathname'
require 'uri'
require 'fileutils'
# Expects a dir arg of exported photos and a .log which contains /var/log/system.log Photo messages generated during the export
dir = Pathname.new(ARGV[0])
log = Pathname.new(dir.basename.to_s + '.log')
recovered_dir = dir + 'recovered'
View tunnels.sh
#!/usr/bin/env bash
# Usage: sub tunnels [start|stop|restart|status|edit]
# Summary: Manage shared and user-specified SSH tunnels into your infrastructure
# Help: Manage shared and user-specified SSH tunnels into your infrastructure.
#
# Expects ssh to be configured for proxying. Run `sub check` to check your
# environment.
#
# This will attempt to use autossh if it's available.
#