Ask Your Question
2

Create ceilometer meter using CLI

asked 2014-08-24 21:05:05 -0500

fukuda-yuko gravatar image

I want to create a meter in ceilometer, but there does not seem to be a CLI command for creating meters. There's only the command "sample-create", but is there a way to make samples into meters?

Thanks in advance, any advice will be helpful!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-09-17 06:47:25 -0500

gagarinq9 gravatar image

updated 2014-09-17 06:47:55 -0500

ceilometer help sample-create
usage: ceilometer sample-create [--project-id <PROJECT_ID>]
                                [--user-id <USER_ID>] -r <RESOURCE_ID>
                                [-m <METER_NAME>] --meter-type <METER_TYPE>
                                --meter-unit <METER_UNIT> --sample-volume
                                <SAMPLE_VOLUME>
                                [--resource-metadata <RESOURCE_METADATA>]
                                [--timestamp <TIMESTAMP>]

Create a sample.

Optional arguments:
  --project-id <PROJECT_ID>
                        Tenant to associate with sample (only settable by
                        admin users)
  --user-id <USER_ID>   User to associate with sample (only settable by admin
                        users)
  -r <RESOURCE_ID>, --resource-id <RESOURCE_ID>
                        ID of the resource. Required.
  -m <METER_NAME>, --meter-name <METER_NAME>
                        the meter name
  --meter-type <METER_TYPE>
                        the meter type Required.
  --meter-unit <METER_UNIT>
                        the meter unit Required.
  --sample-volume <SAMPLE_VOLUME>
                        The sample volume Required.
  --resource-metadata <RESOURCE_METADATA>
                        resource metadata
  --timestamp <TIMESTAMP>
                        the sample timestamp

Here the answer to your question, use parameters of ceilometer sample-create :

-m <METER_NAME>, --meter-name <METER_NAME>
                        the meter name
  --meter-type <METER_TYPE>
                        the meter type Required.
  --meter-unit <METER_UNIT>
                        the meter unit Required.
  --sample-volume <SAMPLE_VOLUME>
                        The sample volume Required.
  --resource-metadata <RESOURCE_METADATA>
                        resource metadata
edit flag offensive delete link more

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: 2014-08-24 21:05:05 -0500

Seen: 588 times

Last updated: Sep 17 '14