Closed arjunvijaygoogle closed 1 year ago
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
Since this is using a custom build of the collector, lets move this issue to the https://github.com/GoogleCloudPlatform/opentelemetry-collector-builder-sample repository
Component(s)
exporter/googlecloud
What happened?
Description
I am running this configuration
getting this in collector logs
2023-10-04T15:41:53.565Z warn zapgrpc/zapgrpc.go:195 [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: "monitoring.googleapis.com:443", ServerName: "monitoring.googleapis.com:443", }. Err: connection error: desc = "transport: authentication handshake failed: tls: failed to verify certificate: x509: certificate signed by unknown authority" {"grpc_log": true}
Steps to Reproduce
Run the custom collector https://github.com/GoogleCloudPlatform/opentelemetry-collector-builder-sample
Expected Result
To send metrics to GCP
Actual Result
2023-10-04T15:41:53.565Z warn zapgrpc/zapgrpc.go:195 [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: "monitoring.googleapis.com:443", ServerName: "monitoring.googleapis.com:443", }. Err: connection error: desc = "transport: authentication handshake failed: tls: failed to verify certificate: x509: certificate signed by unknown authority" {"grpc_log": true}
Collector version
v0.86.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04") Compiler(if manually compiled): (e.g., "go 14.2")
Copyright 2022 Google LLC
#
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
#
https://www.apache.org/licenses/LICENSE-2.0
#
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
FROM golang:latest as build ARG OTEL_VERSION=0.86.0 WORKDIR /app COPY . . RUN go install go.opentelemetry.io/collector/cmd/builder@v${OTEL_VERSION} RUN builder --config=builder-config.yaml
FROM ubuntu:latest COPY --from=build /app/bin/otelcol-custom /
4317 - default OTLP receiver
55678 - opencensus (tracing) receiver
55679 - zpages
EXPOSE 4317/tcp 55678/tcp 55679/tcp
RUN ls
RUN chmod +x /otelcol-custom
ENTRYPOINT ["/otelcol-custom"]
OpenTelemetry Collector configuration
Additional context
No response