Here's the screenshot after I've ran just curl and the endpoint:
This all looks good.
OTel processes the data just fine, but then when it tries to send it to ES after buffering is when we see the issue. I've attached the log of when the error occurs. Removed some sensitive information
<<=== OT ACTUALLY PROCESSING DATA. REMOVED IT FOR SECURITY ===>>
{"kind": "exporter", "data_type": "metrics", "name": "logging"}
2023-10-24T20:39:01.724-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel Connectivity change to CONNECTING {"grpc_log": true}
2023-10-24T20:39:01.724-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel picks a new address "ESEndpoint.apm.us-central1.gcp.cloud.es.io:443" to connect {"grpc_log": true}
2023-10-24T20:39:01.724-0500 info zapgrpc/zapgrpc.go:178 [core] pickfirstBalancer: UpdateSubConnState: 0xc0014821f8, {CONNECTING <nil>} {"grpc_log": true}
2023-10-24T20:39:01.724-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3] Channel Connectivity change to CONNECTING {"grpc_log": true}
2023-10-24T20:39:01.818-0500 info zapgrpc/zapgrpc.go:178 [core] Creating new client transport to "{\n \"Addr\": \"ESEndpoint.apm.us-central1.gcp.cloud.es.io:443\",\n \"ServerName\": \"ESEndpoint.apm.us-central1.gcp.cloud.es.io:443\",\n \"Attributes\": null,\n \"BalancerAttributes\": null,\n \"Type\": 0,\n \"Metadata\": null\n}": connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority" {"grpc_log": true}
2023-10-24T20:39:01.818-0500 warn zapgrpc/zapgrpc.go:195 [core] [Channel #3 SubChannel #4] grpc: addrConn.createTransport failed to connect to {
"Addr": "ESEndpoint.apm.us-central1.gcp.cloud.es.io:443",
"ServerName": "ESEndpoint.apm.us-central1.gcp.cloud.es.io:443",
"Attributes": null,
"BalancerAttributes": null,
"Type": 0,
"Metadata": null
}. Err: connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority" {"grpc_log": true}
2023-10-24T20:39:01.819-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel Connectivity change to TRANSIENT_FAILURE {"grpc_log": true}
2023-10-24T20:39:01.819-0500 info zapgrpc/zapgrpc.go:178 [core] pickfirstBalancer: UpdateSubConnState: 0xc0014821f8, {TRANSIENT_FAILURE connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority"} {"grpc_log": true}
2023-10-24T20:39:01.819-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3] Channel Connectivity change to TRANSIENT_FAILURE {"grpc_log": true}
2023-10-24T20:39:01.819-0500 info exporterhelper/queued_retry.go:426 Exporting failed. Will retry the request after interval. {"kind": "exporter", "data_type": "metrics", "name": "otlp/elastic", "error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: authentication handshake failed: x509: certificate signed by unknown authority\"", "interval": "6.336685321s"}
2023-10-24T20:39:03.125-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel Connectivity change to IDLE {"grpc_log": true}
2023-10-24T20:39:03.125-0500 info zapgrpc/zapgrpc.go:178 [core] pickfirstBalancer: UpdateSubConnState: 0xc0014821f8, {IDLE connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority"} {"grpc_log": true}
2023-10-24T20:39:03.125-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3] Channel Connectivity change to IDLE {"grpc_log": true}
2023-10-24T20:39:08.157-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel Connectivity change to CONNECTING {"grpc_log": true}
2023-10-24T20:39:08.157-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel picks a new address "ESEndpoint.apm.us-central1.gcp.cloud.es.io:443" to connect {"grpc_log": true}
2023-10-24T20:39:08.157-0500 info zapgrpc/zapgrpc.go:178 [core] pickfirstBalancer: UpdateSubConnState: 0xc0014821f8, {CONNECTING <nil>} {"grpc_log": true}
2023-10-24T20:39:08.157-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3] Channel Connectivity change to CONNECTING {"grpc_log": true}
2023-10-24T20:39:08.246-0500 info zapgrpc/zapgrpc.go:178 [core] Creating new client transport to "{\n \"Addr\": \"ESEndpoint.apm.us-central1.gcp.cloud.es.io:443\",\n \"ServerName\": \"ESEndpoint.apm.us-central1.gcp.cloud.es.io:443\",\n \"Attributes\": null,\n \"BalancerAttributes\": null,\n \"Type\": 0,\n \"Metadata\": null\n}": connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority" {"grpc_log": true}
2023-10-24T20:39:08.246-0500 warn zapgrpc/zapgrpc.go:195 [core] [Channel #3 SubChannel #4] grpc: addrConn.createTransport failed to connect to {
"Addr": "ESEndpoint.apm.us-central1.gcp.cloud.es.io:443",
"ServerName": "ESEndpoint.apm.us-central1.gcp.cloud.es.io:443",
"Attributes": null,
"BalancerAttributes": null,
"Type": 0,
"Metadata": null
}. Err: connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority" {"grpc_log": true}
2023-10-24T20:39:08.246-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel Connectivity change to TRANSIENT_FAILURE {"grpc_log": true}
2023-10-24T20:39:08.247-0500 info zapgrpc/zapgrpc.go:178 [core] pickfirstBalancer: UpdateSubConnState: 0xc0014821f8, {TRANSIENT_FAILURE connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority"} {"grpc_log": true}
2023-10-24T20:39:08.247-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3] Channel Connectivity change to TRANSIENT_FAILURE {"grpc_log": true}
2023-10-24T20:39:08.247-0500 info exporterhelper/queued_retry.go:426 Exporting failed. Will retry the request after interval. {"kind": "exporter", "data_type": "metrics", "name": "otlp/elastic", "error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: authentication handshake failed: x509: certificate signed by unknown authority\"", "interval": "9.914731973s"}
2023-10-24T20:39:10.743-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel Connectivity change to IDLE {"grpc_log": true}
2023-10-24T20:39:10.743-0500 info zapgrpc/zapgrpc.go:178 [core] pickfirstBalancer: UpdateSubConnState: 0xc0014821f8, {IDLE connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority"} {"grpc_log": true}
2023-10-24T20:39:10.744-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3] Channel Connectivity change to IDLE {"grpc_log": true}
2023-10-24T20:39:16.725-0500 info MetricsExporter {"kind": "exporter", "data_type": "metrics", "name": "logging", "#metrics": 39}
2023-10-24T20:39:16.727-0500 info ResourceMetrics #0
<<=== OT ACTUALLY PROCESSING DATA. REMOVED IT FOR SECURITY ===>>
Resource SchemaURL: https://opentelemetry.io/schemas/1.20.0
2023-10-24T20:39:16.732-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel Connectivity change to CONNECTING {"grpc_log": true}
2023-10-24T20:39:16.732-0500 info zapgrpc/zapgrpc.go:178 [core] pickfirstBalancer: UpdateSubConnState: 0xc0014821f8, {CONNECTING <nil>} {"grpc_log": true}
2023-10-24T20:39:16.732-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3] Channel Connectivity change to CONNECTING {"grpc_log": true}
2023-10-24T20:39:16.732-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel picks a new address "ESEndpoint.apm.us-central1.gcp.cloud.es.io:443" to connect {"grpc_log": true}
2023-10-24T20:39:16.835-0500 info zapgrpc/zapgrpc.go:178 [core] Creating new client transport to "{\n \"Addr\": \"ESEndpoint.apm.us-central1.gcp.cloud.es.io:443\",\n \"ServerName\": \"ESEndpoint.apm.us-central1.gcp.cloud.es.io:443\",\n \"Attributes\": null,\n \"BalancerAttributes\": null,\n \"Type\": 0,\n \"Metadata\": null\n}": connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority" {"grpc_log": true}
2023-10-24T20:39:16.835-0500 warn zapgrpc/zapgrpc.go:195 [core] [Channel #3 SubChannel #4] grpc: addrConn.createTransport failed to connect to {
"Addr": "ESEndpoint.apm.us-central1.gcp.cloud.es.io:443",
"ServerName": "ESEndpoint.apm.us-central1.gcp.cloud.es.io:443",
"Attributes": null,
"BalancerAttributes": null,
"Type": 0,
"Metadata": null
}. Err: connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority" {"grpc_log": true}
2023-10-24T20:39:16.835-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel Connectivity change to TRANSIENT_FAILURE {"grpc_log": true}
2023-10-24T20:39:16.835-0500 info zapgrpc/zapgrpc.go:178 [core] pickfirstBalancer: UpdateSubConnState: 0xc0014821f8, {TRANSIENT_FAILURE connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority"} {"grpc_log": true}
2023-10-24T20:39:16.835-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3] Channel Connectivity change to TRANSIENT_FAILURE {"grpc_log": true}
2023-10-24T20:39:16.836-0500 info exporterhelper/queued_retry.go:426 Exporting failed. Will retry the request after interval. {"kind": "exporter", "data_type": "metrics", "name": "otlp/elastic", "error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: authentication handshake failed: x509: certificate signed by unknown authority\"", "interval": "4.184529792s"}
2023-10-24T20:39:18.163-0500 info exporterhelper/queued_retry.go:426 Exporting failed. Will retry the request after interval. {"kind": "exporter", "data_type": "metrics", "name": "otlp/elastic", "error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: authentication handshake failed: x509: certificate signed by unknown authority\"", "interval": "7.358993445s"}
2023-10-24T20:39:20.596-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel Connectivity change to IDLE {"grpc_log": true}
2023-10-24T20:39:20.596-0500 info zapgrpc/zapgrpc.go:178 [core] pickfirstBalancer: UpdateSubConnState: 0xc0014821f8, {IDLE connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority"} {"grpc_log": true}
2023-10-24T20:39:20.596-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3] Channel Connectivity change to IDLE {"grpc_log": true}
2023-10-24T20:39:21.021-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel Connectivity change to CONNECTING {"grpc_log": true}
2023-10-24T20:39:21.021-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel picks a new address "ESEndpoint.apm.us-central1.gcp.cloud.es.io:443" to connect {"grpc_log": true}
2023-10-24T20:39:21.021-0500 info zapgrpc/zapgrpc.go:178 [core] pickfirstBalancer: UpdateSubConnState: 0xc0014821f8, {CONNECTING <nil>} {"grpc_log": true}
2023-10-24T20:39:21.022-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3] Channel Connectivity change to CONNECTING {"grpc_log": true}
2023-10-24T20:39:21.108-0500 info zapgrpc/zapgrpc.go:178 [core] Creating new client transport to "{\n \"Addr\": \"ESEndpoint.apm.us-central1.gcp.cloud.es.io:443\",\n \"ServerName\": \"ESEndpoint.apm.us-central1.gcp.cloud.es.io:443\",\n \"Attributes\": null,\n \"BalancerAttributes\": null,\n \"Type\": 0,\n \"Metadata\": null\n}": connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority" {"grpc_log": true}
2023-10-24T20:39:21.108-0500 warn zapgrpc/zapgrpc.go:195 [core] [Channel #3 SubChannel #4] grpc: addrConn.createTransport failed to connect to {
"Addr": "ESEndpoint.apm.us-central1.gcp.cloud.es.io:443",
"ServerName": "ESEndpoint.apm.us-central1.gcp.cloud.es.io:443",
"Attributes": null,
"BalancerAttributes": null,
"Type": 0,
"Metadata": null
}. Err: connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority" {"grpc_log": true}
2023-10-24T20:39:21.108-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel Connectivity change to TRANSIENT_FAILURE {"grpc_log": true}
2023-10-24T20:39:21.108-0500 info zapgrpc/zapgrpc.go:178 [core] pickfirstBalancer: UpdateSubConnState: 0xc0014821f8, {TRANSIENT_FAILURE connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority"} {"grpc_log": true}
2023-10-24T20:39:21.108-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3] Channel Connectivity change to TRANSIENT_FAILURE {"grpc_log": true}
2023-10-24T20:39:21.108-0500 info exporterhelper/queued_retry.go:426 Exporting failed. Will retry the request after interval. {"kind": "exporter", "data_type": "metrics", "name": "otlp/elastic", "error": "rpc error: code = Unavailable desc = connection error: desc = \"transport: authentication handshake failed: x509: certificate signed by unknown authority\"", "interval": "4.996221292s"}
^C2023-10-24T20:39:22.213-0500 info otelcol/collector.go:234 Received signal from OS {"signal": "interrupt"}
2023-10-24T20:39:22.213-0500 info service/service.go:154 Starting shutdown...
2023-10-24T20:39:22.213-0500 info service/pipelines.go:130 Stopping receivers...
2023-10-24T20:39:22.213-0500 info zapgrpc/zapgrpc.go:178 [core] [Server #9 ListenSocket #10] ListenSocket deleted {"grpc_log": true}
2023-10-24T20:39:22.214-0500 info zapgrpc/zapgrpc.go:178 [transport] transport: closing: EOF {"grpc_log": true}
2023-10-24T20:39:22.214-0500 info zapgrpc/zapgrpc.go:178 [transport] transport: closing: EOF {"grpc_log": true}
2023-10-24T20:39:22.214-0500 info zapgrpc/zapgrpc.go:178 [transport] transport: loopyWriter exited. Closing connection. Err: transport closed by client {"grpc_log": true}
2023-10-24T20:39:22.215-0500 info zapgrpc/zapgrpc.go:178 [transport] transport: closing: EOF {"grpc_log": true}
2023-10-24T20:39:22.215-0500 info zapgrpc/zapgrpc.go:178 [transport] transport: loopyWriter exited. Closing connection. Err: transport closed by client {"grpc_log": true}
2023-10-24T20:39:22.216-0500 info service/pipelines.go:137 Stopping processors...
2023-10-24T20:39:22.216-0500 info service/pipelines.go:144 Stopping exporters...
2023-10-24T20:39:22.217-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #7] Channel Connectivity change to SHUTDOWN {"grpc_log": true}
2023-10-24T20:39:22.217-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #7 SubChannel #8] Subchannel Connectivity change to SHUTDOWN {"grpc_log": true}
2023-10-24T20:39:22.218-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #7 SubChannel #8] Subchannel deleted {"grpc_log": true}
2023-10-24T20:39:22.218-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #7] Channel deleted {"grpc_log": true}
2023-10-24T20:39:22.218-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #5] Channel Connectivity change to SHUTDOWN {"grpc_log": true}
2023-10-24T20:39:22.218-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #5 SubChannel #6] Subchannel Connectivity change to SHUTDOWN {"grpc_log": true}
2023-10-24T20:39:22.218-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #5 SubChannel #6] Subchannel deleted {"grpc_log": true}
2023-10-24T20:39:22.218-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #5] Channel deleted {"grpc_log": true}
2023-10-24T20:39:22.219-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #1] Channel Connectivity change to SHUTDOWN {"grpc_log": true}
2023-10-24T20:39:22.219-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #1 SubChannel #2] Subchannel Connectivity change to SHUTDOWN {"grpc_log": true}
2023-10-24T20:39:22.219-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #1 SubChannel #2] Subchannel deleted {"grpc_log": true}
2023-10-24T20:39:22.219-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #1] Channel deleted {"grpc_log": true}
2023-10-24T20:39:22.219-0500 error exporterhelper/queued_retry.go:175 Exporting failed. No more retries left. Dropping data. {"kind": "exporter", "data_type": "metrics", "name": "otlp/elastic", "error": "interrupted due to shutdown rpc error: code = Unavailable desc = connection error: desc = \"transport: authentication handshake failed: x509: certificate signed by unknown authority\"", "dropped_items": 73}
go.opentelemetry.io/collector/exporter/exporterhelper.(*queuedRetrySender).onTemporaryFailure
go.opentelemetry.io/collector@v0.70.0/exporter/exporterhelper/queued_retry.go:175
go.opentelemetry.io/collector/exporter/exporterhelper.(*retrySender).send
go.opentelemetry.io/collector@v0.70.0/exporter/exporterhelper/queued_retry.go:438
go.opentelemetry.io/collector/exporter/exporterhelper.(*metricsSenderWithObservability).send
go.opentelemetry.io/collector@v0.70.0/exporter/exporterhelper/metrics.go:136
go.opentelemetry.io/collector/exporter/exporterhelper.(*queuedRetrySender).start.func1
go.opentelemetry.io/collector@v0.70.0/exporter/exporterhelper/queued_retry.go:205
go.opentelemetry.io/collector/exporter/exporterhelper/internal.(*boundedMemoryQueue).StartConsumers.func1
go.opentelemetry.io/collector@v0.70.0/exporter/exporterhelper/internal/bounded_memory_queue.go:61
2023-10-24T20:39:22.218-0500 info zapgrpc/zapgrpc.go:178 [transport] transport: loopyWriter exited. Closing connection. Err: transport closed by client {"grpc_log": true}
2023-10-24T20:39:22.219-0500 error exporterhelper/queued_retry.go:175 Exporting failed. No more retries left. Dropping data. {"kind": "exporter", "data_type": "metrics", "name": "otlp/elastic", "error": "interrupted due to shutdown rpc error: code = Unavailable desc = connection error: desc = \"transport: authentication handshake failed: x509: certificate signed by unknown authority\"", "dropped_items": 145}
go.opentelemetry.io/collector/exporter/exporterhelper.(*queuedRetrySender).onTemporaryFailure
go.opentelemetry.io/collector@v0.70.0/exporter/exporterhelper/queued_retry.go:175
go.opentelemetry.io/collector/exporter/exporterhelper.(*retrySender).send
go.opentelemetry.io/collector@v0.70.0/exporter/exporterhelper/queued_retry.go:438
go.opentelemetry.io/collector/exporter/exporterhelper.(*metricsSenderWithObservability).send
go.opentelemetry.io/collector@v0.70.0/exporter/exporterhelper/metrics.go:136
go.opentelemetry.io/collector/exporter/exporterhelper.(*queuedRetrySender).start.func1
go.opentelemetry.io/collector@v0.70.0/exporter/exporterhelper/queued_retry.go:205
go.opentelemetry.io/collector/exporter/exporterhelper/internal.(*boundedMemoryQueue).StartConsumers.func1
go.opentelemetry.io/collector@v0.70.0/exporter/exporterhelper/internal/bounded_memory_queue.go:61
2023-10-24T20:39:22.220-0500 info zapgrpc/zapgrpc.go:178 [transport] transport: closing: connection error: desc = "error reading from server: read tcp 172.18.0.3:51070->35.227.211.64:443: use of closed network connection" {"grpc_log": true}
2023-10-24T20:39:22.220-0500 info zapgrpc/zapgrpc.go:178 [transport] transport: loopyWriter exited. Closing connection. Err: transport closed by client {"grpc_log": true}
2023-10-24T20:39:22.226-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3] Channel Connectivity change to SHUTDOWN {"grpc_log": true}
2023-10-24T20:39:22.227-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel Connectivity change to SHUTDOWN {"grpc_log": true}
2023-10-24T20:39:22.228-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3 SubChannel #4] Subchannel deleted {"grpc_log": true}
2023-10-24T20:39:22.230-0500 info zapgrpc/zapgrpc.go:178 [core] [Channel #3] Channel deleted {"grpc_log": true}
2023-10-24T20:39:22.231-0500 info extensions/extensions.go:55 Stopping extensions...
2023-10-24T20:39:22.232-0500 info service/service.go:168 Shutdown complete.