Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[ML] Updates APM Module to Work with Service Maps #70361
[ML] Updates APM Module to Work with Service Maps #70361
Changes from 2 commits
8df17b2
dc38f88
96b1b35
4a49cc5
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Just checking that this only has the
*
wildcard in the middle of the pattern, and not at the end too, as we haveapm-*-transaction-*
in the example provided to the setup endpoint.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.
there are two index patterns in the test data provided by @dgieselaar :
apm-*
andapm-*-transaction
. I went with the latter since the moduleapm_transaction
focuses only on transaction data. @dgieselaar willapm-*-transaction
reliably exist? If not, @peteharverson are there any potential consequences of having a nonexistent index pattern here?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.
@blaklaybul it's configurable, so no guarantees (for both
apm-*
andapm-*-transaction
). I'm assuming we set this when we create the job (have to check but can't find the code right now).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.
@blaklaybul the
defaultIndexPattern
supplied in the modulemanifest.json
is just used as a fallback by our module endpoints if noindexPatternName
is supplied to the endpoint. So for the common use case, where the index pattern is supplied to thesetup
endpoint to create the jobs, this value from the manifest won't be used.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.
thanks @peteharverson
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.
Was the previous job tied to
transaction.type=request
? 🤔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.
That change happened in #30820 - does that mean ML did not work for other transaction types for the past 1.5 years?
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.
yes, if the jobs were created via the ML job creation process, then the datafeed filtered for
"transaction.type": "request"
.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.
Given the following request to create a new ML job:
Will the
query
specified by APM over the API and thequery
in the config file be merged? Or should we change the query to:?
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.
Btw. overall does the request look correct?
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.
the
query
will not get merged, it will overwrite the query in each datafeed in the module.here’s a suggestion for the setup request.
i’ve moved the custom settings into the
jobOverrides
and added ajob_tags
property. l’m not sold on that name, so better suggestions are welcome.i’ve also removed the
groups
override because it’s not needed, all APM modules already have this group set.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.
Thanks @jgowdyelastic !
Is
jobOverrides
requried? I thought this would do: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.
yes, with it you can override any part of the job.
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.
Okay, so do we then also need it for the other attributes like
query
?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.
no, only for
custom_settings
.jobOverrides
anddatafeedOverrides
can be thought of as additional or advanced overrides for the job.#42946
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.
Okay - that sounds a bit inconsistent to me. Is the intention to align this? Is it documented somewhere which fields need to be wrapped in
jobOverrides
and which don't?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.
query
andgroups
are the only overrides which could potentially be moved intojobOverrides' and 'datafeedOverrides
. For the sake of backwards compatibility I'm happy for them to stay where there are, unless others agree that they are confusing and should be moved.This file was deleted.