[8.19] [Alerting] Add snapshot telemetry for _ignored fields (#221480)#222150
Merged
maryam-saeidi merged 3 commits intoelastic:8.19from Jun 3, 2025
Merged
[8.19] [Alerting] Add snapshot telemetry for _ignored fields (#221480)#222150maryam-saeidi merged 3 commits intoelastic:8.19from
maryam-saeidi merged 3 commits intoelastic:8.19from
Conversation
Closes elastic#220815 ## Summary This PR adds telemetry for _ignored fields. The goal is to have an alert based on this field and get notified in case a user hits the mapping limit, but by default, we don't expect this to happen. This PR adds `count_ignored_fields_by_rule_type` field that counts the number of _ignored fields per rule type. In the future, we can extend the telemetry data to also include the actual number of mappings over the limit (there is a [feature request](elastic/elasticsearch#68947) for adding field count information to index API) ### How to test - Add a lot of dynamic fields as mentioned here: elastic#216719 - Create a rule with a custom threshold rule with multiple group by fields to generate an alert with _ignored field - Run the following API and check the value of `count_ignored_fields_by_rule_type` ``` POST kbn:/internal/telemetry/clusters/_stats?apiVersion=2 { "unencrypted": true, "refreshCache": true } ``` <details> <summary> Here is what it looks like:</summary>   </details> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit cde7a86) # Conflicts: # x-pack/platform/plugins/shared/alerting/server/usage/lib/get_telemetry_from_alerts.test.ts
Contributor
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
|
Contributor
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
|
benakansara
approved these changes
Jun 3, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Backport
This will backport the following commits from
mainto8.19:Questions ?
Please refer to the Backport tool documentation