elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.62k stars 8.22k forks source link

[APM] APM anomaly detection jobs are failing to get set up on serverless #166831

Closed gbamparop closed 1 year ago

gbamparop commented 1 year ago

Based on this JIRA issue. It is not possible to create ML jobs on Serverless:

"Looks like there’s some job creation failures when trying to create anomaly detection jobs for APM services"

image

The ML jobs are created:

image
elasticmachine commented 1 year ago

Pinging @elastic/apm-ui (Team:APM)

sorenlouv commented 1 year ago

@yngrdyn If you look into this, can you please figure out why the error message is an empty string, and not something usable? Thanks!

sorenlouv commented 1 year ago

@yngrdyn Do you recall what the problem was here?

yngrdyn commented 1 year ago

@sqren I need to bring back to life this PR, where an initial fix was placed for the conditional check.

sorenlouv commented 1 year ago

Thanks @yngrdyn !

chrisdistasio commented 1 year ago

@yngrdyn another similar comment from a different internal user:

Hi, I have a simple APM node JS application running. But its not showing the Anomaly detection data. I enabled the default ML APM job

Image

Image

Is this the same issue or somehow related?

sorenlouv commented 1 year ago

@sqren I need to bring back to life https://github.com/elastic/kibana/pull/166438, where an initial fix was placed for the conditional check.

~@yngrdyn Looking closer at that PR, it looks like that only handles an issue on serverless. Afaict this issue is around a problem on stateful. Am I mistaken?~

I updated the issue to clarify that this a serverless specific problem

yngrdyn commented 1 year ago

Thank you @sqren, yes, this is an issue that came out of the serverless testing phase

yngrdyn commented 1 year ago

@chrisdistasio I don't think this is related to what you are showing, could you open an issue for that specific case?