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

Missing SSL metrics from x509_cert plugin if there is a failing URL in sources array #5304

Closed
hristodragolovbede opened this issue Jan 17, 2019 · 2 comments
Assignees
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@hristodragolovbede
Copy link

hristodragolovbede commented Jan 17, 2019

Relevant telegraf.conf:

[[inputs.x509_cert]]
sources = ["https://www.testsite.com:443","https://www.google.com:443"]

System info:

  • Telegraf 1.9.2
  • centos7

Expected behavior:

Telegraf exposes SSL metrics for www.google.com

Actual behavior:

Because www.testsite.com doesn't exist the plugin reports a timeout error and doesn't continue checking the next URL in the sources array. No SSL metrics data is exposed for https://www.google.com

Additional info

If you put another URL in front of www.testsite.com in the sources array, the plugin will expose SSL metrics for this URL. So to sum up .... everything before www.testsite.com in the sources array will have metrics exposed but everything after www.testsite.com will be missing.

@danielnelson danielnelson added bug unexpected problem or unintended behavior and removed area/agent labels Jan 17, 2019
@danielnelson danielnelson added this to the 1.10.0 milestone Jan 17, 2019
@danielnelson
Copy link
Contributor

Thanks for the report, a workaroundw ould be to split this into two plugin definitions:

[[inputs.x509_cert]]
  sources = ["https://www.testsite.com:443"]
[[inputs.x509_cert]]
  sources = ["https://www.google.com:443"]

@hristodragolovbede
Copy link
Author

Thanks Daniel. This is what I have done as a workaround as well.

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

No branches or pull requests

3 participants