-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[APM] Update ML job ID in data telemetry tasks #71044
Conversation
Use "apm-*" to match the new job IDs added in elastic#70560.
Pinging @elastic/apm-ui (Team:apm) |
const response = (await transportRequest({ | ||
method: 'get', | ||
path: `/_ml/anomaly_detectors/${apmJobs.join(',')}`, | ||
path: `/_ml/anomaly_detectors/${ML_GROUP_NAME_APM}-*`, |
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.
I don't think you need the wildcard since this is returning all jobs with the given group
path: `/_ml/anomaly_detectors/${ML_GROUP_NAME_APM}-*`, | |
path: `/_ml/anomaly_detectors/${ML_GROUP_NAME_APM}`, |
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.
Is that right? Before we were *-high_mean_response_time
. Also, we should probably keep that previous value as well since we'll want to count both the old and new jobs.
@@ -465,17 +466,17 @@ export const tasks: TelemetryTask[] = [ | |||
{ | |||
name: 'integrations', | |||
executor: async ({ transportRequest }) => { | |||
const apmJobs = ['*-high_mean_response_time']; | |||
const apmJobs = ['apm-*', '*-high_mean_response_time']; | |||
|
|||
const response = (await transportRequest({ | |||
method: 'get', | |||
path: `/_ml/anomaly_detectors/${apmJobs.join(',')}`, |
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.
Using GET /_ml/anomaly_detectors/${ML_GROUP_NAME_APM}
will return all jobs with group=${ML_GROUP_NAME_APM}
so should also work for old jobs.
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
* [APM] Update ML job ID in data telemetry tasks Use "apm-*" to match the new job IDs added in elastic#70560. * additional fix * Remove unused import
* master: (39 commits) [APM] Add warning to notify user about legacy ML jobs (elastic#71030) updates consumer to siem (elastic#71117) Index pattern creation flow - fix spelling (elastic#71192) [Security Solution][Endpoint] User Manifest Cleanup + Artifact Compression (elastic#70759) [SECURITY] Rearrange rule name's column in Alert Table (elastic#71020) [SECURITY] Alerts back to Detections (elastic#71142) [Security Solution][Exceptions Builder] - Fixes operator selection bug (elastic#71178) [SIEM][Detection Engine] Speeds up value list imports by enabling streaming of files. [APM] Update ML job ID in data telemetry tasks (elastic#71044) [Resolver] Remove `currentPanelView` selector (elastic#71154) add meta.managed to index templates (elastic#71135) Clarify trial subscription levels (elastic#70900) [Security Solution] fix panel links (elastic#71148) skip flaky suite (elastic#69632) skip suite failing ES Promotion (elastic#71018) [ML] DF Analytics: add results field to wizard and show regression stats (elastic#70893) [SIEM] update wordings (elastic#71119) [SECURITY SOLUTION] Rename to hosts and administration (elastic#70913) [ML] Improvements for urlState hook. (elastic#70576) Removing uptime guide (elastic#71124) ...
Use "apm-*" to match the new job IDs added in #70560.