NGINX OpenTelemetry Input Package - #15651
Conversation
|
@jsoriano @cmacknz : Could you please review this first OTEL input package Point to discuss:
|
There was a problem hiding this comment.
This file can be removed. OTel input packages rely on pre-built component templates.
If this is the only fields file, build will fail, till we release elastic/package-spec#994 (probably this week).
There was a problem hiding this comment.
Yes, this is mostly going to be the only file under fields. I don't expect any mappings to go in here.
Do we actually expect predefined mappings for OTEL Input packages.
Or we can rely on the otel template and the dynamic mappings ?
There was a problem hiding this comment.
Do we actually expect predefined mappings for OTEL Input packages.
Or we can rely on the otel template and the dynamic mappings ?
We can rely on the pre-installed template and the dynamic mappings it includes.
We still have the option of defining fields if needed in some case, but defining fields will be completely optional for OTel input packages. It will be actually expected for OTel input packages to don't contain any field definition.
There was a problem hiding this comment.
Did you consider removing this file? You can leave it empty or wait for next elastic-package release (coming soon) if you have problems with validation.
There was a problem hiding this comment.
@jsoriano On removing the base-fields.yml
-
file "/Users/ishleenkaur/go/ish_12Oct_integ/ish_integrations/build/packages/nginx_otel_input-0.0.1.zip/fields/base-fields.yml" is invalid: file is empty, but media type is defined
-
On having this file empty, we get below message:
Error: building package failed: invalid content found in built zip package: found 4 validation errors:
- expected field "data_stream.dataset" with type "constant_keyword" not found
- expected field "data_stream.namespace" with type "constant_keyword" not found
- expected field "@timestamp" with type "date" not found
- expected field "data_stream.type" with type "constant_keyword" not found
So for now we need to have this file with the fields, or we wait for the next release of elastic package.
There was a problem hiding this comment.
This is working as expected with the latest elastic-package version where the build is successful without the base-fields.yml and the fields folder
elastic-package v0.117.1 version-hash undefined (build time: unknown)
Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
|
@jsoriano : COuld you pelase rereview this ? |
jsoriano
left a comment
There was a problem hiding this comment.
Looks good overall, but there are a couple of threads that seem to lack a resolution.
There was a problem hiding this comment.
Did you consider removing this file? You can leave it empty or wait for next elastic-package release (coming soon) if you have problems with validation.
|
After discussing with @jsoriano , we will proceed with the merge after the new version of elastic package is released. It will help us removing the bas-fields.yml file. |
With new elastic package, packages pass CI even without any fields related files. |
💚 Build Succeeded
History
cc @ishleenk17 |
tommyers-elastic
left a comment
There was a problem hiding this comment.
thanks ishleen. approving, but i think we should add the component identifiers before we merge.
lalit-satapathy
left a comment
There was a problem hiding this comment.
Triaging approval.
|
Package nginx_otel_input - 0.1.0 containing this change is available at https://epr.elastic.co/package/nginx_otel_input/0.1.0/ |
This is a draft version of NGINX OpenTelemetry Input Package.
Since this is the very first OTEL Input package, this PR is being used to figure out the structure, template, what works what doesn't while creating packages.
FYI, using HTTPChecker example as reference
Relates: https://github.com/elastic/obs-integration-team/issues/622