-
Notifications
You must be signed in to change notification settings - Fork 79
[KOGITO-378] Integrate Kogito Operator with Prometheus Operator #98
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xiezhang7 thanks for your work! Just a small question before I start the actual review. Please see below. Thanks!
Also, I believe that we have some failing tests.
Briefly went through the PR, didn't find there anything suspicious. |
@xiezhang7 is it possible to use the This way you just create the |
@ricardozanini yes, we can do that. But we will still need the prometheus client to get the list of deployed service monitors, because the standard client doesn't support that. |
Cool! But why do we need to list the ServiceMonitors? |
Because operator-utils is used to maintain the resources. It lists the resources and filters them by the ownership. It doesn't make any assumption on the resource name or the amount of the resources. |
hmm I see. Well, I'm not that happy with this solution, but I see value using the operator-utils to manage our resources. It is what it is. Could you please them rebase your commit? |
Thanks, @ricardozanini . I have rebased the code, and changed the code to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general, @xiezhang7. Just minor comments.
Many thanks for the hard work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @xiezhang7
I didn't find anything suspicious as well, but, as a user, it is no clear how it works, or what exactly needs to be done to enable/access the metrics, and how to take advantage of this integration, the user will need to do some manual configuration besides add the prometheus addon on their project, or will the operator take care of the prometheus operator integration and run it automatically? |
Thanks, @spolti . I have updated the README.
So the user is supposed to finish 1 and 2. The operator will do 3. |
Jira: https://issues.jboss.org/browse/KOGITO-378
Description: deploy a
Service Monitor
for scraping the metrics of the Kogitio app, ifPrometheus Operator
is installed.Many thanks for submiting your Pull Request ❤️!
Please make sure that your PR meets the following requirements:
[KOGITO-XYZ] Subject