Possible to add Custom HTTP Header to the Telegraf Agent Prometheus plugin?


I need to apply a custom http header - for credentials - when trying to fetch/scrape metrics from Prometheus. I will try to use the Telegraf Agent plugin.

At a first read-through I do not see such an option.

Best regards
/Bengt Evaldsson

Hello @bevaldss,
I don’t know if this is possible. I’m asking around. Thank you for your patience while I find the answer.

Out of curiosity, what header are you trying to add?

There isn’t support for custom headers currently, but there are a few supported by the plugin, like basic and bearer tokens for authentication.