This message was deleted.
# general
s
This message was deleted.
👀 1
m
I do not want to expose that port and want my collector to be in private behind a loadbalancer
p
Hi @Mayur B 👋
Copy code
missing port in address
Did you try including the ingress port as well?
Copy code
otelCollectorEndpoint: <http://collector.org.com:4317|collector.org.com:4317>
m
But i haven't exposed that port from Ingress. Only port 80 and 443 are exposed
p
You can use 443 port.
m
I think i tried that too, but was getting some error. Let me share that. Also does the ingress need to point to grpc only or will http work?
Ha yes i remember getting huge payload error if i used port 443
p
Try setting
otelInsecure
to
false
.
m
Ok will try now
m
Yup got the reference for my values from here
But my collector ingress is pointing to http service
Tried with 443 and insecure false. Getting this error:
Copy code
error	exporterhelper/queued_retry.go:391	Exporting failed. The error is not retryable. Dropping data.	{"kind": "exporter", "data_type": "logs", "name": "otlp", "error": "Permanent error: rpc error: code = Unimplemented desc = unexpected HTTP status code received from server: 404 (Not Found); transport: received unexpected content-type \"text/plain; charset=utf-8\"", "dropped_items": 1}
<http://go.opentelemetry.io/collector/exporter/exporterhelper.(*retrySender).send|go.opentelemetry.io/collector/exporter/exporterhelper.(*retrySender).send>
	<http://go.opentelemetry.io/collector/exporter@v0.79.0/exporterhelper/queued_retry.go:391|go.opentelemetry.io/collector/exporter@v0.79.0/exporterhelper/queued_retry.go:391>
<http://go.opentelemetry.io/collector/exporter/exporterhelper.(*logsExporterWithObservability).send|go.opentelemetry.io/collector/exporter/exporterhelper.(*logsExporterWithObservability).send>
The workaround im having right now is exposing the grpc port through tcp from nginx ingress controller and connecting directly. Also was getting frame too large error if i tried connecting directly to the http service through the http exposed port
@Prashant Shahi