furkance | Hi, 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 |
---|---|---|
priteau | furkance: what if you remove the tenant_id and resource_type parameters? | 07:27 |
priteau | also, your rate is 0 so maybe you don't have any dataframes? | 07:28 |
furkance | just deleted tenant_id and resource_type and returned empty again | 07:29 |
furkance | do I need to create dataframes manually? | 07:30 |
priteau | no, they are the result of processing rating rules on metrics | 07:31 |
priteau | are your cloudkitty processors getting metrics correctly? | 07:31 |
furkance | I think so, there isn't any error log printed by cloudkitty-processor | 07:32 |
priteau | but does it say it is collecting metrics? | 07:32 |
furkance | nope, only 'Tenants loaded for fetcher monasca' | 07:34 |
furkance | I created hashmap group and service like this and made rating based on that, http://paste.openstack.org/show/806758/ | 07:35 |
furkance | this is the metrics.yml configuration I made; http://paste.openstack.org/show/806759/ | 07:36 |
priteau | are you still using monasca as metric source? | 07:36 |
furkance | yes 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 |
priteau | but are you using the same project/tenant for monasca queries? | 07:39 |
priteau | See https://docs.openstack.org/cloudkitty/latest/admin/configuration/collector.html#id2 | 07:41 |
priteau | forced_project_id parameter | 07:41 |
furkance | in the python code I shared, I use the same credentials as I used for monasca queries | 07:43 |
furkance | the project which cloudkitty is in is the same as monasca | 07:45 |
furkance | due to that I didnt use forced_project_id parameter in configurations | 07:45 |
furkance | this is my cloudkitty.conf; http://paste.openstack.org/show/806761/ | 07:47 |
priteau | which project did you use for your monasca queries | 07:48 |
furkance | I use the 'service' project | 07:48 |
priteau | ok | 07:48 |
priteau | i think you may need the project_id as a dimension in monasca | 07:51 |
priteau | since cloudkitty will query per scope | 07:52 |
furkance | hmm, 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 |
furkance | so 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 |
priteau | I think so | 07:57 |
furkance | allright, thanks! I'll try it | 07:59 |
opendevreview | Merged openstack/cloudkitty master: docs: Update Freenode to OFTC https://review.opendev.org/c/openstack/cloudkitty/+/793740 | 14:48 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!