Start enterprise service on boot / placeholders

Adds the enterprise service to the agent's boot process. A few
placeholders have been added because it's not quite clear how we should
generate ProductIDs and ClusterIDs for Telegraf
This commit is contained in:
Tim Raymond
2016-02-11 14:12:18 -05:00
parent 7394375a2e
commit c3c9e80f0a
3 changed files with 12 additions and 1 deletions

View File

@@ -56,8 +56,12 @@ func (s *Service) Open() {
func (s *Service) registerProduct(cl *client.Client) (token string, secret string, err error) {
p := client.Product{
ProductID: "telegraf",
ProductID: "4815162342",
Host: s.hostname,
ClusterID: "8675309",
Name: "telegraf",
Version: "0.10.1.dev",
AdminURL: "http://" + s.hostname + s.adminPort,
}
_, err = cl.Register(&p)