-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[outputs.prometheus_client] generates an error in 1.29.1 version #14468
Comments
Hello. |
Note that I "workarounded" the problem by adding the "http://" prefix in the
|
@dchiaramello can you please show the logs from the artifact and your config that still failed please? @wally007 - can you try the artifacts please? |
My telegraf.conf file is the following one:
After having installed the artifact, systemctl status telegraf (after a restart) shows the following:
I don't know if these logs are OK for you, or if there's another way to retrieve them.... Regards, |
Note that the |
And by using "http://mgt:9273" as |
Can you get the full logs, I want to verify the version:
|
Last lines after the "Stopped Telegraf." one are the following ones:
|
Really appeciate the output! thank you very much
It seems like the parse URI function thinks that "mgt" is the scheme. I am going to change this function up to default to listening on TCP and remove the unknown scheme error to keep backwards compatibility. I've updated the PR and new artifacts should be available in 20-30mins. |
OK - I'm about to leave now (being in Europe), I'll test it tomorrow |
Hello. I confirm that, using latest PR (Telegraf 1.30.0-7cb0156d), Telegraf is successfully starting with listen = "mgt:9273" !!! Thanks |
Thank you! |
Relevant telegraf.conf
Logs from Telegraf
System info
RHEL9.3, telegraf 1.29.1
Docker
No response
Steps to reproduce
...
Expected behavior
Service should start up and telegraf output plugin should work in 1.29 version same as 1.28
Actual behavior
Telegraf does not start and generates an error
Dec 17 12:43:57 refinst-capture1 telegraf[2428]: 2023-12-17T12:43:57Z E! [telegraf] Error running agent: connecting output outputs.prometheus_client: error connecting to output "outputs.prometheus_client": Unknown scheme
Additional info
Configuration that works in 1.28.5 version when upgraded to 1.29.1 fails to start Telegraf with an error
Dec 17 12:43:57 refinst-capture1 telegraf[2428]: 2023-12-17T12:43:57Z E! [telegraf] Error running agent: connecting output outputs.prometheus_client: error connecting to output "outputs.prometheus_client": Unknown scheme
When I remove the 1.29.1 version with
yum remove telegraf
and install1.28.5
explicitly withyum install telegraf-1.28.5-1
- the same configuration as aboev works fine.The text was updated successfully, but these errors were encountered: