Ask Your Question
0

ceilometer - meter for getting active tenants

asked 2016-04-18 22:29:02 -0500

itsme gravatar image

I need to know the possibility of getting the active tenants using the ceilometer meter.

To be more clear, We can use the meter "Instance" for getting the instance details, "volume" for getting the volume usage, "image" for getting image details.

Likewise, I need to know the possibility of getting the active tenants or just tenants using the ceilometer meter.

Some one help we with the details on the same.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-04-19 04:03:26 -0500

yprokule gravatar image

@itsme - there is no meter for the amount of tenants. Some related meters are identity.project.(create|deleted|updated)

Anyway - U can always submit your custom meters with ceilometr sample-create * command

edit flag offensive delete link more

Comments

Thanks for your repponse, Actually I need to get the active tenants using the ceilometer meter. Is there any possibility?

itsme gravatar imageitsme ( 2016-04-26 01:18:34 -0500 )edit

Nope, the only option is to create your own meter.

Here is list of current meters - http://docs.openstack.org/admin-guide...

yprokule gravatar imageyprokule ( 2016-04-26 02:01:33 -0500 )edit

Can you be able to show me the example of how we can create the meter , Any links for demo?

itsme gravatar imageitsme ( 2016-04-26 02:23:26 -0500 )edit

Basically smth like this:

*ceilometer sample-create --resource-id custom-tenants --meter-name active.tenants --meter-type gauge --meter-unit Tenants --sample-volume <$SomeValue> *

Of course U have to wrap it in some script and run via cron.

For more details: ceilometer help sample-create

yprokule gravatar imageyprokule ( 2016-04-26 02:48:01 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-04-18 22:29:02 -0500

Seen: 85 times

Last updated: Apr 19 '16