-
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
[Fleet] Generate time_series_metric when metric_type is set #148666
Conversation
Pinging @elastic/fleet (Team:Fleet) |
x-pack/plugins/fleet/server/services/epm/elasticsearch/template/template.test.ts
Outdated
Show resolved
Hide resolved
…e/template.test.ts Co-authored-by: Kyle Pollich <[email protected]>
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @nchaulet |
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.
Thanks for fixing 🚀
The new implementation does not do any validation if the field supports metric_type. This might have the advantage, that if more field types are added in the future, no code changes are needed. As this code is used by packages, it should be ensured that elastic-package does the validation. |
@ruflin it will be great if elastic-package validate this and it will probably improve a lot the developper experience, but worse case scenario currently the package installation will fail, and the package developper will still have some feedback something is not correct |
@nchaulet Looks good. Can you follow up on the spec validation? |
@ruflin @kpollich Looks like that change break some dashboard the Should we generate |
Yes this seems like a safe bet - better to not assume any and all fields will have time series indexing enabled at some point in the future. |
Yes! Otherwise it is tricky to test the feature. I expect many packages will add the field but still have time series off but turn it on first for testing. |
Summary
Resolve #148057
Generate
time_series_metric
for every field whenmetric_type
is set.The previous implementation was only doing it for scaled float.
That PR also remove
metric_type
from meta as the original issue mentioned to keep onlymeta.unit
#115621