-
Notifications
You must be signed in to change notification settings - Fork 190
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
Add index_types for OTEL logs and metrics #3148 #3929
base: main
Are you sure you want to change the base?
Conversation
8b3fedb
to
f62f4ab
Compare
@juergen-walter , This is great, thanks for starting this draft! Have you compared this schema with the OpenSearch simple schema for observability? I also don't see some of the fields from the logs or metrics in here. Are you using dynamic mapping for those? We recently added support for composable index templates. There is a directly |
5eed787
to
628f865
Compare
@dlvenable happy to hear your encouraging feedback. I shared early WIP to let you know I started working on it, still a lot to be improved.
Initially I just copied the index templates for trace spans, adjustments for metrics and traces still to be done. For the open source contribution in this PR I would align with the Simple Schema for Observability, thank you for the reminder.
If you plan prepare or merge changes before this PR has been merged, it would be nice to ping me so I can update the PR |
@dlvenable I am not so sure about the Simple Scheme for Observability. We are providing an OpenTelemetry endpoint, that should support generic data. I would expect support for the OpenTelemetry semantic conventions as a whole: https://github.com/open-telemetry/semantic-conventions. I have run a small PoC, that transfers the YAML configuration from https://github.com/open-telemetry/semantic-conventions/tree/main/model into composable index templates. Each convention maps to one template. Certain assumptions must be made on those mappings. For the three signals traces, metrics and logs a template can be generated covering the base fields. All these templates can than be joined to form a full index pattern to be used. That allows to pick and choose, which conventions should be used. However, the full solution is not yet ready. |
91c2e8b
to
efda3e7
Compare
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.
Index templates should be improved. Most of the string value fields should be keywords to allow aggregations. And most of them will not have values requiring type "text". Probably all float values should be doubles as most integers should be longs.
...repper-plugins/opensearch/src/main/resources/index-template/logs-otel-v1-index-template.json
Show resolved
Hide resolved
...repper-plugins/opensearch/src/main/resources/index-template/logs-otel-v1-index-template.json
Show resolved
Hide resolved
...repper-plugins/opensearch/src/main/resources/index-template/metrics-otel-index-template.json
Outdated
Show resolved
Hide resolved
...repper-plugins/opensearch/src/main/resources/index-template/metrics-otel-index-template.json
Outdated
Show resolved
Hide resolved
...repper-plugins/opensearch/src/main/resources/index-template/metrics-otel-index-template.json
Outdated
Show resolved
Hide resolved
...repper-plugins/opensearch/src/main/resources/index-template/metrics-otel-index-template.json
Outdated
Show resolved
Hide resolved
data-prepper-plugins/opensearch/src/main/resources/logs-policy-no-ism-template.json
Show resolved
Hide resolved
data-prepper-plugins/opensearch/src/main/resources/logs-policy-with-ism-template.json
Show resolved
Hide resolved
data-prepper-plugins/opensearch/src/main/resources/metrics-otel-v1-index-template.json
Show resolved
Hide resolved
data-prepper-plugins/opensearch/src/main/resources/metrics-policy-no-ism-template.json
Show resolved
Hide resolved
data-prepper-plugins/opensearch/src/main/resources/logs-otel-v1-index-template.json
Show resolved
Hide resolved
...repper-plugins/opensearch/src/main/resources/index-template/logs-otel-v1-index-template.json
Show resolved
Hide resolved
I closed all the related conversations and pointed to the Simple Schema for Observability mappings I aligned with. I consider the comments by @KarstenSchnitter to be a valuable feedback/review of the simple schema mappings but I would try to avoid having the respective discussion in this PR. |
Hi @dlvenable we would appreciate if we can include this into the next release, so we do not have to implement workarounds. |
@juergen-walter , It appears that the builds are still failing. Core integration testsThe core integration tests are failing with:
I'm not sure why this would be failing consistently. Maybe try another rebase for that one? OpenSearch sink integration testsFor the OpenSearch sink integration tests, you can run these commands to reproduce.
All versions of OpenSearch are failing. It is passing on OpenDistro 0.10.0 because this disables the test per the |
@dlvenable I cannot attend this today due to other obligations. I did not see the failed tests before ... do they appear with some delay or are updated regularly |
@juergen-walter , These tests are failing consistently. |
Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
works with log-analytics and metric-analytics and index type Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
Fixes testInstantiateSinkMetricsDefaultMetricSink Alertnative would have been to adjust the test Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
b894f62
to
a1ae0d1
Compare
Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
Signed-off-by: Jürgen Walter <juergen.walter@sap.com>
Description
Add index_types for OTEL logs and metrics
Issues Resolved
Resolves #3148
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.