Skip to content

Telegraf outputs.http plugin does not send basic authorization when configured #4544

Closed
@cwesdorp

Description

Relevant telegraf.conf:

[[outputs.http]]
  url = "http://10.200.13.23:3000/write?db=default"
  method = "POST"
  username = "username"
  password = "passssword"
  data_format = "influx"

System info:

Telegraf 1.7 in the telegraf:latest docker image

Steps to reproduce:

  1. Configure the outputs.http plugin with username/password
  2. Start telegraf
  3. send events (eg. echo "buttonClicks:1123|c|#app:game,region:eu" > /dev/udp/localhost/8125)
  4. Check on the receiving end point

Expected behavior:

Request should have a Authorization header

Actual behavior:

There is no Authorization header

Metadata

Assignees

No one assigned

    Labels

    bugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions