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

Ability to get real retry state of buffered output #1387

Merged

Conversation

CSharpRU
Copy link
Contributor

Related to #1379

Will have JSON like this:

{
	// other monitor_agent keys
	"retry": {
		"start":"2016-12-23 01:36:14 +0700",
		"steps":1,
		"next_time":"2016-12-23 01:37:16 +0700"
	}
}

@@ -35,6 +35,7 @@ class MonitorAgentInput < Input
config_param :tag, :string, default: nil
config_param :emit_interval, :time, default: 60
config_param :include_config, :bool, default: true
config_param :include_retry, :bool, default: true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It might be not necessary

@@ -302,7 +302,8 @@ def get(uri, header = {})
"plugin_category" => "output",
"plugin_id" => "null",
"retry_count" => 0,
"type" => "null"
"type" => "null",
"retry" => {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need to add test cases for failed flush

@repeatedly repeatedly added enhancement Feature request or improve operations v0.14 labels Dec 23, 2016
@repeatedly
Copy link
Member

Feature looks good.
But yes, need output failure case.

@CSharpRU
Copy link
Contributor Author

Okay, I'll add it.

@CSharpRU
Copy link
Contributor Author

Test case has been added.

@repeatedly repeatedly merged commit 948e26b into fluent:master Dec 25, 2016
@repeatedly
Copy link
Member

Good. Thank you!

@CSharpRU CSharpRU deleted the get-real-retry-info-from-buffered-output branch December 25, 2016 16:40
repeatedly added a commit that referenced this pull request Feb 2, 2017
…red-output

Ability to get real retry state of buffered output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request or improve operations v0.14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants