mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Updated server stats
This commit is contained in:
parent
d987532262
commit
9c9ebb4987
@ -6,7 +6,6 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/grafana/grafana/pkg/log"
|
|
||||||
"github.com/grafana/grafana/pkg/setting"
|
"github.com/grafana/grafana/pkg/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -23,8 +22,6 @@ func StartUsageReportLoop() chan struct{} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func sendUsageStats() {
|
func sendUsageStats() {
|
||||||
log.Trace("Sending anonymous usage stats to stats.grafana.org")
|
|
||||||
|
|
||||||
metrics := map[string]interface{}{}
|
metrics := map[string]interface{}{}
|
||||||
report := map[string]interface{}{
|
report := map[string]interface{}{
|
||||||
"version": setting.BuildVersion,
|
"version": setting.BuildVersion,
|
||||||
@ -56,5 +53,5 @@ func sendUsageStats() {
|
|||||||
|
|
||||||
client := http.Client{Timeout: time.Duration(5 * time.Second)}
|
client := http.Client{Timeout: time.Duration(5 * time.Second)}
|
||||||
|
|
||||||
go client.Post("http://stats.grafana.org/grafana-usage-report", "application/json", data)
|
go client.Post("https://stats.grafana.org/grafana-usage-report", "application/json", data)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user