-
Notifications
You must be signed in to change notification settings - Fork 97
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Overview
I've setup NGINX agent to use a NGINX proxy to contact NGINX One Console like in the documentation:
Prepare - Set up NGINX as a proxy
Unfortunately, the documentation is not up to date with NGINX Agent v3 so I've opened an issue:
Unfortunately, the generated Open Telemetry configuration isn't setup to use this configuration of nginx agent:
...
tls:
server_name: agent.connect.nginx.com
...
And we have a the following TLS issue:
2025-07-16T11:23:39.416+0200 warn [grpc@v1.71.1/clientconn.go:1406](mailto:grpc@v1.71.1/clientconn.go:1406) [core] [Channel #2 SubChannel #3]grpc: addrConn.createTransport failed to connect to {Addr: "PROXY_IP:5000", ServerName: "PROXY_IP:5000", }. Err: connection error: desc = "transport: authentication handshake failed: remote error: tls: unrecognized name" {"grpc_log": true}
Expected Behavior
The generated Open Telemetry configuration should use the server name specified in the nginx agent configuration for the TLS connection.
Steps to Reproduce the Bug
setup a nginx proxy:
stream {
upstream stream_backend {
zone tcp_servers 64k;
server agent.connect.nginx.com:443;
}
log_format basic '$remote_addr [$time_local] '
'$protocol $status $bytes_sent $bytes_received '
'$session_time "$upstream_addr" '
'"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';
access_log /var/log/nginx/nginx1_access.log basic;
error_log /var/log/nginx/nginx1_error.log;
server {
listen 5000;
status_zone tcp_server;
proxy_pass stream_backend;
proxy_next_upstream on;
}
}
Configure your agent to use this proxy:
command:
server:
host: YOUR_PROXY_IP_ADDRESS_HERE
port: 5000
auth:
token: "YOUR_DATA_PLANE_KEY_HERE"
tls:
server_name: agent.connect.nginx.com
skip_verify: false
Environment Details
- Target deployment platform: Local cluster
- Target OS: RHEL 8
- Version of this project or specific commit: 3.1.0
- Version of any relevant project languages: Open Telemetry Configuration
Additional Context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working