Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to use python-ceilometerclient

I was trying to use python-ceilometerclient. I was developing using horizon dev env.

I do this:

from ceilometerclient.client import Client

ceilometer = Client('1', endpoint=api_endpoint, token=request.user.token.id)

and somehow I can't understand yet how to use it because the docs did not explain it well how to use it in python.

I need some code example using it such us:

getting all data usages of all instances or a specific instance including its data about ram, volumes, vcpu and etc of a tenant or project.

Any help will be much appreciated.

Thanks

How to use python-ceilometerclient

I was trying to use python-ceilometerclient. I was developing using horizon dev env.

I do this:

from ceilometerclient.client import Client

Client

ceilometer = Client('1', endpoint=api_endpoint, token=request.user.token.id)

token=request.user.token.id)

and somehow I can't understand yet how to use it because the docs did not explain it well how to use it in python.

I need some code example using it such us:

getting all data usages of all instances or a specific instance including its data about ram, volumes, vcpu and etc of a tenant or project.

Any help will be much appreciated.

Thanks