Permalink
Browse files

[split] moved ostrich into the birdcage

  • Loading branch information...
0 parents commit 03e7e545449bf73c7cf376f0d9766cfa09905e1d @jjmmcc jjmmcc committed Oct 13, 2011
Showing with 12,983 additions and 0 deletions.
  1. +24 −0 .gitignore
  2. +234 −0 CHANGELOG
  3. +202 −0 LICENSE
  4. +363 −0 README.md
  5. +5 −0 config/test.conf
  6. +8 −0 project/build.properties
  7. +58 −0 project/build/OstrichProject.scala
  8. +19 −0 project/plugins/Plugins.scala
  9. +4 −0 project/release.properties
  10. +20 −0 src/main/resources/graph.html
  11. +71 −0 src/main/resources/report_request_handler.html
  12. +197 −0 src/main/resources/static/drawgraph.js
  13. +12 −0 src/main/resources/static/index.html
  14. +2,119 −0 src/main/resources/static/jquery.flot.js
  15. +299 −0 src/main/resources/static/jquery.flot.selection.js
  16. +4,376 −0 src/main/resources/static/jquery.js
  17. +321 −0 src/main/scala/com/twitter/ostrich/admin/AdminHttpService.scala
  18. +154 −0 src/main/scala/com/twitter/ostrich/admin/BackgroundProcess.scala
  19. +142 −0 src/main/scala/com/twitter/ostrich/admin/CommandHandler.scala
  20. +26 −0 src/main/scala/com/twitter/ostrich/admin/FinagleTracing.scala
  21. +63 −0 src/main/scala/com/twitter/ostrich/admin/Heapster.scala
  22. +195 −0 src/main/scala/com/twitter/ostrich/admin/RuntimeEnvironment.scala
  23. +49 −0 src/main/scala/com/twitter/ostrich/admin/Service.scala
  24. +56 −0 src/main/scala/com/twitter/ostrich/admin/ServiceTracker.scala
  25. +124 −0 src/main/scala/com/twitter/ostrich/admin/TimeSeriesCollector.scala
  26. +140 −0 src/main/scala/com/twitter/ostrich/admin/config/AdminServiceConfig.scala
  27. +40 −0 src/main/scala/com/twitter/ostrich/admin/config/ServerConfig.scala
  28. +80 −0 src/main/scala/com/twitter/ostrich/stats/Counter.scala
  29. +89 −0 src/main/scala/com/twitter/ostrich/stats/Distribution.scala
  30. +241 −0 src/main/scala/com/twitter/ostrich/stats/Histogram.scala
  31. +60 −0 src/main/scala/com/twitter/ostrich/stats/JsonStatsLogger.scala
  32. +89 −0 src/main/scala/com/twitter/ostrich/stats/Metric.scala
  33. +73 −0 src/main/scala/com/twitter/ostrich/stats/Stats.scala
  34. +307 −0 src/main/scala/com/twitter/ostrich/stats/StatsCollection.scala
  35. +177 −0 src/main/scala/com/twitter/ostrich/stats/StatsListener.scala
  36. +273 −0 src/main/scala/com/twitter/ostrich/stats/StatsProvider.scala
  37. +101 −0 src/main/scala/com/twitter/ostrich/stats/W3CStats.scala
  38. +37 −0 src/main/scala/com/twitter/ostrich/stats/W3CStatsLogger.scala
  39. +52 −0 src/main/scala/com/twitter/ostrich/stress/W3CStresser.scala
  40. +179 −0 src/scripts/json_stats_fetcher.rb
  41. +1 −0 src/test/resources/nested/1level.txt
  42. +1 −0 src/test/resources/nested/2levels/2levels.txt
  43. +1 −0 src/test/resources/nested/example/example.txt
  44. +1 −0 src/test/resources/unnested.txt
  45. +27 −0 src/test/scala/com/twitter/ostrich/ConfiguredSpecification.scala
  46. +331 −0 src/test/scala/com/twitter/ostrich/admin/AdminHttpServiceSpec.scala
  47. +46 −0 src/test/scala/com/twitter/ostrich/admin/RuntimeEnvironmentSpec.scala
  48. +58 −0 src/test/scala/com/twitter/ostrich/admin/ServiceTrackerSpec.scala
  49. +150 −0 src/test/scala/com/twitter/ostrich/admin/TimeSeriesCollectorSpec.scala
  50. +133 −0 src/test/scala/com/twitter/ostrich/admin/config/AdminServiceConfigSpec.scala
  51. +46 −0 src/test/scala/com/twitter/ostrich/stats/DistributionSpec.scala
  52. +195 −0 src/test/scala/com/twitter/ostrich/stats/HistogramSpec.scala
  53. +51 −0 src/test/scala/com/twitter/ostrich/stats/JsonStatsFetcherSpec.scala
  54. +79 −0 src/test/scala/com/twitter/ostrich/stats/JsonStatsLoggerSpec.scala
  55. +38 −0 src/test/scala/com/twitter/ostrich/stats/LocalStatsCollectionSpec.scala
  56. +51 −0 src/test/scala/com/twitter/ostrich/stats/MetricSpec.scala
  57. +236 −0 src/test/scala/com/twitter/ostrich/stats/StatsCollectionSpec.scala
  58. +182 −0 src/test/scala/com/twitter/ostrich/stats/StatsListenerSpec.scala
  59. +33 −0 src/test/scala/com/twitter/ostrich/stats/StatsSpec.scala
  60. +115 −0 src/test/scala/com/twitter/ostrich/stats/W3CStatsLoggerSpec.scala
  61. +129 −0 src/test/scala/com/twitter/ostrich/stats/W3CStatsSpec.scala
