Skip to content

fix(outputs.sumologic): Prevent retry on authentication failure#18162

Open
FlorentinDUBOIS wants to merge 2 commits intoinfluxdata:masterfrom
FlorentinDUBOIS:devel/fdubois/fix/outputs/summologic
Open

fix(outputs.sumologic): Prevent retry on authentication failure#18162
FlorentinDUBOIS wants to merge 2 commits intoinfluxdata:masterfrom
FlorentinDUBOIS:devel/fdubois/fix/outputs/summologic

Conversation

@FlorentinDUBOIS
Copy link

@FlorentinDUBOIS FlorentinDUBOIS commented Dec 23, 2025

Summary

Checklist

Related issues

relates #18119 #18118

When API tokens expire or get revoked, output plugins were retrying
indefinitely, causing DDoS-like behavior against the target APIs.
This issue was discovered with the warp10 plugin at Clever Cloud when
token renewal failed - metrics kept retrying against endpoints returning
authentication errors, creating excessive load on the Warp10 platform.

Add internal.HTTPError type to distinguish retryable errors (5xx server
errors, rate limits) from non-retryable errors (4xx client errors like
invalid/expired tokens). Plugins now properly drop metrics on
authentication failures instead of retrying forever.

Updated plugins:
- warp10: parse response body to determine retryability (primary fix)
- azure_monitor: refactor send() to return HTTPError
- datadog: return HTTPError for 4xx/5xx responses
- dynatrace: return HTTPError for 4xx/5xx responses
- sumologic: return HTTPError for 4xx/5xx responses
- influxdb_v2: use APIError for 401/403 as non-retryable
@telegraf-tiger telegraf-tiger bot added the fix pr to fix corresponding bug label Dec 23, 2025
@telegraf-tiger
Copy link
Contributor

@mstrandboge mstrandboge changed the title fix(outputs/plugins/summologic): prevent retry on authentication failure fix(outputs.sumologic): Prevent retry on authentication failure Jan 5, 2026
@telegraf-tiger telegraf-tiger bot added the plugin/output 1. Request for new output plugins 2. Issues/PRs that are related to out plugins label Jan 5, 2026
@srebhan srebhan self-assigned this Feb 23, 2026
Replace internal.HTTPError with plugin-local httpError type.
4xx client errors non-retryable, 5xx/other retryable.

Signed-off-by: Florentin Dubois <florentin.dubois@clever.cloud>
@FlorentinDUBOIS FlorentinDUBOIS force-pushed the devel/fdubois/fix/outputs/summologic branch from 6f0b5e0 to 3c07e66 Compare March 6, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix pr to fix corresponding bug plugin/output 1. Request for new output plugins 2. Issues/PRs that are related to out plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants