jianrongzhang89 commented on code in PR #540:
URL: 
https://github.com/apache/incubator-kie-kogito-serverless-operator/pull/540#discussion_r1804999561


##########
internal/controller/profiles/dev/states_dev.go:
##########
@@ -142,6 +151,14 @@ func (e *ensureRunningWorkflowState) Do(ctx 
context.Context, workflow *operatora
        return ctrl.Result{RequeueAfter: constants.RequeueAfterIsRunning}, 
objs, nil
 }
 
+func (e *ensureRunningWorkflowState) ensureServiceMonitor(ctx context.Context, 
workflow *operatorapi.SonataFlow, pl *operatorapi.SonataFlowPlatform) 
(client.Object, error) {
+       if monitoring.IsMonitoringEnabled(pl) {
+               serviceMonitor, _, err := e.ensurers.serviceMonitor.Ensure(ctx, 
workflow)

Review Comment:
   @wmedvede In this case, the servicemoitor won't cause problems for 
Prometheus. Prometheus won't find applicable rules to scrape the metrics from 
the dev profile workflows and of course there is no metrics from such 
workflows. I think we should keep things simple, and wait for the dev profile 
image to be ready (and later on we may want to add E2E cases to cover such 
case).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to