-
Notifications
You must be signed in to change notification settings - Fork 18
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
Collector doesn't appear to collect all metrics from an endpoint #18
Comments
Hi, I hope this is relevant to your issue too. Spent this afternoon troubleshooting this problem. Your formatting reads similar to mine may have the same solution. I also had missing metrics and the the solution for my case was making sure the label_value for any labels in any metric line didn't contain any whitespace characters, even though quoted. E.G Fails, not visible in output: After removing white space present in the |
Doesn't seem to be any new information about this since my last post so I've made a quick little workaround for myself. This /missing metric problem/ only seems to occur when using the default I think main.go:L111-0114 is where these lines vanish. This sanity check looks for exactly 3 segments per influx metric but is whitespace delimited. This is likely causing our whitespace'd tag names/values to "fail" and not be passed into the final output in the (metrics variable). My "for_now" solution has been to replace the whitespace with underscores in the tag parsing section so they're sent and visible in my network graphs. This involved replacing line 95 of main.go:L95 To replace any whitespace of generated tags with an underscore via the This isn't an influx limitation as I crafted a fake metric with |
I'm observing a case where the prometheus collector doesn't appear to be collecting all the metrics from an endpoint. Here is the check config:
Check Definition
The output on the dashboard and in Influx only show a portion of the metrics:
Dashboard metrics
Compared with the metrics exposed by the actual endpoint:
Prometheus Endpoint Metrics
I'm not quite sure where to begin on troubleshooting the delta here, and I'm now a bit curious if it's missing data from other endpoints.
The text was updated successfully, but these errors were encountered: