Leo Franchi
d02f46fba7
Log a statsd event when restarting the server
...
(imported from commit e9fa632a39f0a6b6aa7311e80e68faf4178a2cf3)
2013-04-18 18:05:52 -04:00
Leo Franchi
29ad205b01
Add a management command to send a statsd message
...
(imported from commit 25ead4a0dee185a139eb5401e109c9cbe937c7bf)
2013-04-18 18:05:52 -04:00
Leo Franchi
652b821d64
Add a bunch of statsd logging
...
(imported from commit 8c17a76fed08c34abab3cc45d76a0fb30774d73a)
2013-04-18 18:05:52 -04:00
Leo Franchi
46415d4984
Add statsd helpers and wrappers
...
(imported from commit 9d5b805ae416a65ac49dda8e8e11d9831308116c)
2013-04-18 18:05:52 -04:00
Leo Franchi
1d25f36554
Add a decorator for sending count information to statsd
...
(imported from commit 5263e39d8c235ac56517f0a69a1b1337e6f8942a)
2013-04-18 18:05:52 -04:00
Leo Franchi
1388cd2ec8
[manual] Enable statsd on staging/prod and local machines that support it
...
This requires django-statsd-mozilla to be installed on staging/prod
(imported from commit 3885b1e1bf07e1e4479505f0a59bfe7f0b473393)
2013-04-18 18:05:52 -04:00
Leo Franchi
499ef75c26
Add configuration files for graphite and statsd
...
(imported from commit bb2c14d816f9ead54bed9da1f227c5e35c9a36bb)
2013-04-18 18:05:51 -04:00
Tim Abbott
3fa32c8f7d
Decrease restart timeouts for django and tornado command lines.
...
(imported from commit 5653de5e4e39f6ecfade794738d334a360bf2a7e)
2013-04-18 17:15:29 -04:00
Tim Abbott
9e85e6e0b9
Fix ordering constraint on get_old_messages query to UserMessage table.
...
Amazingly, this saves about 250ms on every get_old_messages query in
my testing on postgres.humbughq.com (previously, we were scanning all
rows in the zephyr_usermessage table rather than using an index).
(imported from commit 566a5ef0bbf3c2198fa9e0b63d34e38ac9c57d18)
2013-04-18 17:15:29 -04:00
Zev Benjamin
e9f6d9ceff
puppet: Fix location of stats directory
...
(imported from commit b482d6c22e5c1844a65cbee41d1e39378500a9c7)
2013-04-18 17:14:32 -04:00
Tim Abbott
5afe06e8cb
Decrease idle event queue timeout back to 10 minutes.
...
(imported from commit 1ca1c99c013f3e7f7e70e1fd9c5386b0d5a27b98)
2013-04-18 16:58:31 -04:00
Leo Franchi
aa75f51d5e
Catch IncompatibleProtoclErrors as well, since our failure to connect might happen during the initial handshake phase
...
(imported from commit 55115f19a5a101676e3ce1ca2a7b9cd2a2d5b028)
2013-04-18 15:46:43 -04:00
Tim Abbott
3811bcc025
Increase the threshhold for triggering collapsing./
...
(imported from commit cd1dac8b4726cef82eb2dc957fc7edced298fa9c)
2013-04-18 15:39:45 -04:00
Jeff Arnold
cce1213320
Don't collapse messages that would only be collapsed by a small amount
...
(imported from commit 56e8df87d3eae62080962474eae23ab75f009819)
2013-04-18 13:17:22 -04:00
Luke Faraone
1e34114439
Add an example of the call_on_each_message function.
...
(imported from commit 164689ee246bcdfc0d39366b1c30f1af44935386)
2013-04-18 09:57:58 -07:00
Luke Faraone
3703d33219
Switch default tab to Python
...
(imported from commit 43fe8126f7eae218338c31ba96f6531d59232053)
2013-04-18 09:57:58 -07:00
Luke Faraone
546a376d1c
Move API endpoint docs onto their own page.
...
(imported from commit 0472c9051ba75e8c8ea4f80941ca9ef3b7ad949e)
2013-04-18 09:57:57 -07:00
Luke Faraone
a97d4b7cb2
Switch to pretty codehighlighted humbugrc
...
(imported from commit 3e4f156a3d017166d1339784c5b3593b402d7805)
2013-04-18 09:57:57 -07:00
Luke Faraone
724ecce063
Add breadcrumbs to static pages.
...
(imported from commit a2ad69953e320847c063026e2debaf0916167c35)
2013-04-18 09:57:57 -07:00
Luke Faraone
f5d4925360
Create aggregate jobs page.
...
(imported from commit a7271fb7586252ee7168115f7cf9bbf4db58ef0e)
2013-04-18 09:57:57 -07:00
Luke Faraone
ea7965d9bb
Rework API documentation to cover all supported calls.
...
We now generate our API documentation page based off of JSON source.
(imported from commit 0e8a91ef4278684dbcad89cad39a1977672245fc)
2013-04-18 09:57:56 -07:00
Luke Faraone
4601db82e5
Bump API version on /api to 0.1.6
...
(imported from commit 41a0e4f77fe2960d55b4302a502f8d3b8721c787)
2013-04-18 09:57:55 -07:00
Luke Faraone
e3b72155b8
Bump API version
...
(imported from commit 2366dbabbb0395676bfe7ad908ce362c3aca84c2)
2013-04-18 09:57:54 -07:00
Luke Faraone
80e452af82
Include get_messages call in tarball.
...
(imported from commit ed030c97ba3c34a72eb7ced867c20d1a7c315159)
2013-04-18 09:57:53 -07:00
Luke Faraone
8e1268c8fa
Update README so as not to lie about min requests version :)
...
(imported from commit 074adaa6d15014caad83b19f234dd291025fc667)
2013-04-18 09:57:53 -07:00
Zev Benjamin
8bc0de19dc
Center the message condenser messages with respect to the message body
...
Previously it was centered with respect to its enclosing div, which
looked slightly off.
(imported from commit a56ca3e9f20e9b01236b58be7a279d28b97e74bc)
2013-04-18 11:29:32 -04:00
Jeff Arnold
33c8368734
Automatically condense long messages
...
Addresses Trac #747 .
(imported from commit 057f08f2fcef43070b0838a600f6a89c479b4ee8)
2013-04-18 11:29:32 -04:00
Leo Franchi
fb2b3ae21a
Handle multiple preregistration user objects when choosing streams
...
(imported from commit 52faa0256a719bed8a8ccc120f8177cce20450e2)
2013-04-17 15:48:30 -04:00
Jessica McKellar
1bd5f788b3
subs: remove redundant call to add_sub after create_sub.
...
(imported from commit ad47d9e9964a850892baeff17d3c94cfedbc9f0f)
2013-04-17 13:27:48 -04:00
Jessica McKellar
a87e41d66c
Make inviting users to your realm case-insensitive.
...
Before this commit, foo@Bar.com couldn't be invited to bar.com.
(imported from commit 04b16f66a6ec9e157bdc7523972b37432358f5cd)
2013-04-17 13:27:48 -04:00
Jessica McKellar
3e9e8eec1b
tutorial: move script creation down the file to appease the linter.
...
(imported from commit 77b2b18874a19b39ec0a60c3c25b8459b50ce9ee)
2013-04-17 13:27:48 -04:00
Jessica McKellar
7d389d8c13
tutorial: fix broken pipelining of asynchronous requests.
...
Some functions invoked by the make_script framework weren't returning
their Deferreds. I noticed this as the hello stream not getting picked
correctly because loading your real subs hadn't completed yet.
(imported from commit fac3fa36b77585bd5c03bf8fbaec052fe397a481)
2013-04-17 13:27:48 -04:00
Jessica McKellar
e15dd90bd9
tutorial: don't recommend saying hi on a tutorial stream.
...
Now we don't unsub you from it until after we've picked the hello
stream.
(imported from commit b1489007e972af7713804ba5ff98764a6393a0b6)
2013-04-17 13:27:48 -04:00
Jessica McKellar
750b8326d7
subs: fix incorrect stream_info re-initialization.
...
Using [] doesn't cause incorrect behavior, but it's a mismatch with
how stream_info is initially declared and gives you a confusing
representation at the console.
(imported from commit c03d9e6a29ff990659f41ee478f631a019a5ac25)
2013-04-17 13:27:48 -04:00
Jessica McKellar
6b4196a74a
tutorial: fix race that could cause you to not see the goodbye message.
...
(imported from commit 52afce208890dbd863fc1661729e4351160d09ac)
2013-04-17 13:27:47 -04:00
Jessica McKellar
3945335e6e
tutorial: don't let punctuation get in the way of exiting.
...
(imported from commit 7b97f382684bd2ddb92fc3efa6e1a635c4662aef)
2013-04-17 13:27:47 -04:00
Jessica McKellar
a76977f57f
tutorial: don't let the tutorial recommend saying hi on a non-existent stream.
...
Previously we added some names to your subs to use them as examples
during the tutorial. We no longer do that, but the tutorial could pick
a name from that list to recommend that you say hi on, even if you
aren't subbed.
Don't do that, and instead try to pick a stream that is in turn:
* your company name
* a probably-good stream name like social
* a stream that is hopefully not an alert stream like nagios
* eventually give up and pick anything
(imported from commit ec20c7722ea95b025dec62bcf47e33c62d1a8029)
2013-04-17 13:27:47 -04:00
Jessica McKellar
bb315d4033
tutorial: remove CUSTOMER18 customer18stream1 hack.
...
(imported from commit b333fe10bf22aa5471b672fd51b2426191f259bf)
2013-04-17 13:27:47 -04:00
Jessica McKellar
ac4385e410
tutorial: don't start the tutorial until you're subbed to the tutorial stream.
...
Also handle the case of subscribing failing.
This race could cause you to not see initial traffic from the tutorial bot.
(imported from commit 395a2968555e20a4dbc106dfa9d5790e9f102a3e)
2013-04-17 13:27:47 -04:00
Jessica McKellar
1c437cb0ff
tutorial: return the $.ajax Deferred from the subscription requests.
...
(imported from commit d9154b00720b6055077e4f0e7f92313d121032b4)
2013-04-17 13:27:47 -04:00
Jessica McKellar
6a0c1f66d8
tutorial: factor setting tutorial status into a function.
...
(imported from commit 3ec355e3bcad25bbe8dceb9a1fdb9e8cce5156ca)
2013-04-17 13:27:47 -04:00
Waseem Daher
df9c29984e
Remove extra space between stream transitions.
...
This was causing the spacing to be extra-spacious.
We only need the extra space at the bottom of a
--- Subscribed to stream x ---
message.
Also, add this space (and style things more nicely) with CSS --
<center> has been deprecated since HTML 4.01.
(imported from commit b5500bdf67bdcca5f4e5b2d3bbd76846b3961254)
2013-04-17 13:20:59 -04:00
Leo Franchi
0aa20cb594
Rework saved consumer logic in TornadoQueue to always reconnect consumers
...
(imported from commit 0627d769349077c1e795db9215b17f538e9ec75c)
2013-04-17 12:11:28 -04:00
Leo Franchi
3681b77f22
Patch TornadoConnection to catch exceptions and continue reconnection
...
(imported from commit 6bf9086b6bdc35321b23bb92b35679e2a21f6333)
2013-04-17 11:29:08 -04:00
Leo Franchi
4adf2d5c26
Add on-close callback immediately after creating
...
(imported from commit 221f8c6306ef9b6c658d10b72e15dcfba83017e0)
2013-04-17 11:20:01 -04:00
Tim Abbott
a54e8fee1c
Add tool used for backing up wiki, trac, events.
...
This is a slightly tweaked version of the tool Keegan was using for
these backups.
(imported from commit c9fb7f0585c219703130fe1431ea40ca7320408e)
2013-04-17 10:19:13 -04:00
Tim Abbott
6ab480d9c6
restart-server: Call fill_memcached_caches via more direct path.
...
The previous version ended up being (at least sometimes) wrong after
the recent deployment system changes.
(imported from commit dec3beb1b1bf8b9c9ad6820b93b0a5d730d020e8)
2013-04-17 10:19:13 -04:00
Leo Franchi
350cf79ba0
Add a nagios check for a notify_tornado consumer
...
(imported from commit 050536bb4ac7384d5b98d5cf6cb7430b2b00dbd5)
2013-04-17 09:24:28 -04:00
Tim Abbott
7b1513b675
check_send_receive: Use different users for staging and prod.
...
(imported from commit 26aad66bf4b0bdd0d52693f42f6fc1ad1471f948)
2013-04-16 15:25:35 -04:00
Tim Abbott
eade71651f
check_send_receive: Improve error reporting on receive path.
...
(imported from commit 54eed4286c5ee4830670306be7c018f41dd4f906)
2013-04-16 15:25:06 -04:00