-
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
[Stack Monitoring] compatibility for agent data streams #119112
Merged
neptunian
merged 73 commits into
elastic:main
from
neptunian:119109-es-integration-queries
Jan 20, 2022
Merged
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
1a1e5fa
update queries for elasticsearch package
neptunian eeb2c60
fix unit test
neptunian 9424af7
add gitCcs helper function
neptunian 94e05b2
modify rest of es queries
neptunian effdbb7
update logstash and kibana queries to use new createQuery
neptunian ed4196a
change beats and apm to use new createQuery
neptunian 2d03cb6
update changeQuery and remove old one
neptunian 09b8407
make getIndexPattern take request to check for ccs
neptunian 2b9c104
fix unit test
neptunian f07710e
fix unit tests
neptunian 2038d27
update queries and createQuery
neptunian d35a61a
don't add metric constant without dataset in query
neptunian ee8aa93
fix types
neptunian d41ea30
fix type
neptunian ea13b9f
comment out mb tests
neptunian a909d83
fix unit test
neptunian ecfee7e
fix unit test
neptunian 88f84ba
fix
neptunian 8894e22
fix function param
neptunian 7b5f8e5
change to getMetrics name
neptunian 513007d
change to node_stats
neptunian bf67c72
comment out metricbeat tests
neptunian f686e94
fix types
neptunian 6298e2d
improve types and readability for test
neptunian 42dd489
remove passing of data stream type for now
neptunian 2d7698e
add tests for createQuery changes
neptunian 7e7c8ca
update getNewIndexPatterns to take one dataset
neptunian 55ee366
add unit test for getNewIndexPatterns
neptunian d850af2
fix types
neptunian 501ca58
remove metrics from filter, update tests
neptunian 805a2cb
update createNewIndexPatterns to accept new config instead of legacy
neptunian 4e74a18
update alert queries to include datas stream index patterns
neptunian 820fe52
update comment
neptunian e35453b
fix merge conflicts
neptunian 8eeda28
fix defaulting ccs to * for non cluster requests
neptunian 1670e92
update elasticsearch enterprise module
neptunian 7774f07
update unit test
neptunian 0b92576
remove data_stream.type from queries
neptunian d6f18ec
change entsearch to metricbeat module name enterprisesearch
neptunian 191b4b0
undo ccs cluster stats change
neptunian b500886
fix import
neptunian 8ef66e5
update alert queries
neptunian 2a34e48
fix unit test
neptunian f4c011a
update unit test
neptunian ace5003
change shard size query to use filter
neptunian a16f212
change must to filter fix
neptunian e6dab77
Merge branch 'main' into 119109-es-integration-queries
neptunian 81acb8b
update findSupportedBasicLicenseCluster index pattern
neptunian d0c95bf
add ccs param to cluster request functions
neptunian ff01aa8
update queries for ccs in get_clusters_from_request
neptunian 0e852de
update getBeatsForClusters query
neptunian 6c07737
update clusters apm query
neptunian 9992708
update enterprisesearch query
neptunian c49698b
move index pattern to query in fetch for alerts, fix ccs
neptunian e4deebf
remove metricbeat config from alert tests
neptunian 0d19914
Merge branch 'main' into 119109-es-integration-queries
neptunian 4d170f2
fix ts
neptunian 755e3f0
Merge branch 'main' into 119109-es-integration-queries
neptunian 7f4989b
fix conflicts and update tests, add ecsLegacyOnly param
neptunian 5dc264b
add metricset.name back to queries
neptunian a88fd55
comment tests back in
neptunian 596b4c0
fix conflicts from logstash changes
neptunian e5c539f
remove enterprise search checking for standalone cluster to fix test
neptunian 3213b43
update es index metricset name from index_stats to index for mb data
neptunian 0996399
fix type
neptunian 2b841e4
Merge branch 'main' into 119109-es-integration-queries
neptunian 6878713
fetchClusters creates index pattern
neptunian dee9ac0
fix type
neptunian dfe3dd6
Merge branch 'main' into 119109-es-integration-queries
kibanamachine 17b6b2a
Merge branch 'main' into 119109-es-integration-queries
kibanamachine ca549e4
remove monitoring.ui.metricbeat.index from config and usage in getCol…
neptunian 648d582
Merge branch '119109-es-integration-queries' of github.com:neptunian/…
neptunian 2379e9e
fix type
neptunian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
stop appending the
metricbeat-*
patternThere 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 had a thought here that there's a possibility people might be using
monitoring.ui.metricbeat.index
to append custom index patterns. Should we add a deprecation warning if that config key is specified?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 we ever supported the user using this as it wasn't documented anywhere and we didn't technically support
metricbeat-*
. if that's the case would deprecating it be confusing?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.
Ahh, okay if it's not in the docs I guess it's not bad to just let it go away silently.
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.
#120384 has me wondering if we should re-think this approach. I get the feeling there's more than 1 customer problem we've solved by reaching for
monitoring.ui.metricbeat.index
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.
Even if we kept the config value there, we aren't using it anymore because we aren't querying metricbeat index anymore. If we recommended that kind of hack, hopefully we let the user know that. We probably should have discussed a fix whether we should be setting
ccs
to default 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.
That's fair. I guess we could say merging this PR raises the importance of having a proper config (which is #120384)