@@ -0,0 +1,24 @@
+out
+target
+dist
+#*#
+.#*
+*~
+*.log
+*.iml
+*.ipr
+*.iws
+*.swp
+.idea
+*.iml
+lib_managed
+project/boot
+.DS_Store
+src_managed
+.ensime
+project/plugins/project
+ostrich.tmproj
+.ivyjars
+.classpath
+.project
+.scala_dependencies
234 CHANGELOG
@@ -0,0 +1,234 @@
+4.9.4
+-----
+release: ???
+
+- Enable or disable Finagle tracing from the admin http interface.
+- Fix PeriodicBackgroundProcess to delay up to a second, preventing it
+ from running at the 59th second of a minute by accident.
+- Add more histogram buckets, to track metrics > 1M.
+
+
+4.9.3
+-----
+release: 22 September 2011
+
+- Add 'removeCounter'. [gphat]
+
+
+4.9.2
+-----
+release: 13 September 2011
+
+- Fix logic to find the jar when it's in the current folder.
+
+
+4.9.1
+-----
+release: 7 September 2011
+
+- Fix a few small bugs in the "/graph/" system of the admin server.
+
+
+4.9.0
+-----
+release: 29 August 2011
+
+- Add 'statsFilters' and "?filtered=1" to the stats command on the admin
+ port.
+
+
+4.8.3
+-----
+release: 12 August 2011
+
+- Allow a BackgroundProcess to ask not to be interrupted.
+- Allow a BackgroundProcess to be stopped without joining its underlying
+ thread.
+
+
+4.8.2
+-----
+Changes:
+
+- supports configuration which StatsCollection to report for a given AdminHttpService
+
+
+4.8.0
+-----
+release: 8 August 2011
+
+- Histogram improvements (used for percentiles)
+ Use 3x more buckets
+ getPercentile/minimum/maximum now returns midpoint of bucket, not
+ upper boundary
+ With the above two changes, getPercentile/minimum/maximum return
+ an estimated value within 5% of the actual value. Before, the
+ estimated values was up to 23% higher than the actual value.
+ Fix: getPercentile(0.0) now returns the minimum (was 0)
+ Fix: minimum of a histogram containing only infinity is infinity
+
+
+4.7.3
+-----
+release: 20 July 2011
+
+- Include file descriptor statistics
+
+
+4.7.2
+-----
+release: 14 July 2011
+
+- [OBSERVE-289] Support both namespaced and period-latched stats listeners on
+ the admin service.
+
+
+4.7.1
+-----
+release: 12 July 2011
+
+- [OBSERVE-286] Fix LatchedStatsListener to update values once per period.
+
+
+4.7.0
+-----
+release: 11 July 2011
+
+- Fix LatchedStatsListener caching so that a new listener is not created for
+ each request (effectively causing unlatched absolute-counter behavior)
+
+- Move default latch intervals into AdminServiceConfig
+
+- Latch gauges and labels
+
+- Add interval support to json_stats_fetcher.rb (for tests, mostly)
+
+- Remove unnecessary synchronizations
+
+- Upgrade to util-1.10
+
+
+4.6.0
+-----
+release: 7 July 2011
+
+- Fix a potential race in histogram reporting.
+
+- Use latched StatsListeners by default, so multiple listeners on the same
+ time frequency get the same deltas.
+
+
+4.5.2
+-----
+release: 6 July 2011
+
+- Let the admin HTTP port be defined/overridden by the command line.
+
+- Fix timeFuture* API to return positive values.
+
+
+4.5.0
+-----
+release: 28 June 2011
+
+- Requires util 1.9.0, which introduces the validate() method on Config.
+
+- validate() on Configs is called automatically in RuntimeEnvironment when
+ loading a config.
+
+- Fixed admin port "/" path, and added an "X-Ostrich-Version" header to all
+ responses.
+
+
+4.4.0
+-----
+release: 14 June 2011
+
+- StatsListener computes distributions as deltas just like it does for
+ counters.
+
+- Distribution is now just a thin immutable wrapper around a Histogram, and
+ FanoutMetric now has the same behavior as FanoutCounter.
+
+- Min/max are now computed on the histogram and vary across samples. Count
+ and sum have been pushed into Histogram.
+
+- Added 95th percentile to reported stats.
+
+
+4.3.0
+-----
+release: 1 June 2011
+
+- track sum in Metric and Distribution and derive mean
+
+
+4.2.3
+-----
+release: 19 May 2011
+
+- fix StatsListener constructor to keep backwards compatibility
+
+- better timers for Future
+
+
+4.2.2
+-----
+release: 17 May 2011
+
+- CgiRequestHandler: Handle multiple CGI parameters correctly
+
+
+4.2.1
+-----
+release: 13 May 2011
+
+- remove idea plugin
+
+- fix bug in reporting metrics that may not exist
+
+
+4.2.0
+-----
+release: 9 May 2011
+
+- Made -D option set system properties, too.
+
+- Derived metrics (i.e. average, max, min, percentiles) are now exposed only when there are one or
+ more events in a metric's histogram.
+
+- Added admin command "stats?namespace=<name>", which will report a named StatsListener.
+
+- Removed old hooks for adding admin HTTP path handlers. You have to use the config fields in
+ AdminServiceConfig now.
+
+- Added several GC-related counters & gauges to stats.
+
+- Added support to the admin "server_info" command for two new build fields: current branch alias
+ and the last few commit summaries (requires standard-project >= 0.12.4).
+
+- Improved documentation significantly.
+
+
+4.1.0
+-----
+release: 7 Apr 2011
+
+- BackgroundProcess is no longer a Thread. It now contains a field "thread" which is the actual
+ thread.
+
+- Added FanoutStatsCollection and LocalStatsCollection.
+
+- Added StatsProvider#timeFutureMillis for timing util-core Future operations.
+
+- Added -D option to RuntimeEnvironment arguments for custom arguments.
+
+
+...
+
+
+1.2.0
+-----
+release: 3 Aug 2010
+
+- Added manual setGauge and clearGauge to Stats.
Oops, something went wrong.

0 comments on commit 03e7e54

Please sign in to comment.