openstackgerrit | Luka Peschke proposed openstack/cloudkitty-specs master: Spec: Optimize driver loading in v2 API https://review.opendev.org/686391 | 08:02 |
---|---|---|
openstackgerrit | Luka Peschke proposed openstack/cloudkitty master: Load drivers only once in the v2 API https://review.opendev.org/686393 | 08:05 |
openstackgerrit | Luka Peschke proposed openstack/cloudkitty master: Add developer documentation about fetcher implementation https://review.opendev.org/685111 | 08:06 |
jferrieu | vishal: hi, | 08:19 |
jferrieu | CloudKitty can be used to rate metric data coming from different services such as Gnocchi, Monasca or Prometheus. If you want to use CK to rate network use per se, you must have a metric representing e.g. network bandwidth consumption or else collected by one of these services. Then, through its collect module CK will rate the metric based on rules and a collect period defined in the configuration. | 08:19 |
jferrieu | vishal: You can find examples of pyscripts usage here: https://docs.openstack.org/cloudkitty/latest/user/rating/pyscripts.html | 08:21 |
*** priteau has joined #cloudkitty | 08:36 | |
jferrieu | vishal: You can report any bugs you encounter on the storyboards dedicated to each project such as https://storyboard.openstack.org/#!/project/openstack/cloudkitty-dashboard for cloudkitty-dashboard | 09:03 |
*** priteau has quit IRC | 10:13 | |
vishalmanchanda | jferrieu: I have created network.incoming.bytes.rate/network.outgoing.bytes.rate metric using hashmap module and create service mapping for both with some rates. Is it right? | 10:26 |
vishalmanchanda | As they are not visible in Reporting graph panel but other metrics like instance, image.size, ip.floating is visible. | 10:28 |
vishalmanchanda | Is there any way I can change color for diff. metrics like instance, image.size, floating.ip and volume.size in the graph. | 10:32 |
*** zigo has quit IRC | 10:54 | |
*** zigo has joined #cloudkitty | 11:02 | |
jferrieu | vishalmanchanda: Yes it is right to have set some hashmap mappings, but maybe you forgot to configure your metrics.yml properly to bind the metrics from your metric collector service to CloudKitty. | 12:37 |
jferrieu | vishalmanchanda: Here is some documentation about metrics.yml configuration file: https://docs.openstack.org/cloudkitty/latest/admin/configuration/collector.html#metric-collection | 12:38 |
jferrieu | Indeed, it is necessary to explicitly declare bindings for the metrics between CK and your metric collector service through the metrics.yml file (usual path is: /etc/cloudkitty/metrics.yml) | 12:40 |
jferrieu | There is no indicated way to change the colors in the graph, sorry. | 12:49 |
vishalmanchanda | but in this video https://www.youtube.com/watch?v=-7TP5Wvryzc there are different colors for different metrics. | 12:55 |
vishalmanchanda | how can i do the same. | 12:55 |
vishalmanchanda | sorry for asking too many questions! | 12:56 |
peschk_l | hi vishalmachanda, this video is a bit old. But even now, you'll have one color per metric. If you have only one color, it probably means that you are rating a single metric | 12:57 |
vishalmanchanda | peschk_l: yeah the color code for diff metrics is diff yet all of them are blue. | 13:02 |
vishalmanchanda | peschk_l: Can't i use diff colors for diff metrics. | 13:02 |
peschk_l | vishalmanchanda: no, this is not configurable right now | 13:03 |
vishalmanchanda | jferrieu: peschk_l : My query about creating a metric to rate Network bandwidth consumption is still not clear to me as they are not visible in my graph summary. jferrieu said I have to configure metric for network in metrics.yml but i have not created any custom metric all i have used already defined metrics i.e. network.incoming.bytes.rate/network.outgoing.bytes.rate using this steps | 13:15 |
vishalmanchanda | Horizon->Admin->>Rating->>Hashmap->>Create new service->>network.outgoing.bytes.rate->>>Service mapping->> create new mapping ->>Enter cost value. | 13:15 |
vishalmanchanda | I don't Know what I have missed. | 13:16 |
jferrieu | You need to check a few things: Which metric collector service are you using ((Ceilometer+)Gnocchi /Monasca/Prometheus)? Depending on this, you must ensure that the metrics you want are indeed collected by your metric collector service. Thereafter you must declare a binding to it via the cloudkitty metrics.yml configuration file. | 13:36 |
vishalmanchanda | I am using Ceilometer as a collector. Should I have to use others? I am using devstack to set my environment and this is my local.conf http://paste.openstack.org/show/784722/ | 14:06 |
vishalmanchanda | Is this the reason for network metrics are not displaying? | 14:07 |
jferrieu | The Ceilometer devstack plugin uses Gnocchi by default as its storage backend so it seems fine on this side. | 14:35 |
jferrieu | I suspect that maybe network related metrics collection is not enabled as a default by Ceilometer | 14:36 |
jferrieu | you need to check the metrics stored in Gnocchi (the Ceilometer storage backend) and see if network related metrics are exposed | 14:37 |
jferrieu | you can try `gnocchi metric list` with a CLI | 14:37 |
jferrieu | and see if the metrics you want to rate are present | 14:37 |
vishalmanchanda | yeah I have checked the gnocchi metric list and both metrics are present there which I want to rate but have diff. a name like I has created metrics name network.outgoing.bytes.rate using CK but I when I run 'gnocchi metric list' command it shows network.outgoing.bytes | 15:09 |
vishalmanchanda | Is that can be a problem. | 15:10 |
vishalmanchanda | I have no idea about the gnocchi. | 15:10 |
jferrieu | Yes it can be a problem, as the bindings are name-based, names must therefore match | 15:17 |
jferrieu | I would advise to adjust by updating your metrics.yml file to match the metric names shown by Gnocchi | 15:18 |
vishalmanchanda | After updating my metrics.yml which service I have to restart? | 15:23 |
vishalmanchanda | So that it can sync. | 15:24 |
jferrieu | If you just modified configuration files linked to CloudKitty; you must restart the `cloudkitty-processor` service | 15:26 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!