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

Cherry-pick #15712 to 7.x: [Metricbeat]Log prometheus errors instead of parsing families #15961

Merged
merged 3 commits into from
Jan 31, 2020

Conversation

odacremolbap
Copy link
Contributor

Cherry-pick of PR #15712 to 7.x branch. Original message:

Solves #15709

Some users have been reporting errors fetching prometheus endpoints that include logs stating format errors decoding families.

Most probably metricbeat's prometheus helper has been trying to parse errors received as metric families. This PR adds the HTTP status code to the error sent upstream from the helper and also allows for writing the error body to log when debug is enabled.

…c#15712)

* log prometheus errors instead of parsing

(cherry picked from commit edc17b3)
@odacremolbap odacremolbap requested a review from a team January 31, 2020 11:52
@odacremolbap odacremolbap merged commit ad8c54f into elastic:7.x Jan 31, 2020
@odacremolbap odacremolbap deleted the backport_15712_7.x branch January 31, 2020 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants