<div dir="ltr"><div dir="ltr">Hello Noah,<br></div><div dir="ltr"><br></div><div>Are you still interested in contributing your code change? It would be really useful when using metrics from different Prometheus exporters which may not be using the same labels.</div><div><br></div><div>The contributor docs are here: <a href="https://docs.openstack.org/cloudkitty/latest/contributor/contributing.html">https://docs.openstack.org/cloudkitty/latest/contributor/contributing.html</a></div><div><br></div><div>Thanks,</div><div>Pierre Riteau (priteau)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 20 Feb 2023 at 18:55, Rafael Weingärtner <<a href="mailto:rafaelweingartner@gmail.com">rafaelweingartner@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello Noah,<br>Even though we do not see a use case for the feature you described, you seem to have a solid use case. Other approaches could have been used to "rename"/"map" tenant_id to project_id, such as with Dynamic pollsters in Ceilometer. However, the argument you present seems solid to me.<br><br>I would say that if you open a patch, we would happily review it :). AS long as things are backwards compatible, tested, and well documented, we would for sure merge it.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 20, 2023 at 10:39 AM Noah Elias Feldt <<a href="mailto:N.Feldt@mittwald.de" target="_blank">N.Feldt@mittwald.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hello! I am currently trying to get CloudKitty to work with the Prometheus Collector and PyScripts. I noticed that the scope_key for Prometheus can only be changed once in the global configuration file. This was a problem for me because we need different scope_keys for different metrics. Many of the metrics still need the scope key "tenant_id" and some others "project_id". I have found in the documentation of CloudKitty no way to change this for each metric, so I have internally changed something in the source code and added the function to set the scope_key for each metric individually. I just wanted to ask if you would be interested if I submit the small change upstream?<br>
Thank you. Regards<br>
<br>
Noah Feldt<br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Rafael Weingärtner</div></div>
</blockquote></div></div>