Skip to content

[APM] Update ML job ID in data telemetry tasks#71044

Merged
smith merged 4 commits intoelastic:masterfrom
smith:nls/ml-telem-job-name
Jul 9, 2020
Merged

[APM] Update ML job ID in data telemetry tasks#71044
smith merged 4 commits intoelastic:masterfrom
smith:nls/ml-telem-job-name

Conversation

@smith
Copy link
Copy Markdown
Contributor

@smith smith commented Jul 8, 2020

Use "apm-*" to match the new job IDs added in #70560.

Use "apm-*" to match the new job IDs added in elastic#70560.
@smith smith requested a review from a team July 8, 2020 04:40
@botelastic botelastic bot added the Team:APM - DEPRECATED Use Team:obs-ux-infra_services. label Jul 8, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@smith smith added release_note:skip Skip the PR/issue when compiling release notes v7.9.0 labels Jul 8, 2020
const response = (await transportRequest({
method: 'get',
path: `/_ml/anomaly_detectors/${apmJobs.join(',')}`,
path: `/_ml/anomaly_detectors/${ML_GROUP_NAME_APM}-*`,
Copy link
Copy Markdown
Contributor

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

Suggested change
path: `/_ml/anomaly_detectors/${ML_GROUP_NAME_APM}-*`,
path: `/_ml/anomaly_detectors/${ML_GROUP_NAME_APM}`,

Copy link
Copy Markdown
Contributor Author

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.

@smith smith requested a review from sorenlouv July 8, 2020 21:24

const response = (await transportRequest({
method: 'get',
path: `/_ml/anomaly_detectors/${apmJobs.join(',')}`,
Copy link
Copy Markdown
Contributor

@sorenlouv sorenlouv Jul 8, 2020

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.

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@smith smith merged commit 1f5a1fe into elastic:master Jul 9, 2020
smith added a commit to smith/kibana that referenced this pull request Jul 9, 2020
* [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
smith added a commit that referenced this pull request Jul 9, 2020
Use "apm-*" to match the new job IDs added in #70560.
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 9, 2020
* 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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:APM - DEPRECATED Use Team:obs-ux-infra_services. v7.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants