swift/doc/source
Darrell Bishop 4a2ae2b460 Upating proxy-server StatsD logging.
Removed many StatsD logging calls in proxy-server and added
swift-informant-style catch-all logging in the proxy-logger middleware.
Many errors previously rolled into the "proxy-server.<type>.errors"
counter will now appear broken down by response code and with timing
data at: "proxy-server.<type>.<verb>.<status>.timing".  Also, bytes
transferred (sum of in + out) will be at:
"proxy-server.<type>.<verb>.<status>.xfer".  The proxy-logging
middleware can get its StatsD config from standard vars in [DEFAULT] or
from access_log_statsd_* config vars in its config section.

Similarly to Swift Informant, request methods ("verbs") are filtered
using the new proxy-logging config var, "log_statsd_valid_http_methods"
which defaults to GET, HEAD, POST, PUT, DELETE, and COPY.  Requests with
methods not in this list use "BAD_METHOD" for <verb> in the metric name.
To avoid user error, access_log_statsd_valid_http_methods is also
accepted.

Previously, proxy-server metrics used "Account", "Container", and
"Object" for the <type>, but these are now all lowercase.

Updated the admin guide's StatsD docs to reflect the above changes and
also include the "proxy-server.<type>.handoff_count" and
"proxy-server.<type>.handoff_all_count" metrics.

The proxy server now saves off the original req.method and proxy_logging
will use this if it can (both for request logging and as the "<verb>" in
the statsd timing metric).  This fixes bug 1025433.

Removed some stale access_log_* related code in proxy/server.py.  Also
removed the BaseApplication/Application distinction as it's no longer
necessary.

Fixed up the sample config files a bit (logging lines, mostly).

Fixed typo in SAIO development guide.

Got proxy_logging.py test coverage to 100%.

Fixed proxy_logging.py for PEP8 v1.3.2.

Enhanced test.unit.FakeLogger to track more calls to enable testing
StatsD metric calls.

Change-Id: I45d94cb76450be96d66fcfab56359bdfdc3a2576
2012-08-29 16:08:30 -07:00
..
_ga Updated Google Analytics code for more precise tracking 2010-11-11 09:00:00 -06:00
_static Adding a box to each page that gives readers links to 1.1 and 1.2 Swift docs sites 2011-03-09 23:14:38 -06:00
_theme Adds links to docs.openstack.org 2012-04-23 10:48:24 -05:00
account.rst Initial commit of Swift code 2010-07-12 17:03:45 -05:00
admin_guide.rst Upating proxy-server StatsD logging. 2012-08-29 16:08:30 -07:00
associated_projects.rst Remove swift.common.client from here. 2012-06-07 16:36:49 +02:00
conf.py Fix PEP8 issues. 2012-08-22 12:20:30 +08:00
container.rst More docs 2011-02-24 15:01:22 -08:00
db.rst Initial commit of Swift code 2010-07-12 17:03:45 -05:00
debian_package_guide.rst Updates swift docs to use correct release PPA. 2011-12-16 20:22:18 -08:00
deployment_guide.rst Update docs for new ring serialization. 2012-08-21 12:09:28 -07:00
development_auth.rst Fixed grammar and improve docs. 2012-04-10 12:27:14 -07:00
development_guidelines.rst updated copyright date for all files 2012-03-19 13:45:34 -05:00
development_saio.rst Upating proxy-server StatsD logging. 2012-08-29 16:08:30 -07:00
getting_started.rst Updates swift docs to use correct release PPA. 2011-12-16 20:22:18 -08:00
howto_installmultinode.rst Remove swift.common.client from here. 2012-06-07 16:36:49 +02:00
index.rst Reverted the pulling out of various middleware: 2012-05-16 21:25:10 +00:00
misc.rst Remove swift.common.client from here. 2012-06-07 16:36:49 +02:00
object.rst Initial commit of Swift code 2010-07-12 17:03:45 -05:00
overview_architecture.rst Spell check for .rst files 2010-10-13 11:28:27 -05:00
overview_auth.rst Move swift_auth middleware from keystone to swift. 2012-07-05 14:36:14 -04:00
overview_container_sync.rst Remove swift.common.client from here. 2012-06-07 16:36:49 +02:00
overview_expiring_objects.rst Expiring Objects Support 2011-11-01 15:49:00 +00:00
overview_large_objects.rst Remove swift.common.client from here. 2012-06-07 16:36:49 +02:00
overview_object_versioning.rst update object versions docs 2012-08-07 16:26:38 -07:00
overview_reaper.rst Add an optional delay to account reaping. 2012-03-21 15:26:07 +00:00
overview_replication.rst Explain how replication works more clearly 2011-12-21 12:56:23 +09:00
overview_ring.rst Update docs for new ring serialization. 2012-08-21 12:09:28 -07:00
proxy.rst Initial commit of Swift code 2010-07-12 17:03:45 -05:00
ratelimit.rst Reverted the pulling out of various middleware: 2012-05-16 21:25:10 +00:00
ring.rst Initial commit of Swift code 2010-07-12 17:03:45 -05:00