Friday, 2021-06-18

furkanceHi, I created rating for each CPU and made other configurations, I'm trying to get the list of rated resources with python-cloudkittyclient, but it returns empty. Any idea what I'm doing wrong? Thanks in advance for your help! I'm trying to get the list with this simple code; http://paste.openstack.org/show/806756/07:10
priteaufurkance: what if you remove the tenant_id and resource_type parameters?07:27
priteaualso, your rate is 0 so maybe you don't have any dataframes?07:28
furkancejust deleted tenant_id and resource_type and returned empty again07:29
furkancedo I need to create dataframes manually?07:30
priteauno, they are the result of processing rating rules on metrics07:31
priteauare your cloudkitty processors getting metrics correctly?07:31
furkanceI think so, there isn't any error log printed by cloudkitty-processor07:32
priteaubut does it say it is collecting metrics?07:32
furkancenope, only 'Tenants loaded for fetcher monasca'07:34
furkanceI created hashmap group and service like this and made rating based on that, http://paste.openstack.org/show/806758/07:35
furkancethis is the metrics.yml configuration I made; http://paste.openstack.org/show/806759/07:36
priteauare you still using monasca as metric source?07:36
furkanceyes and when I check monasca if metric is gathered or not, I can confirm I'm getting that metric; http://paste.openstack.org/show/806760/07:38
priteaubut are you using the same project/tenant for monasca queries?07:39
priteauSee https://docs.openstack.org/cloudkitty/latest/admin/configuration/collector.html#id207:41
priteauforced_project_id parameter07:41
furkancein the python code I shared, I use the same credentials as I used for monasca queries07:43
furkancethe project which cloudkitty is in is the same as monasca07:45
furkancedue to that I didnt use forced_project_id parameter in configurations07:45
furkancethis is my cloudkitty.conf; http://paste.openstack.org/show/806761/07:47
priteauwhich project did you use for your monasca queries07:48
furkanceI use the 'service' project07:48
priteauok07:48
priteaui think you may need the project_id as a dimension in monasca07:51
priteausince cloudkitty will query per scope07:52
furkancehmm, so each metric I want to use in cloudkitty, I need to define project_id as a dimension in monasca? After that, do I also need to specify project_id in metrics.yml? 07:54
furkanceso here, I'm guessing I need to write project_id in the each metrics' groupby section as I did for resource_id? http://paste.openstack.org/show/806759/07:55
priteauI think so07:57
furkanceallright, thanks! I'll try it07:59
opendevreviewMerged openstack/cloudkitty master: docs: Update Freenode to OFTC  https://review.opendev.org/c/openstack/cloudkitty/+/79374014:48

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!