You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Telegraf's HTTP output plugin logs only the status code if an error is detected as a non-retryable error. It would be great to include some of the body, for even non-retryable errors.
Expected behavior
It would be useful if the output included a limited sample of the body like the non-retryable case does.
(Because, in the example of a 400, there are numerous reasons this may happen and the body is useful information.)
Actual behavior
Today's log looks like this:
[outputs.http] Received non-retryable status 400. Metrics are lost.
Additional info
No response
The text was updated successfully, but these errors were encountered:
seizethedave
changed the title
http output: Include a sample of the response body even for non-retryable error codes
http output: Log a sample of the response body even for non-retryable error codes
Mar 8, 2025
Use Case
Telegraf's HTTP output plugin logs only the status code if an error is detected as a non-retryable error. It would be great to include some of the body, for even non-retryable errors.
Expected behavior
It would be useful if the output included a limited sample of the body like the non-retryable case does.
(Because, in the example of a 400, there are numerous reasons this may happen and the body is useful information.)
Actual behavior
Today's log looks like this:
Additional info
No response
The text was updated successfully, but these errors were encountered: