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

Fixing error in config for internal-telemetry.md #5672

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

avilevy18
Copy link

@avilevy18 avilevy18 commented Nov 22, 2024

Attempted to run collector-contrib with the example config posted on: https://opentelemetry.io/docs/collector/internal-telemetry/#self-monitoring

Found a few errors:

  1. Collector failed with config error:
error decoding 'service.telemetry': decoding failed due to the following error(s):

'traces.processors': source data must be an array or slice, got map
  • OTLP Exporter was trying to send with SSL, to receiver that was not set up with SSL.
warn	[email protected]/clientconn.go:1379	[core] [Channel #1 SubChannel #8]grpc: addrConn.createTransport failed to connect to {Addr: "127.0.0.1:14317", ServerName: "localhost:14317", }. Err: connection error: desc = "transport: authentication handshake failed: tls: first record does not look like a TLS handshake"	{"grpc_log": true}

Adding http:// before localhost in the exporters endpoint, enforces an insecure connection.

Attempted to use insecure: true option but nothing happened.

   traces:
      processors:
      - batch:
          exporter:
            otlp:
              protocol: grpc/protobuf
              endpoint: localhost:14317
              insecure: true

The insecure config options doesn't seem to do anything:
https://github.com/open-telemetry/opentelemetry-collector/blob/f74890a3889a82f57b839a8b316bb43b1e55f53e/service/telemetry/internal/otelinit/config.go#L216

- collector failed with config error:
```
error decoding 'service.telemetry': decoding failed due to the following error(s):

'traces.processors': source data must be an array or slice, got map
```

- OTLP Exporter was trying to send with SSL, to receiver that was not set up with SSL.
```
warn	[email protected]/clientconn.go:1379	[core] [Channel open-telemetry#1 SubChannel open-telemetry#8]grpc: addrConn.createTransport failed to connect to {Addr: "127.0.0.1:14317", ServerName: "localhost:14317", }. Err: connection error: desc = "transport: authentication handshake failed: tls: first record does not look like a TLS handshake"	{"grpc_log": true}
```
@avilevy18 avilevy18 requested a review from a team as a code owner November 22, 2024 22:09
Copy link

linux-foundation-easycla bot commented Nov 22, 2024

CLA Not Signed

@opentelemetrybot opentelemetrybot requested review from a team and atoulme and removed request for a team November 22, 2024 22:10
@tiffany76
Copy link
Contributor

Hi @avilevy18, could you sign the CLA please?

@open-telemetry/collector-approvers, FYI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants