Skip to content

Conversation

@skartikey
Copy link
Contributor

@skartikey skartikey commented Jan 9, 2026

Summary

  • Documents the fire-and-forget communication model used by outputs.execd
  • Clarifies that metrics are considered "written" once they reach the stdin pipe, not when processed by the external plugin
  • Explains that errors from external plugins are logged but don't trigger Telegraf's retry mechanism
  • Warns users about potential metric loss and suggests alternatives for guaranteed delivery

Checklist

Related issues

resolves #17828
resolves #17845

The execd output plugin uses a fire-and-forget model where metrics are considered written once they reach the stdin pipe, not when the external plugin processes them. Errors from external plugins are logged but don't trigger retries, which can lead to silent metric loss.
@telegraf-tiger telegraf-tiger bot added area/execd Issues related to execd or plugins that would be better suited to be used through execd docs Issues related to Telegraf documentation and configuration descriptions plugin/output 1. Request for new output plugins 2. Issues/PRs that are related to out plugins labels Jan 9, 2026
@skartikey skartikey changed the title docs(outputs.execd): document error handling limitations docs(outputs.execd): Document error handling limitations Jan 9, 2026
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @skartikey!

@srebhan srebhan removed their assignment Jan 12, 2026
@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Jan 12, 2026
@mstrandboge mstrandboge merged commit fcf5998 into influxdata:master Jan 12, 2026
31 checks passed
@github-actions github-actions bot added this to the v1.37.1 milestone Jan 12, 2026
srebhan pushed a commit that referenced this pull request Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/execd Issues related to execd or plugins that would be better suited to be used through execd docs Issues related to Telegraf documentation and configuration descriptions plugin/output 1. Request for new output plugins 2. Issues/PRs that are related to out plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[[outpus.execd]] Error handling [[outputs.execd]] execd is not returning an error if an external plugin fails to write metrics

3 participants