Skip to content

Wavefront output plugin failing with certificate error. #11925

@rushikeshbgithub

Description

@rushikeshbgithub

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.

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/wavefrontbugunexpected problem or unintended behaviorplugin/output1. Request for new output plugins 2. Issues/PRs that are related to out pluginsupstreambug or issues that rely on dependency fixes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions