Skip to content
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

Merged
merged 4 commits into from
Jul 9, 2020

Conversation

smith
Copy link
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 as a code owner July 8, 2020 04:40
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Jul 8, 2020
@elasticmachine
Copy link
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
Member

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
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
@@ -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(',')}`,
Copy link
Member

@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
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 All issues that need APM UI Team support v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants