Skip to content
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 otelcol-contrib release #43

Merged
merged 3 commits into from
Dec 16, 2021

Conversation

jpkrohling
Copy link
Member

Fixes #37

Signed-off-by: Juraci Paixão Kröhling [email protected]

Fixes open-telemetry#37

Signed-off-by: Juraci Paixão Kröhling <[email protected]>
@jpkrohling jpkrohling requested review from a team and bogdandrutu December 15, 2021 12:37
@@ -6,6 +6,10 @@ archives:
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
builds:
- "otelcol"
- id: "otelcol-contrib"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is auto-generated.

@@ -0,0 +1,55 @@
extensions:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a copy from the core's config. We do not currently ship contrib with a default config file, and I think this is a good opportunity to fix that.

otelcol_version: 0.41.0

extensions:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/asapauthextension v0.41.0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The components were obtained by a mix of sed and awk commands and I verified manually by counting the number of components. An extra pair of eyes won't hurt though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any thoughts on how to keep this list up to date in the future?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manually reviewed the list and it looks good 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not going to have a components.go in the contrib anymore, so, changing the documentation to point to this instead of that would represent the current status. But the current status isn't good enough: I think we do have components that are ready but not included in the distribution.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. It's confusing to have components in the repo, but not in the release without a more clear signal as to why that is... maybe we could start adding all components in this manifest, with the components that are not "ready" in a commented out section? This would at least give users looking for specific components a chance to discover why the component is not there themselves.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I do this in a follow-up PR, if there are no other concerns?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's the list of missing components:


Extensions
- github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer/dockerobserver
- github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer/ecsobserver
- github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer/ecstaskobserver

Exporters
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awscloudwatchlogsexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/coralogixexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/elasticsearchexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudpubsubexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/observiqexporter

Processors
- github.com/open-telemetry/opentelemetry-collector-contrib/processor/redactionprocessor

Receivers
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/apachereceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/cloudfoundryreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/googlecloudpubsubreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8seventsreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mysqlreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/nginxreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver

- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/oidcauthextension v0.41.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/pprofextension v0.41.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage v0.41.0
import: github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/filestorage
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only component that deviates from the standards, and the builder was able to accommodate it.

@@ -0,0 +1,15 @@
[Unit]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested installing the RPM on a fresh Fedora 34 and verified that the systemd service was up and running.

Signed-off-by: Juraci Paixão Kröhling <[email protected]>
@jpkrohling
Copy link
Member Author

This is currently failing with:

   ⨯ release failed after 2361.69s error=failed to build for linux_arm_6: exit status 2: # github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/internal/hostmetadata
Error: /home/runner/go/pkg/mod/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/[email protected]/internal/hostmetadata/host_linux.go:37:68: cannot use uname.Version[:] (type []uint8) as type []int8 in argument to int8ArrayToByteArray
Error: /home/runner/go/pkg/mod/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/[email protected]/internal/hostmetadata/host_linux.go:47:62: cannot use uname.Machine[:] (type []uint8) as type []int8 in argument to int8ArrayToByteArray

Recorded open-telemetry/opentelemetry-collector-contrib#6813 to track this. What should we do as a workaround? Remove this (and potentially others) component, or remove armv6 from the matrix?

@codeboten codeboten self-assigned this Dec 15, 2021
@codeboten
Copy link
Contributor

As discussed in the SIG call on Dev 15, it makes sense to remove armv6 for now to unblock this work.

Signed-off-by: Juraci Paixão Kröhling <[email protected]>
otelcol_version: 0.41.0

extensions:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/asapauthextension v0.41.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me.

otelcol_version: 0.41.0

extensions:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/asapauthextension v0.41.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's the list of missing components:


Extensions
- github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer/dockerobserver
- github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer/ecsobserver
- github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer/ecstaskobserver

Exporters
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awscloudwatchlogsexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/coralogixexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/elasticsearchexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudpubsubexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/observiqexporter

Processors
- github.com/open-telemetry/opentelemetry-collector-contrib/processor/redactionprocessor

Receivers
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/apachereceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/cloudfoundryreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/googlecloudpubsubreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8seventsreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mysqlreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/nginxreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Have a contrib release
2 participants