Skip to content

output_status_retry_wait means the elapsed time from the first retry #217

Description

@daipom

The document says output_status_retry_wait means current retry_wait computed from last retry time and next retry time.

- `fluentd_output_status_retry_wait`
- current retry_wait computed from last retry time and next retry time

However, it actually means the elapsed time from the first retry.
We need to fix the value or the document.

if info['retry']
next_time = info['retry']['next_time']
start_time = info['retry']['start']
if start_time.nil? && info['instance_variables']
# v0.12 does not include start, use last_retry_time instead
start_time = info['instance_variables'][:last_retry_time]
end
wait = 0
if next_time && start_time
wait = next_time - start_time
end
@metrics[:retry_wait].set(wait.to_f, labels: label)
end

It is calculated as next_time - start.
start is the time of the first retry, so this value means the elapsed time from the first retry.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions