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

Move monitoring index patterns to constants #28958

Closed
ycombinator opened this issue Jan 17, 2019 · 2 comments
Closed

Move monitoring index patterns to constants #28958

ycombinator opened this issue Jan 17, 2019 · 2 comments

Comments

@ycombinator
Copy link
Contributor

Currently a user could change the index patterns used for Stack Monitoring indices via kibana.yml settings:

index_pattern: Joi.string().default('.monitoring-*-6-*'),

index_pattern: Joi.string().default('.monitoring-kibana-6-*'),

index_pattern: Joi.string().default('.monitoring-logstash-6-*')

index_pattern: Joi.string().default('.monitoring-beats-6-*')

index_pattern: Joi.string().default('.monitoring-es-6-*'),

The naming of these index patterns is an implementation detail and we shouldn't allow users to be able to change them. In fact, these settings are currently undocumented, precisely because we don't want users changing them.

We should make this contract more explicit by moving these settings to constants, making it ergonomic for developers while at the same time not prone to unintentional misuse by users.

@elasticmachine
Copy link
Contributor

Pinging @elastic/stack-monitoring

@cachedout
Copy link
Contributor

Nice catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants