Ask Your Question
0

How to get the metrics of a nova instance

asked 2017-03-03 16:03:14 -0500

samah gravatar image

Hello, I'a searching about an API or a CLI to get the metrics of an instance for exemple cpu _util, memory_usage...

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-03-03 20:55:26 -0500

updated 2017-03-03 21:00:06 -0500

Ceilometer CLI, e.g.

ceilometer sample-list --query "resource=INSTANCE_ID;meter=cpu_util"

The Gnochi CLI probably achieves the same.

If you prefer, there is also the Ceilometer or Gnocchi API.

The list of existing meters is documented.

edit flag offensive delete link more

Comments

I have tried this command but it doesn't return any metric

samah gravatar imagesamah ( 2017-03-05 05:32:20 -0500 )edit

How long has your instance been running? Samples are taken every ten minutes by default. Apart from that, all I can say is that it worked for me.

Bernd Bausch gravatar imageBernd Bausch ( 2017-03-05 08:01:07 -0500 )edit

It has been runnig for a long time I don't know the source of the problem :/

samah gravatar imagesamah ( 2017-03-05 08:38:05 -0500 )edit

I don't know enough about the internals of Ceilometer and Gnocchi (the latter being the component that manages the accumulated samples) to help you troubleshoot this.

Bernd Bausch gravatar imageBernd Bausch ( 2017-03-05 09:19:14 -0500 )edit

It works know thanks

samah gravatar imagesamah ( 2017-03-05 11:13:06 -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: 2017-03-03 16:03:14 -0500

Seen: 719 times

Last updated: Mar 03 '17