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

[Stack Monitoring] update monitoring index patterns to be non-versioned #121609

Closed

Conversation

matschaffer
Copy link
Contributor

Summary

Rel #121251

This updates stack monitoring index patterns to look for any monitoring prefix.

This supports our current 6 & 7, as well as 8 which is getting ready for release and covers our metricbeat index patterns.

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@matschaffer matschaffer requested a review from a team as a code owner December 20, 2021 06:31
@matschaffer matschaffer self-assigned this Dec 20, 2021
@matschaffer matschaffer added auto-backport Deprecated - use backport:version if exact versions are needed Feature:Stack Monitoring Team:Monitoring Stack Monitoring team v8.0.0 v8.1.0 v8.2.0 labels Dec 20, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-monitoring-ui (Team:Monitoring)

@matschaffer matschaffer added the release_note:skip Skip the PR/issue when compiling release notes label Dec 20, 2021
@matschaffer matschaffer changed the title Try updating monitoring patterns to be non-versioned [Stack Monitoring] update monitoring index patterns to be non-versioned Dec 20, 2021
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
monitoring 23.7KB 23.6KB -97.0B

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

cc @matschaffer

@matschaffer
Copy link
Contributor Author

Kind of surprised that passed. What say you @klacabane , merge it?

@claudiopro
Copy link
Contributor

Looks legit from a pattern matching perspective. Curious to hear @klacabane's feedback.

export const INDEX_PATTERN_BEATS = '.monitoring-beats-6-*,.monitoring-beats-7-*';
export const INDEX_ALERTS = '.monitoring-alerts-6*,.monitoring-alerts-7*';
export const INDEX_PATTERN_ELASTICSEARCH = '.monitoring-es-6-*,.monitoring-es-7-*';
export const INDEX_PATTERN = '.monitoring-*';
Copy link
Contributor

Choose a reason for hiding this comment

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

Note: isn't this pattern also encompassing the other four?

Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder what was the reasoning behind the hardcoded versions here ? Could we have some legacy .monitoring version 5 out there that we don't support anymore ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fair thing to wonder. Maybe @jasonrhodes or @chrisronline have some idea?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I spun up a 5.6.16 cluster to test and the monitoring indices are -6 interestingly enough.

Screen Shot 2021-12-22 at 15 26 32

I guess I could just add another comma and add 8 if we want to play it safe. But if the 5.x stack is also 6 and the last 5 release was EOL 2019-03-11, it might be reasonable to remove the version now.

export const INDEX_PATTERN_BEATS = '.monitoring-beats-6-*,.monitoring-beats-7-*';
export const INDEX_ALERTS = '.monitoring-alerts-6*,.monitoring-alerts-7*';
export const INDEX_PATTERN_ELASTICSEARCH = '.monitoring-es-6-*,.monitoring-es-7-*';
export const INDEX_PATTERN = '.monitoring-*';
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder what was the reasoning behind the hardcoded versions here ? Could we have some legacy .monitoring version 5 out there that we don't support anymore ?

@matschaffer
Copy link
Contributor Author

Closing in favor of #121641

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 Feature:Stack Monitoring release_note:skip Skip the PR/issue when compiling release notes Team:Monitoring Stack Monitoring team v8.0.0 v8.1.0 v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants