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

Enterprise registration as a service #4506

Merged
merged 6 commits into from
Oct 20, 2015
Merged

Enterprise registration as a service #4506

merged 6 commits into from
Oct 20, 2015

Conversation

otoolep
Copy link
Contributor

@otoolep otoolep commented Oct 19, 2015

Registration also involves statistics and diagnostics upload, for the purposes of remote management. This means there will be long-running goroutines in effect. Therefore move the code to a new service, called registration.

This change also adds support for periodic stats upload to Enterprise. It does this by first exporting a previously unexported type in the monitor service, allowing the stats gathered by the monitor service to be retrieved by other sub-systems. Then the new registration service POSTs these stats periodically to Enterprise.

@otoolep otoolep force-pushed the enterprise_stats branch 2 times, most recently from badf06d to 6e0e33c Compare October 19, 2015 21:56
Registration also involves statistics and diagnostics upload, for the
purposes of remote management. This means there will be long-running
goroutines in effect. Therefore move the code to a service model.
@otoolep
Copy link
Contributor Author

otoolep commented Oct 19, 2015

@markbates

@otoolep
Copy link
Contributor Author

otoolep commented Oct 20, 2015

How the diagnostics look:

> SHOW DIAGNOSTICS for 'registration'
name: registration
------------------
URL                                     last_contact                            token
https://enterprise.influxdata.com       2015-10-20 06:53:29.866721996 +0000 UTC deadXbeef

@markbates
Copy link
Contributor

Looks good to me.

@markbates
Copy link
Contributor

I added the JSON tags to the Statistics struct.

@otoolep
Copy link
Contributor Author

otoolep commented Oct 20, 2015

Good enough -- thanks @markbates -- I will merge on green.

otoolep added a commit that referenced this pull request Oct 20, 2015
Enterprise registration as a service
@otoolep otoolep merged commit 956efae into master Oct 20, 2015
@otoolep otoolep deleted the enterprise_stats branch October 20, 2015 15:57
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

Successfully merging this pull request may close these issues.

2 participants