-
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
Missing metrics {type="Database size"} for inputs.sqlserver when output to prometheus_client when running telegraf on windows. #3349
Comments
Can you show what the output looks like on Linux vs Windows? Can you also show the relevant output when using |
Output is quite big.
|
Figured out than metrics of type="Database IO" also missing on Windows instance. It seems that bug somewhere in parsing data to Prometheus format, because in --test output they are present.
|
My access to a Windows machine is limited, but I will try to reproduce this Friday. |
I created a powershell script that echos some of the lines from the --test output, and ran that as an exec plugin, but I wasn't missing any data from the prometheus output:
Can you enable a file output and check if the missing data is written? |
I think I've found the bug. For some strange reason if I specify connection host as fqdn/hostname, I get missing metrics, but when I specify IPv4 address like 127.0.0.1 it works as expected. This explains why metrics collected from telegraf on linux were ok, because linux machine was connecting using IPv4 address. Good question why this happens... |
Wow, thats odd. Can you duplicate this just using curl or similar and diffing the output? |
Well, it was too quick decision. I was wrong on ipv6 thing, sorry. |
Hi Daniel, I'm getting this exactly behavior, but after upgrade from 1.5.3 to 1.6.X or 1.7.X for both, Windows or Linux boxes. Some outputs like inputs.mem and inputs.sqlserver just disappears from the prometheus exposed list (http://myserver/metrics) but works perfectly with --test switch on command line. I've tried to run as different user (on windows) and using IP address instead of name as well, and none worked. I will be glad to provide more information with you need. Thank you. My configuration:
Output from command line:
Output from curl "http://myserver/metrics":
Output from version 1.5.3:
|
@allangood Thanks for the help testing, I can reproduce this and will work on a fix. I think this is different from the original issue though, can you open this as a new issue? |
@mplisov I hope you were able to resolve the original problem, I'm going to assume no new is good news and close this issue, let me know if it should be reopened. |
Hi @danielnelson, I opened issue number #3977 Thank you! |
Seeing strange behaviour with sqlserver metrics on telegraf 1.4.2 on Windows.
Prometheus output misses {type="Database size"} metrics block completely.
I can see those metrics in --test run of telegraf though.
Second note: Issue doesn't appear when running same version of telegraf on linux.
SQL servers and connection credentials are the same (checked with sql server 2008,2012,2014)
The text was updated successfully, but these errors were encountered: