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] Reinstate ML multi-metric job #117836

Merged
merged 9 commits into from
Nov 11, 2021

Conversation

dgieselaar
Copy link
Member

Closes #101734.

This reverts commit 008421f.

Additionally, incorporate suggested changes from #101734 (comment).

@dgieselaar dgieselaar added release_note:enhancement Team:APM All issues that need APM UI Team support v8.0.0 auto-backport Deprecated - use backport:version if exact versions are needed v8.1.0 labels Nov 8, 2021
@dgieselaar dgieselaar requested review from a team as code owners November 8, 2021 12:27
@elasticmachine
Copy link
Contributor

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

@dgieselaar dgieselaar enabled auto-merge (squash) November 8, 2021 14:06
Copy link
Member

@sorenlouv sorenlouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly nits

"field" : "@timestamp"
}
},
"transactions_per_min" : {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need changing to whatever is chosen for the field_name in the job config.

{ exists: { field: TRANSACTION_DURATION } },
{ term: { [PROCESSOR_EVENT]: ProcessorEvent.metric } },
{ term: { [METRICSET_NAME]: 'transaction' } },
{ terms: { _tier: ['content', 'hot', 'warm'] } },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the jobs are started from within the APM UI, what start time is used for the job? Unless you are running them over the full time range of data available, this _tier filter isn't needed. Assuming the start date is close to now, the time range part of the datafeed query will ensure the cold / frozen tiers won't be searched.

{ "term": { "processor.event": "transaction" } },
{ "exists": { "field": "transaction.duration" } }
{ "term": { "processor.event": "metric" } },
{ "term": { "metricset.name": "transaction" } }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The manifest query will need to be

"query": {
    "bool": {
      "filter": [
        { "term": { "processor.event": "metric" } },
        { "term": { "metricset.name": "transaction" } }
      ],
      "must_not": { "terms": { "_tier": [ "data_frozen", "data_cold" ] } }
    }
  },

but as discussed, feel free to leave the _tier part out of the changes in this PR and I can include them when editing all the other ML modules as part of #116696.

@dgieselaar
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested creating the job from the ML and APM UIs and LGTM

@dgieselaar dgieselaar merged commit 77a620c into elastic:main Nov 11, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 11, 2021
Closes elastic#101734.

This reverts commit 008421f.

Additionally, incorporate suggested changes from elastic#101734 (comment).
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
8.0

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Nov 11, 2021
Closes #101734.

This reverts commit 008421f.

Additionally, incorporate suggested changes from #101734 (comment).

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
claudiopro pushed a commit to claudiopro/kibana that referenced this pull request Nov 11, 2021
Closes elastic#101734.

This reverts commit 008421f.

Additionally, incorporate suggested changes from elastic#101734 (comment).
fkanout pushed a commit to fkanout/kibana that referenced this pull request Nov 17, 2021
Closes elastic#101734.

This reverts commit 008421f.

Additionally, incorporate suggested changes from elastic#101734 (comment).
dmlemeshko pushed a commit that referenced this pull request Nov 29, 2021
Closes #101734.

This reverts commit 008421f.

Additionally, incorporate suggested changes from #101734 (comment).
roeehub pushed a commit to build-security/kibana that referenced this pull request Dec 16, 2021
Closes elastic#101734.

This reverts commit 008421f.

Additionally, incorporate suggested changes from elastic#101734 (comment).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:enhancement Team:APM All issues that need APM UI Team support v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM] ML jobs should support metric documents
6 participants