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

[feature request] Support for different stamps on buffer interface #6

Open
edubart opened this issue Jul 27, 2018 · 1 comment
Open

Comments

@edubart
Copy link

edubart commented Jul 27, 2018

Currently when calling ibuf.buffer method ngx.now() * 1000 is used as stamp, would be nice to add an option to make us able to specify a different timestamp, maybe be trying to use data.stamp first on the following method:

function _M.buffer(data)
	local influx_data = {
		_measurement = lp.quote_measurement(data.measurement),
		_tag_set = lp.build_tag_set(data.tags),
		_field_set = lp.build_field_set(data.fields),
		_stamp = ngx.now() * 1000
	}

I need this for a specific use case, meanwhile I am hacking by overwriting that method on my app.

@p0pr0ck5
Copy link
Owner

p0pr0ck5 commented May 6, 2019

Hi, sorry for the incredibly delayed response. I don't think I'll have time to work on this in the future, but patches are definitely welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants