The ceilometer.objectstore.swift_middleware Module

Ceilometer Middleware for Swift Proxy

Configuration:

In /etc/swift/proxy-server.conf on the main pipeline add “ceilometer” just before “proxy-server” and add the following filter in the file:

[filter:ceilometer] use = egg:ceilometer#swift

# Some optional configuration # this allow to publish additional metadata metadata_headers = X-TEST

class ceilometer.objectstore.swift_middleware.CeilometerMiddleware(app, conf)[source]

Bases: object

Ceilometer middleware used for counting requests.

publish_counter(env, bytes_received, bytes_sent)[source]

Previous topic

The ceilometer.objectstore.swift Module

Next topic

The ceilometer.openstack.common.context Module

This Page