<div dir="ltr"><div>I am going to add the hashmap service to cloud kitty conf files by defining (venvopenstack) cloud@Xena:~$ sudo vi /etc/kolla/cloudkitty-processor/cloudkitty.conf</div><div><br></div><div>[collect]</div><div>collector = gnocchi </div><div>metrics_conf = /etc/kolla/cloudkitty-processor/metrics.yml </div><div><br></div><div>And in metric.yml defined the services and fields as in <a href="https://docs.openstack.org/cloudkitty/latest/user/rating/hashmap.html">https://docs.openstack.org/cloudkitty/latest/user/rating/hashmap.html</a> </div><div><br></div><div>But when I tried to </div><div><br></div><div><pre style="box-sizing:border-box;line-height:16.25px;overflow:auto;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;padding:20px 30px;margin-top:0px;margin-bottom:10px;color:rgb(255,255,255);word-break:break-all;background-color:rgb(51,51,51);border:1px solid rgb(204,204,204);border-radius:4px"><span class="gmail-gp" style="box-sizing:border-box;color:rgb(170,170,170)">$ </span>cloudkitty hashmap group create instance_uptime_flavor_id
</pre>There is no cloudkitty CLI option </div><div><br></div><div>only I have </div><div>(venvopenstack) cloud@wallaby:~$ cloud-<br>cloud-id cloud-init cloud-init-per cloud-localds<br>(venvopenstack) cloud@wallaby:~$ <br></div><div><br></div><div><br></div><div>No cloudkitty command line option. Why ?? anything I made wrong ?</div><div><br></div><div>This was in my globals.yml which enabled for this deployment.</div><div><br></div><div>(venvopenstack) cloud@wallaby:~$ grep ^[^#] /etc/kolla/globals.yml <br>---<br>kolla_base_distro: "debian"<br>kolla_install_type: "source"<br>kolla_internal_vip_address: "10.184.48.250"<br>network_interface: "ens3"<br>neutron_external_interface: "ens4"<br>enable_ceilometer: "yes"<br>enable_cloudkitty: "yes"<br>enable_gnocchi: "yes"<br>enable_horizon_cloudkitty: "{{ enable_cloudkitty | bool }}"<br>cloudkitty_collector_backend: "gnocchi"<br>nova_compute_virt_type: "qemu"<br>(venvopenstack) cloud@wallaby:~$ <br></div><div><br></div><div>What I am missing : Any hints most welcome.</div><div><br></div><div>Thank you,</div><div>Krish</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 2, 2022 at 1:39 PM Pierre Riteau <<a href="mailto:pierre@stackhpc.com">pierre@stackhpc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>You have to create rating rules for CloudKitty to perform rating. Otherwise it won't produce any results. See the CloudKitty documentation about hashmaps for more details: <a href="https://docs.openstack.org/cloudkitty/latest/user/rating/hashmap.html" target="_blank">https://docs.openstack.org/cloudkitty/latest/user/rating/hashmap.html</a><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 2 Sept 2022 at 09:33, KK CHN <<a href="mailto:kkchn.in@gmail.com" target="_blank">kkchn.in@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I have installed all-in-one using Kolla-ansible wallaby on a Virtual Machine (Debian 10)<div><br></div><div>By default configurations up and running are able to create VMs .. with the default Cirros image. </div><div><br></div><div>I want the Metering and Billing modules for a deployment scenario. So I used this setup as a PILOT and use ceilometer with cloudkitty and gnocchi.. </div><div><br></div><div>I have enabled ( correct me If I am wrong or missing any other directives for metering and rating other than this if required => enable_ceilometer : "yes" enable_cloudkitty : "yes" enable_gnocchi : "yes" , enable_horizon_cloudkitty : "{{ enable_cloudkitty |bool }}" cloudkitty_collector_backend: "gnocchi" </div><div><br></div><div>in /etc/kolla/globals.yml </div><div><br></div><div>Then re deployed the all in one $ ( (venvopenstack) cloud@wallaby:~$ kolla-ansible -i ./all-in-one bootstrap-servers , (venvopenstack) cloud@Xena:~$ kolla-ansible -i ./all-in-one prechecks, (venvopenstack) cloud@Xena:~$ kolla-ansible -i ./all-in-one deploy ) .. All went well up and able to access horizon dashboard.</div><div><br></div><div>How to view the metrics and ratings ::<br><br></div><div> I am able to get Admin => Rating tab </div><div>Enabled the three Rating Modules there. (Hashmap, noop, pyscripts) ..</div><div><br></div><div>Rating Summary : I am getting as below</div><div>All CloudTotal 0</div><table id="m_7380954983762228653m_-8385698263424723198gmail-summary" style="border-collapse:collapse;border-spacing:0px;width:1116px;max-width:100%;margin-bottom:18px;color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px"><tbody style="box-sizing:border-box"><tr id="m_7380954983762228653m_-8385698263424723198gmail-summary__row__ALL" style="box-sizing:border-box;background-color:rgb(249,249,249)"><td style="box-sizing:border-box;padding:8px;line-height:1.42857;vertical-align:middle;border-top:1px solid rgb(221,221,221);background-clip:padding-box"><a href="http://10.184.48.94/admin/rating_summary/ALL" style="box-sizing:border-box;background-color:transparent;color:rgb(42,100,150);outline:-webkit-focus-ring-color auto 5px" target="_blank">LL</a></td><td style="box-sizing:border-box;padding:8px;line-height:1.42857;vertical-align:middle;border-top:1px solid rgb(221,221,221);background-clip:padding-box"><a href="http://10.184.48.94/admin/rating_summary/ALL" style="box-sizing:border-box;background-color:transparent;color:rgb(66,139,202);text-decoration-line:none" target="_blank">Cloud Total</a></td><td style="box-sizing:border-box;padding:8px;line-height:1.42857;vertical-align:middle;border-top:1px solid rgb(221,221,221);background-clip:padding-box">0<br><br></td></tr></tbody></table><div>Hashmap and pyscrips tab nothing to view , its empty.</div><div><br></div><div>How can I use this Rating module and how to get useful values there ?</div><div>Or is there any other configurations I have to make to get a better metering and billing utility using these tools. </div><div><br></div><div>Kindly share your tips and expertise with these tools.</div><div><br></div><div>What / where to refer to get a nice Rating/metering configurations using these tools.( Or do I need to enable / configure more directives or resources ??) </div><div><br></div><div>I have not seen a highly populated Rating Module interface in Horizon so it should be. Any reference images and configurations are most welcome.</div><div><br></div><div>Thank you,</div><div>Krish</div></div>
</blockquote></div></div>
</blockquote></div>