Skip to content

Instantly share code, notes, and snippets.

View ceejbot's full-sized avatar
📈
bigger on the inside

C J Silverio ceejbot

📈
bigger on the inside
View GitHub Profile
@ceejbot
ceejbot / proposal.md
Last active November 25, 2015 21:13
monitoring proposal

Go here for the latest + some code.

numbat

An alerting engine for a metrics & monitoring system.

This is the same approach I wanted in my initial spike, only instead of writing a custom collector & using an existing alerting engine (riemann), I'm proposing using an existing collector (hekad) and writing the alerting engine.

The system

@ceejbot
ceejbot / monitoring.md
Last active November 15, 2022 08:53
monitoring manifesto

monitoring: what I want

I've recently shifted from a straight engineering job to a job with a "dev/ops" title. What I have discovered in operations land depresses me. The shoemaker's children are going unshod. Operations software is terrible.

What's driving me craziest right now is my monitoring system.

what I have right now

What I have right now is Nagios.

@ceejbot
ceejbot / gist:11231518
Last active August 29, 2015 14:00
installations of mime-1.2.11.tgz at 18:59
[root@npm-lylog-1 /var/svc/log]# grep mime site-npm-lylog\:default.log.1 | grep "1.2.11" | grep 18:59
2014-04-23T18:59:00Z 71.185.69.210 "-" "GET /npm/public/registry/mime/_attachments/mime-1.2.11.tgz" 200 "node/v0.10.26 darwin x64" "HIT" "aws_" "cache-v42-ASH"
2014-04-23T18:59:00Z 66.151.247.12 "-" "GET /mime/1.2.11" 304 "node/v0.10.26 win32 x64" "HIT" "shield__cache_c31_CHI__chi_il_us" "cache-c31-CHI"
2014-04-23T18:59:00Z 66.151.247.12 "-" "GET /mime/1.2.11" 304 "node/v0.10.26 win32 x64" "HIT" "shield__cache_v36_ASH__ashburn_va_us" "cache-v36-ASH"
2014-04-23T18:59:00Z 8.12.41.197 "-" "GET /mime/1.2.11" 304 "node/v0.10.26 sunos x64" "HIT" "shield__cache_lax1430_LAX__lax_ca_us" "cache-lax1430-LAX"
2014-04-23T18:59:00Z 8.12.41.197 "-" "GET /mime/1.2.11" 304 "node/v0.10.26 sunos x64" "HIT" "shield__cache_v41_ASH__ashburn_va_us" "cache-v41-ASH"
2014-04-23T18:59:03Z 222.127.159.33 "-" "GET /npm/public/registry/mime/_attachments/mime-1.2.11.tgz" 200 "node/v0.10.26 win32 ia32" "HIT" "aws_" "cache-hk93-HKG"
2014-04-
@ceejbot
ceejbot / strace_example
Created April 2, 2014 23:17
output of `strace ls`
ubuntu@ip-172-31-40-117:~$ strace ls
execve("/bin/ls", ["ls"], [/* 19 vars */]) = 0
brk(0) = 0x67c000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f525ac75000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=22763, ...}) = 0
mmap(NULL, 22763, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f525ac6f000
close(3) = 0
@ceejbot
ceejbot / npm-client-log
Created March 25, 2014 13:01
typical publish failure
opsbot|master ⇒ npm publish
npm http PUT https://registry.npmjs.org/opsbot
npm http 400 https://registry.npmjs.org/opsbot
npm ERR! publish Failed PUT 400
npm ERR! Error: illegal_database_name Name: 'error.html'. Only lowercase characters (a-z), digits (0-9), and any of the characters _, $, (, ), +, -, and / are allowed. Must begin with a letter.: opsbot
npm ERR! at RegClient.<anonymous> (/usr/local/Cellar/node/0.10.26/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:237:14)
npm ERR! at Request.self.callback (/usr/local/Cellar/node/0.10.26/lib/node_modules/npm/node_modules/request/request.js:123:22)
npm ERR! at Request.EventEmitter.emit (events.js:98:17)
npm ERR! at Request.<anonymous> (/usr/local/Cellar/node/0.10.26/lib/node_modules/npm/node_modules/request/request.js:893:14)
npm ERR! at Request.EventEmitter.emit (events.js:117:20)
@ceejbot
ceejbot / put-lylog.log
Last active August 29, 2015 13:57
all puts from lylog 3/26/2013
[root@npm-lylog-1 ~]# cat `svcs -L npm-lylog` | grep PUT2014-03-25T12:10:01Z 188.134.78.99 "-" "PUT /mincer" 503 "node/v0.10.25 linux x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-fra1233-FRA"
2014-03-25T12:10:03Z 101.119.17.213 "-" "PUT /stylus-test-runner" 503 "node/v0.10.20 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-lo80-LHR"
2014-03-25T12:10:05Z 95.31.23.72 "-" "PUT /grunt-user-story" 503 "node/v0.10.26 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-am72-AMS"
2014-03-25T12:10:08Z 77.12.36.81 "-" "PUT /lake" 503 "node/v0.10.15 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-fra1223-FRA"
2014-03-25T12:10:12Z 188.134.78.99 "-" "PUT /mincer" 503 "node/v0.10.25 linux x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-fra1235-FRA"
2014-03-25T12:10:15Z 101.119.17.213 "-" "PUT /stylus-test-runner" 503 "node/v0.10.20 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-lo83-LHR"
2014-03-25T12:10:21Z 212.88.6.196 "-" "PUT /staticcharge" 503 "node/v0.10
@ceejbot
ceejbot / 503-lylog.log
Created March 25, 2014 12:51
503 log segment, 5:51am PDT 3/25/2014
[root@npm-lylog-1 ~]# tail -f `svcs -L npm-lylog` | grep 5032014-03-25T12:46:21Z 62.168.11.51 "-" "PUT /more-fs" 503 "node/v0.10.26 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-fra1222-FRA"
2014-03-25T12:46:31Z 62.168.11.51 "-" "PUT /more-fs" 503 "node/v0.10.26 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-fra1233-FRA"
2014-03-25T12:46:49Z 42.120.74.198 "-" "PUT /xtpl" 503 "node/v0.10.21 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-ty67-TYO"
2014-03-25T12:46:54Z 101.119.17.213 "-" "PUT /stylus-test-runner" 503 "node/v0.10.20 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-lcy1131-LCY"
2014-03-25T12:47:11Z 101.119.17.213 "-" "PUT /stylus-test-runner" 503 "node/v0.10.26 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-lcy1122-LCY"
2014-03-25T12:47:21Z 106.187.97.235 "-" "PUT /xtpl" 503 "node/v0.10.21 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-ty68-TYO"
2014-03-25T12:47:31Z 195.162.89.170 "-" "PUT /image-set-polyfill" 503 "

Keybase proof

I hereby claim:

  • I am ceejbot on github.
  • I am ceej (https://keybase.io/ceej) on keybase.
  • I have a public key whose fingerprint is E89C 39C9 4390 77BF 93CA 0B83 C50C CAB0 EC67 50DF

To claim this, I am signing this object:

@ceejbot
ceejbot / nodebots_todo.md
Last active December 23, 2015 03:48
Things to do for nodebots day
  1. Party rentals from here: ASERentals. Arrange on Monday if possible.
  2. Bottled water in quantity.
  3. Canned soda in quantity.
  4. Large plastic buckets for drinks.
  5. DAY BEFORE: Mail to all attendees with directions from 101 & suggestions for what to bring.
  6. DAY OF: Ice in bags. Maybe beer.
  7. DAY OF: Bring all your toys.
  8. DAY OF: Taco order mid-morning.
@ceejbot
ceejbot / stashwoes.md
Last active March 14, 2019 02:57
A summary of things I miss about Github when I use Stash.

What I miss about github

See this Cloudup stream for visual references.

The short answer is that I miss everything. There is no comparing the two projects. Stash's feature set is a shadow of Github's.

What a project looks like on Github:

What a project looks like on Github