elastic / elastic/beats

[autoops_es] Add additional template to default excluded template patterns

Open Beginner friendly
#52,631 1 comment 1 reaction 0 assignees View on GitHub
enhancement Metricbeat Module:AutoOps ES Team:Opex
Dominant language
Go
Stars
12.7k
Forks
5k
Avg merge
2d 1h
Merged PRs (30d)
370

Description

**Describe the enhancement:**

The default excluded template patterns in [`x-pack/metricbeat/module/autoops_es/templates/templates.go`](https://github.com/elastic/beats/blob/main/x-pack/metricbeat/module/autoops_es/templates/templates.go#L24) skip Elastic-managed / system templates so that template metricsets (`cat_template`, `component_template`, `index_template`) only collect user-managed templates.

Two additional Kibana-managed system index patterns should be added to `defaultExcludedTemplatePatterns`:

- `.workflows-*`
- `.chat-*`
- `observability-*`
- rename `.lists-default*` to `.lists-*`

These cover Kibana-managed storage such as workflow definitions/events and chat/agent-builder indices (conversations, skills, tools, memory, and related backing indices). They belong in the same exclusion set as existing patterns like `.kibana*`, `.alerts*`, and `.fleet*`.

**Describe a specific use case for the enhancement or feature:**

Clusters running current Kibana versions create templates for `.workflows-*`, `observability-*` and `.chat-*`. Those templates are not user-managed and should not be collected. Adding the patterns to the default list keeps collection focused on application templates without requiring operators to set `IGNORE_TEMPLATES_BY_INDEX_PATTERN_NAME`.

Existing tests compare against `defaultExcludedTemplatePatterns`, so updating the slice should be sufficient.

Contributor guide

Open the contributing guide

Research direction

Open x-pack/metricbeat/module/autoops_es/templates/templates.go and inspect defaultExcludedTemplatePatterns. Update the listed Kibana-managed patterns, including the .lists-* rename, then run the existing tests that compare against defaultExcludedTemplatePatterns. Done means those patterns are excluded while user-managed templates remain collectible.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.