-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Wavefront output plugin failing with certificate error. #11925
Description
Hi,
I am using wavefront output plugin in telegraf agent to post metrics to wavefront proxy.
I am using nginx proxy in front of both telegraf agent and wavefront proxy.
- Telegrafs wavefront output plugin performs http://localhost:8071/wavefront/report, nginx receives this request and perform https://... proxy_pass to another nginx sitting before wavefront proxy.
- After tls, nginx before wavefront proxy again does proxy_pass with http://localhost:2878/report to wavefront proxy listening on localhost 2878.
This used to work until telegraf version 1.23.4 and started failing with telegraf version 1.24.0. Below is error I get in telegraf
error reporting wavefront format data to Wavefront: "Post "https://localhost/wavefront:8071/report?f=wavefront\": x509: certificate is not valid for any names, but wanted to match localhost"
Actually telegraf wavefront plugin should not get https error because ssl part is done only between both nginx, other communication is on plain http.
Everything works fine if telegraf 1.23.4 is used and fails when 1.24.* version is used.
Can someone please help me with this ? Please let me know if you need more information.