Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cwesdorp opened this issue Aug 10, 2018 · 1 comment · Fixed by #4609
Closed

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

cwesdorp opened this issue Aug 10, 2018 · 1 comment · Fixed by #4609
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@cwesdorp
Copy link

cwesdorp commented Aug 10, 2018

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

@cwesdorp
Copy link
Author

Workaround is setting the authorization header manually in the outputs.http.headers section

@glinton glinton added the feature request Requests for new plugin and for new features to existing plugins label Aug 10, 2018
@danielnelson danielnelson added this to the 1.7.4 milestone Aug 12, 2018
@danielnelson danielnelson added bug unexpected problem or unintended behavior and removed feature request Requests for new plugin and for new features to existing plugins labels Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants