The ceilometer.dispatcher.gnocchi_client Module

exception ceilometer.dispatcher.gnocchi_client.AuthenticationError[source]

Bases: exceptions.Exception

class ceilometer.dispatcher.gnocchi_client.Client(url)[source]

Bases: object

create_metric(*args, **kw)[source]
create_resource(*args, **kw)[source]
post_measure(*args, **kw)[source]
update_resource(*args, **kw)[source]
class ceilometer.dispatcher.gnocchi_client.CustomHTTPAdapter(pool_connections=10, pool_maxsize=10, max_retries=0, pool_block=False)[source]

Bases: requests.adapters.HTTPAdapter

CustomHTTPAdapter

This HTTPAdapter doesn’t trigger some urllib3 issues. urllib3 doesn’t put back connection to the pool when some errors occurs like a simple ECONNREFUSED.

This HTTPAdapter workaround this by enforcing preloading of the response. When enabled, urllib3 releases the connection to the pool immediately after its usage, and doesn’t trigger the issue.

By enforcing preloading, this break some requests features (like stream) that we didn’t use into our GnocchiClient

We could remove this when requests 2.8.0 will be released

send(request, stream=False, timeout=None, verify=True, cert=None, proxies=None)[source]
class ceilometer.dispatcher.gnocchi_client.GnocchiSession[source]

Bases: object

exception ceilometer.dispatcher.gnocchi_client.MetricAlreadyExists[source]

Bases: exceptions.Exception

exception ceilometer.dispatcher.gnocchi_client.NoSuchMetric[source]

Bases: exceptions.Exception

exception ceilometer.dispatcher.gnocchi_client.NoSuchResource[source]

Bases: exceptions.Exception

exception ceilometer.dispatcher.gnocchi_client.ResourceAlreadyExists[source]

Bases: exceptions.Exception

exception ceilometer.dispatcher.gnocchi_client.UnexpectedError[source]

Bases: exceptions.Exception

Previous topic

The ceilometer.dispatcher.gnocchi Module

Next topic

The ceilometer.dispatcher.http Module

This Page