swift/etc
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
..
account-server.conf-sample Upating proxy-server StatsD logging. 2012-08-29 16:08:30 -07:00
container-server.conf-sample Upating proxy-server StatsD logging. 2012-08-29 16:08:30 -07:00
dispersion.conf-sample Fix Dispersion report and swift-bench on saio 2012-07-13 17:48:37 -05:00
drive-audit.conf-sample Patch for Swift Solaris (Illumos) compability. 2012-06-19 15:38:56 +04:00
memcache.conf-sample Do not use pickle for serialization in memcache, but JSON 2012-08-03 16:22:21 +02:00
mime.types-sample PEP 8 compliance and small modification to mime.types file 2010-11-23 19:26:02 -06:00
object-expirer.conf-sample Upating proxy-server StatsD logging. 2012-08-29 16:08:30 -07:00
object-server.conf-sample Upating proxy-server StatsD logging. 2012-08-29 16:08:30 -07:00
proxy-server.conf-sample Upating proxy-server StatsD logging. 2012-08-29 16:08:30 -07:00
rsyncd.conf-sample Added missing lockfile configuration to sample rsync.conf 2011-02-12 18:27:59 -08:00
swift-bench.conf-sample Misc. swift-bench improvements. 2012-08-27 20:25:44 +00:00
swift.conf-sample Refactor SWIFT_HASH_PATH_SUFFIX to be in a config file 2010-10-14 15:58:44 -07:00