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

Change 'enterprise-client' to 'usage-client' #83

Merged
merged 1 commit into from
Dec 14, 2015
Merged

Conversation

timraymond
Copy link
Contributor

enterprise-client will soon be repurposed for the on-prem solution, so we have renamed the existing enterprise-client to usage-client. It provides the same interface, but the backend endpoints for everything except anonymous usage reporting have been no-oped. I attempted to remove stats reporting from Kapacitor, however it seems that client.StatsData is used internally to facilitate writing TICK scripts against Kapacitor's own stats. Since this will require a bit more care than originally thought, for the time being this patch only switches the repos so that everything is reported to usage.influxdata.com instead of enterprise.influxdata.com (since we are repurposing that subdomain as well).

@nathanielc
Copy link
Contributor

@timraymond Thanks this looks good, yeah when I heard things were changing I realized I was going to need to do some rework. It won't be too hard. Can we get together for chat soon to make sure I understand the direction so I can make appropriate changes?

@timraymond
Copy link
Contributor Author

@nathanielc Certainly! I'll find you in Slack and we'll set something up.

client := client.New(token)
client.URL = c.EnterpriseURL
func NewService(c Config, l *log.Logger) *Service {
client := client.New("")
Copy link
Contributor

Choose a reason for hiding this comment

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

@timraymond I don't need the token any more correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nathanielc Yep, that's fine ✂️ . The empty string token is the same approach we've taken in Chronograf and Core for usage-only reporting.

@nathanielc
Copy link
Contributor

@timraymond Overall is this what you expected?

Enterprise Client will soon become something else entirely, so the
existing enterprise-client has become 'usage-client'. The existing
enterprise service now only records usage data, and discards everything
else.

This changes Kapacitor to use 'usage-client'.
@timraymond
Copy link
Contributor Author

@nathanielc Yep! This looks good to me 👍

nathanielc pushed a commit that referenced this pull request Dec 14, 2015
Change 'enterprise-client' to 'usage-client'
@nathanielc nathanielc merged commit d959bd8 into master Dec 14, 2015
@nathanielc nathanielc deleted the usage-client branch December 14, 2015 17:24
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