updated server reporting

This commit is contained in:
Torkel Ödegaard 2015-03-22 15:45:13 -04:00
parent 526f3e1a31
commit 1e4c62a70d

View File

@ -6,13 +6,14 @@ import (
"net/http"
"time"
"github.com/grafana/grafana/pkg/log"
"github.com/grafana/grafana/pkg/setting"
)
func StartUsageReportLoop() chan struct{} {
M_Instance_Start.Inc(1)
ticker := time.NewTicker(10 * time.Minute)
ticker := time.NewTicker(24 * time.Hour)
for {
select {
case <-ticker.C:
@ -22,6 +23,8 @@ func StartUsageReportLoop() chan struct{} {
}
func sendUsageStats() {
log.Trace("Sending anonymous usage stats to stats.grafana.org")
metrics := map[string]interface{}{}
report := map[string]interface{}{
"version": setting.BuildVersion,