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/sh | |
| # | |
| # An example hook script to verify what is about to be committed. | |
| # Called by "git commit" with no arguments. The hook should | |
| # exit with non-zero status after issuing an appropriate message if | |
| # it wants to stop the commit. | |
| # | |
| # To enable this hook, rename this file to "pre-commit". | |
| echo "in git pre-commit hook" |
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
| [fetcher:net::cacerts] fetching /var/cache/omnibus/cache/cacert.pem from http://curl.haxx.se/ca/cacert.pem | |
| [fetcher:net::cacerts] getting from http://curl.haxx.se/ca/cacert.pem with 10 redirects left | |
| [fetcher:net::cacerts] Invalid MD5 for cacerts | |
| [fetcher:net::cacerts] Expected: 47961e7ef15667c93cd99be01b51f00a | |
| [fetcher:net::cacerts] Actual: 349ba2d6964db9ca558c9e1daf38e428 | |
| Something went wrong...the Omnibus just ran off the road! | |
| Error raised was: | |
| Checksum of downloaded file /var/cache/omnibus/cache/cacert.pem doesn't match expected |
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
| 2013-08-09T18:24:18+09:30 [DEBUG] :: flapjack-notifier :: notification: media_to_use: {"jabber"=>"log@jabber.example.com", "pagerduty"=>"xxxxxxxx"} | |
| 2013-08-09T18:24:18+09:30 [INFO] :: flapjack-notifier :: Enqueueing email alert for foo-app-01.example.com:Foo to jane@example.com | |
| 2013-08-09T18:24:18+09:30 [WARN] :: flapjack-notifier :: Failed to dump Flapjack::Data::TagSet Object to JSON in strict mode. | |
| 2013-08-09T18:24:18+09:30 [WARN] :: flapjack-notifier :: /Users/jesse/src/flpjck/flapjack-ali-graham/lib/flapjack/data/message.rb:15:in `dump' | |
| /Users/jesse/src/flpjck/flapjack-ali-graham/lib/flapjack/data/message.rb:15:in `push' | |
| /Users/jesse/src/flpjck/flapjack-ali-graham/lib/flapjack/notifier.rb:144:in `block in process_notification' | |
| /Users/jesse/src/flpjck/flapjack-ali-graham/lib/flapjack/notifier.rb:101:in `each' | |
| /Users/jesse/src/flpjck/flapjack-ali-graham/lib/flapjack/notifier.rb:101:in `process_notification' | |
| /Users/jesse/src/flpjck/flapjack-ali-graham/lib/flapjack/notifier.rb:61:in `block (3 levels) in sta |
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
| foo |
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
| @last_error = { | |
| :code => response.code, | |
| :body => response.body | |
| } | |
| # vs | |
| @last_error = {:code => response.code, | |
| :body => response.body} |
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
| { | |
| "events_created":24010, | |
| "flapjack_runtime":127.21185874939, | |
| "processing_rate":188.740265538453, | |
| "ok_to_critical":4108, | |
| "critical_to_ok":4101, | |
| "checks_per_entity":5, | |
| "entities":2, | |
| "interval":3600, | |
| "hours":2400.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
| jesse@Heart-of-Gold flapjack $ time CPUPROFILE=/tmp/flapjack_profile_4 RUBYOPT="-r`gem which perftools | tail -1`" bin/flapjack start --no-daemonize | |
| Flapjack starting...Starting flapjack service... | |
| 2013-07-26T12:40:05+09:30 [INFO] :: flapjack-jabber :: starting | |
| 2013-07-26T12:40:05+09:30 [INFO] :: flapjack-web :: starting web - class | |
| 2013-07-26T12:40:05+09:30 [INFO] :: flapjack-api :: starting api - class | |
| 2013-07-26T12:40:08+09:30 [INFO] :: flapjack-jabber :: Jabber Connected | |
| 2013-07-26T12:40:08+09:30 [INFO] :: flapjack-jabber :: Joining room flapjacktest@conference.jabber.bulletproof.net | |
| 2013-07-26T12:40:08+09:30 [INFO] :: flapjack-jabber :: Joining room log@conference.jabber.bulletproof.net | |
| ^C2013-07-26T12:43:53+09:30 [INFO] :: flapjack-coordinator :: processor: stopping -> stopped | |
| 2013-07-26T12:43:53+09:30 [INFO] :: flapjack-coordinator :: notifier: stopping -> stopped |
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
| jesse@Heart-of-Gold flapjack $ pprof.rb --text /tmp/flapjack_profile | |
| Using local file /Users/jesse/.rbenv/versions/1.9.3-p125/bin/ruby. | |
| Using local file /tmp/flapjack_profile. | |
| Use of uninitialized value $address in exists at /Users/jesse/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/perftools.rb-2.0.1/bin/pprof line 2781. | |
| Total: 69688350 samples | |
| 8671483 12.4% 12.4% 8671489 12.4% Redis::Connection::CommandHelper#build_command | |
| 3515666 5.0% 17.5% 4017939 5.8% EventMachine::Deferrable#set_deferred_status | |
| 3515596 5.0% 22.5% 6528947 9.4% EventMachine::Deferrable#callback | |
| 2511410 3.6% 26.1% 2511410 3.6% EventMachine::Connection#send_data | |
| 2511115 3.6% 29.7% 29765172 42.7% Redis::Client#ensure_connected |
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
| (again run for about 70 seconds and killed) | |
| jesse@Heart-of-Gold flapjack $ CPUPROFILE=/tmp/flapjack_profile_3 RUBYOPT="-r`gem which perftools | tail -1`" bin/flapjack start --no-daemonize | |
| Flapjack starting...Starting flapjack service... | |
| 2013-07-26T10:24:51+09:30 [INFO] :: flapjack-jabber :: starting | |
| 2013-07-26T10:24:51+09:30 [INFO] :: flapjack-web :: starting web - class | |
| 2013-07-26T10:24:51+09:30 [INFO] :: flapjack-api :: starting api - class | |
| 2013-07-26T10:24:52+09:30 [INFO] :: flapjack-jabber :: Jabber Connected | |
| 2013-07-26T10:24:52+09:30 [INFO] :: flapjack-jabber :: Joining room flapjacktest@conference.jabber.bulletproof.net | |
| 2013-07-26T10:24:52+09:30 [INFO] :: flapjack-jabber :: Joining room log@conference.jabber.bulletproof.net |
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
| group :test do | |
| ... | |
| gem 'perftools.rb' | |
| end |