*** openstackgerrit has quit IRC | 01:03 | |
*** bhujay has joined #cloudkitty | 04:10 | |
*** bhujay has quit IRC | 05:29 | |
*** bhujay has joined #cloudkitty | 05:29 | |
*** bhujay has quit IRC | 06:55 | |
*** openstackgerrit has joined #cloudkitty | 08:31 | |
openstackgerrit | Nguyen Hung Phuong proposed openstack/cloudkitty master: Replaces yaml.load() with yaml.safe_load() https://review.openstack.org/543850 | 08:31 |
---|---|---|
zigo | peschk_l: I still wonder why the tenant fetcher only gets my admin login, not *ALL* tenants... | 09:03 |
peschk_l | zigo, you need to give cloudkitty the 'rating' role on tenants you want to rate | 09:04 |
zigo | peschk_l: I did so. Let me check my PoC again. | 09:05 |
zigo | Hum... | 09:06 |
zigo | Now it looks like working ... :/ | 09:06 |
peschk_l | OK, good news then :) | 09:06 |
zigo | Though summary-get only shows one single tenant, maybe in a few minutes it will work? | 09:06 |
zigo | (ie: I restarted cloudkitty switching from fake tenant fetcher to keystone) | 09:07 |
peschk_l | what storage backend are you using | 09:07 |
peschk_l | ? | 09:07 |
zigo | peschk_l: For gnocchi, file backend. | 09:07 |
zigo | peschk_l: How do I check the one of cloudkitty? | 09:07 |
zigo | I believe I'm using db. | 09:07 |
peschk_l | it's in cloudkitty.conf, in the [storage] section | 09:08 |
zigo | peschk_l: It's only a PoC, I'll soon write the puppet stuff for deploying it all, then it will use Ceph and all. | 09:08 |
peschk_l | default is sqlalchemy | 09:08 |
zigo | I'm still using sqlalchemy. | 09:08 |
zigo | Yep. | 09:08 |
zigo | peschk_l: What's recommended? | 09:08 |
zigo | peschk_l: Gnocchi ? | 09:08 |
peschk_l | sqlalchemy is fine | 09:09 |
zigo | peschk_l: It produces A LOT of records, really a lot. | 09:09 |
zigo | peschk_l: I don't think it's going to scale well enough when there will be 1000+ VMs running. | 09:09 |
peschk_l | zigo we know, that's why we introduced the hybrid storage in this release | 09:09 |
zigo | peschk_l: How does that work? | 09:09 |
peschk_l | the hybrid storage stores the state of each tenant in an SQL database, but that's on ly one entry per tenant. All the storage informations are stored in a timeseries database | 09:10 |
zigo | peschk_l: I also wonder, cloudkitty only does back-charge, meaning I'd have to write a daemon to check if the customer isn't above his account, in which case I'd shutdown his VMs. Is that kind of feature planned in Cloudkitty? | 09:10 |
peschk_l | For now, gnocchi is the only supported backend for the hybrid storage but we should support more in the future | 09:11 |
zigo | peschk_l: Very good, that's exactly what's needed. Will it be there for Queens? | 09:11 |
peschk_l | zigo: yes, it's in upstream, but not considered stable yet | 09:11 |
zigo | I'm currently doing the Queens packaging for Debian, and probably, that's what is going to end up in production over here. | 09:11 |
peschk_l | should be stable in Rocky though | 09:12 |
zigo | I don't mind running bleeding edge master if that still continues to work with Queens. | 09:12 |
zigo | :) | 09:12 |
peschk_l | well the hybrid storage might become the v2 storage, so that would imply to modify the conf a little | 09:13 |
peschk_l | but it should work with Queens components :) | 09:13 |
zigo | Ok. | 09:14 |
zigo | peschk_l: Will there be a way to move the storage from the old backend to the new? | 09:14 |
peschk_l | zigo: and no, it is not planned to check if customers are above their account | 09:14 |
zigo | Maybe, just scrap the data, and let the processor run again ? | 09:14 |
zigo | peschk_l: Hum ... is that something that can be done with aodh, maybe? | 09:15 |
zigo | The goal is to run the customers of our cloud using pre-paid accounts only. | 09:15 |
zigo | All together, I was surprised how nice cloudkitty is, though really, it lacks a lot of docs, it was hard for me to understand what was going on. | 09:17 |
zigo | It'd be super cool to have a shell script to set all the components billing at once, for example, so there would be no mistake possible. | 09:17 |
zigo | Maybe I can contribute that? | 09:18 |
peschk_l | Well I don't know much about aodh but if there's a way to query the cloudkitty API you should be able to do this | 09:18 |
peschk_l | what do you mean, a script that would create the required services etc ? | 09:18 |
peschk_l | (I mean services in cloudkitty's hashmap module) | 09:18 |
zigo | Yup. | 09:19 |
zigo | All of that. | 09:20 |
zigo | With just a bit of config on top of the script. | 09:20 |
zigo | Then later, it'd be easy for anyone to only change pricing ... | 09:20 |
zigo | And that'd be just something to push with the docs / examples / contrib ... | 09:20 |
zigo | (pick your choice) | 09:21 |
peschk_l | And the docs are a keypoint for the next release (developper documentation most of all, we need more contributors) | 09:21 |
peschk_l | zigo: make a story here https://storyboard.openstack.org/#!/project/890 | 09:21 |
peschk_l | and we'll look at it :) | 09:21 |
zigo | :) | 09:21 |
zigo | Thanks. | 09:21 |
openstackgerrit | Nguyen Hung Phuong proposed openstack/cloudkitty master: Replaces yaml.load() with yaml.safe_load() https://review.openstack.org/543850 | 09:23 |
openstackgerrit | Luka Peschke proposed openstack/cloudkitty master: Add i18n support for error message https://review.openstack.org/437331 | 10:14 |
openstackgerrit | Martin CAMEY proposed openstack/cloudkitty master: Simplify metrics.yml fields and usage https://review.openstack.org/543564 | 10:34 |
openstackgerrit | Martin CAMEY proposed openstack/cloudkitty master: WIP: Allow Cloudkitty to collect non-OpenStack metrics https://review.openstack.org/538256 | 10:41 |
*** bhujay has joined #cloudkitty | 12:19 | |
bhujay | finally got it running | 13:46 |
bhujay | cloudkitty summary-get | 13:46 |
bhujay | +-----------+---------------+---------+---------------------+---------------------+ | 13:46 |
bhujay | | Tenant ID | Resource Type | Rate | Begin Time | End Time | | 13:46 |
bhujay | +-----------+---------------+---------+---------------------+---------------------+ | 13:46 |
bhujay | | ALL | ALL | 20950.0 | 2018-02-01T00:00:00 | 2018-03-01T00:00:00 | | 13:46 |
bhujay | +-----------+---------------+---------+---------------------+---------------------+ | 13:46 |
bhujay | this is for a hashmap-compute-service with flavor_id as filed mapping but How to see the hourly statistics from gnocchi , will it not be stored there with total.cost or compute.cost ? these metrics are not there ? Would be grateful if someone gives few minutes to explain | 13:49 |
peschk_l | bhujay: what do you want to do exactly ? | 14:25 |
peschk_l | get a report per hour ? | 14:25 |
bhujay | peschk_l: that right | 14:26 |
bhujay | peschk_l: report per hour | 14:26 |
peschk_l | you can specify the starting end ending time for cloudkitty summary-get and cloudkitty total-get | 14:27 |
peschk_l | *starting and ending | 14:27 |
bhujay | peschk_l:got it , thanks will try it . But it must be storing the data in gnocchi , i am wondering why cant i see it using openstack metric measure show command | 14:28 |
*** prodriguez83 has quit IRC | 14:29 | |
*** openstackgerrit has quit IRC | 14:33 | |
bhujay | bhujay@ansiblenew:~$ cloudkitty summary-get -s volume -b 2018-02-13T16:00:00+05:30 -e 2018-02-13T18:00:00+05:30 | 14:49 |
bhujay | invalid literal for float(): 2018-02-13T16:00:00+05:30 | 14:49 |
bhujay | peschk_l: sorry to bother you again , isn't the time format right ? | 14:50 |
peschk_l | bhujay: the time has to be a unix timestamp for summary-get. If you want to use this timeformat, you can use total-get | 14:53 |
bhujay | peschk_l: ok , many thanks | 14:53 |
peschk_l | bhujay: let me know if this works for you :) | 14:54 |
bhujay | peschk_l: yes , thanks peschk_1 , total-get works , let me explore more .. | 15:01 |
*** bhujay has quit IRC | 15:13 | |
*** openstackgerrit has joined #cloudkitty | 17:31 | |
openstackgerrit | Martin CAMEY proposed openstack/cloudkitty master: WIP: Allow Cloudkitty to collect non-OpenStack metrics https://review.openstack.org/538256 | 17:31 |
openstackgerrit | Martin CAMEY proposed openstack/cloudkitty master: WIP: Allow Cloudkitty to collect non-OpenStack metrics https://review.openstack.org/538256 | 17:44 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!