Monday, 2021-02-08

*** vishalmanchanda has joined #cloudkitty03:59
*** sboyron has joined #cloudkitty06:41
*** mkarpiarz has joined #cloudkitty11:57
*** jopdorp has quit IRC13:27
*** gmann has quit IRC13:27
*** vishalmanchanda has quit IRC13:27
*** mnaser has quit IRC13:27
*** mnaser has joined #cloudkitty13:28
*** jopdorp has joined #cloudkitty13:29
*** vishalmanchanda has joined #cloudkitty13:29
*** gmann has joined #cloudkitty13:31
*** rafaelweingartne has joined #cloudkitty13:55
rafaelweingartne#startmeeting cloudkitty14:00
openstackMeeting started Mon Feb  8 14:00:10 2021 UTC and is due to finish in 60 minutes.  The chair is rafaelweingartne. Information about MeetBot at http://wiki.debian.org/MeetBot.14:00
openstackUseful Commands: #action #agreed #help #info #idea #link #topic #startvote.14:00
*** openstack changes topic to " (Meeting topic: cloudkitty)"14:00
openstackThe meeting name has been set to 'cloudkitty'14:00
rafaelweingartneRoll count14:00
mkarpiarzHi!14:00
priteauo/14:01
rafaelweingartne#topic Review priorities14:05
*** openstack changes topic to "Review priorities (Meeting topic: cloudkitty)"14:05
rafaelweingartneI do not have any review priority for today's meeting14:05
rafaelweingartnedo you guys have any?14:05
mkarpiarzAny thoughts on https://review.opendev.org/c/openstack/cloudkitty/+/774084?14:06
rafaelweingartneI have not seen this one14:06
mkarpiarz(it's a WIP but feel free to comment on the idea)14:06
rafaelweingartneI will note it here to review14:07
priteauHi mkarpiarz. I haven't had the chance to look at it yet, slowly getting back to reviews.14:07
mkarpiarzSure, no problem. Whenever you guys have some spare time. :)14:08
mkarpiarzIt's a simple change that basically adds another "if" to the mutator() function.14:08
mkarpiarzI think we could do with cleaning this function up so it's not just a bunch of ifs14:09
mkarpiarzbut for now I just want to add the functionality the simplest way possible.14:10
mkarpiarzAlso, there is this idea: https://storyboard.openstack.org/#!/story/200858414:10
mkarpiarzIt might be useful to have a "keystone" module (seperate from the Keystone fetcher)14:12
mkarpiarzthat could do things like translation of project names to UUIDs14:13
priteauThe main question is whether we want the complexity to be in CloudKitty or in the deployment tool14:13
priteauDo keep in mind that you'll need to deal with user domains and project domains14:14
mkarpiarzDo you mean situations in which the rating user/project is in a different domain than the tenant storing metrics?14:16
mkarpiarzWe are setting all the required auth parameters when configuring the Monasca collector so we can always use these credentials.14:19
priteauI mean to do a lookup against keystone v3 you'll have to handle domain information as well14:19
priteauAnd potentially the metrics user could be under a different domain than the cloudkitty service user?14:20
priteauNot that I am against the idea, just letting you know about the potential complexity :)14:21
mkarpiarzOK, so what do you think would the best way for interacting with external services be?14:23
priteauWhat kind of external service do you have in mind?14:25
mkarpiarzI'm asking a general question because one can imagine a usecase where users would want to call not only Keysone but maybe some other APIs.14:25
mkarpiarzLet's limit the question to REST-based HTTP APIs. :)14:26
priteauAre we still talking about fetching some information to replace what's in the metrics file?14:27
priteauI would be OK with some code to handle a project name instead of ID but I don't think we want to encourage cloudkitty to interact with various external APIs unless there is a strong use case for it14:28
*** rafaelweingartne has quit IRC14:29
*** rafaelweingartne has joined #cloudkitty14:29
mkarpiarzI see. It's a fair point.14:29
rafaelweingartneSorry, I lost the connection14:30
mkarpiarzJust to clarify that the idea behind translation of project names to UUIDs is affecting the query14:33
priteauHum, I thought it was just to get around the forced_project_id key in metrics.yml14:34
mkarpiarzthat we run against the database with metrics and is not going to affect the metrics.yml file.14:34
mkarpiarz"external services" could come in when you have other parameters that you want to define in metrics.yml and then tell Cloudkitty how to translate these into elements of the query.14:36
mkarpiarzIn this case you can think of Keystone as an "external service". :)14:36
mkarpiarzApologis if the Story description was not clear but the idea is to introduce the `forced_project_name` parameter14:37
mkarpiarzthat would then be translated by Cloudkitty to the project UUID.14:38
priteauIf these elements in metrics.yml can be determined at deployment time and don't tend to change, I would prefer if it was the job of the deployment system to figure out the right parameters14:39
priteauexcept for keystone project name -> id which is a very common use case14:40
mkarpiarzOK, so a different approach maybe:14:41
mkarpiarzWe can tell collectors to add metadata parameters to metrics, right?14:42
mkarpiarzInstead of authenticating against Keystone from Cloudkitty we could ask Monasca to add the "project_name" parameter to each measurement.14:44
mkarpiarzThen we'd only need to adjust the query that Cloudkitty sends to, say, Influx so that it includes the metadata parameter.14:45
rafaelweingartneThat is possible already in the sumary V2 endpoint14:45
rafaelweingartneone can customize the projection/output of the summary request14:46
mkarpiarzRight, but doesn't the /v2/summary endpoint work on data that's been processed to quantities and rates?14:47
mkarpiarz(so stuff that is in the "cloudkitty" database and not in, say, the "monasca" one)14:48
rafaelweingartneit works on the influx database14:49
mkarpiarzAh, I didn't know that!14:49
rafaelweingartneI mean the endpoint consumes it, and it would normally only return the quantity and price14:49
rafaelweingartnebut I extended it to allow us to project more14:49
rafaelweingartnethis allows one to create richer reports14:49
rafaelweingartneusing the metadata that we have stored in Influx14:49
rafaelweingartne#link https://docs.openstack.org/cloudkitty/latest/api-reference/v2/index.html?expanded=get-a-rating-summary-detail#get-a-rating-summary14:50
mkarpiarzInteresting, thanks!14:51
mkarpiarzI'll have a look then.14:52
mkarpiarz(into what the /v2/summary endpoint can do)14:52
rafaelweingartneGuys, I guess we will have to end the meeting, as we are running out of time14:53
mkarpiarzI don't want to keep you guys on this tangent so feel free to move to the next item.14:53
rafaelweingartneWe do not have any other defined topics14:54
rafaelweingartne#topic AOB14:54
*** openstack changes topic to "AOB (Meeting topic: cloudkitty)"14:54
mkarpiarzHaha, good tming. ;)14:54
rafaelweingartneNow, I open for general questions and topics that people might have.14:54
rafaelweingartneI will wait for another 5min. before ending the meeting14:54
mkarpiarzNothing on my side.14:54
priteauNothing special from me either14:56
rafaelweingartneThank you guys for participating. Have a nice week.14:58
rafaelweingartne#endmeeting14:58
*** openstack changes topic to "Rating component for OpenStack https://wiki.openstack.org/wiki/CloudKitty"14:58
openstackMeeting ended Mon Feb  8 14:58:52 2021 UTC.  Information about MeetBot at http://wiki.debian.org/MeetBot . (v 0.1.4)14:58
openstackMinutes:        http://eavesdrop.openstack.org/meetings/cloudkitty/2021/cloudkitty.2021-02-08-14.00.html14:58
openstackMinutes (text): http://eavesdrop.openstack.org/meetings/cloudkitty/2021/cloudkitty.2021-02-08-14.00.txt14:58
openstackLog:            http://eavesdrop.openstack.org/meetings/cloudkitty/2021/cloudkitty.2021-02-08-14.00.log.html14:58
*** rafaelweingartne has quit IRC14:59
*** vishalmanchanda has quit IRC15:45
openstackgerritMariusz Karpiarz proposed openstack/cloudkitty-dashboard master: Unstack series on the "Cost Per Service Per Hour" graph  https://review.opendev.org/c/openstack/cloudkitty-dashboard/+/77368016:11
openstackgerritRafael Weingartner proposed openstack/cloudkitty master: Introduce "response_format" for the V2 summary API  https://review.opendev.org/c/openstack/cloudkitty/+/77452017:14
openstackgerritMerged openstack/cloudkitty-specs master: Deprecate `state` field and propose `last_processed_at` field  https://review.opendev.org/c/openstack/cloudkitty-specs/+/77151317:27
openstackgerritRafael Weingartner proposed openstack/cloudkitty master: Introduce "response_format" for the V2 summary API  https://review.opendev.org/c/openstack/cloudkitty/+/77452018:38
*** sboyron has quit IRC22:46

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