Просмотр исходного кода

Updated conf description, metrics interval

Torkel Ödegaard 10 лет назад
Родитель
Сommit
44bc2b2d56
3 измененных файлов с 4 добавлено и 4 удалено
  1. 1 1
      conf/defaults.ini
  2. 2 2
      conf/sample.ini
  3. 1 1
      pkg/metrics/report_usage.go

+ 1 - 1
conf/defaults.ini

@@ -1,7 +1,7 @@
 app_name = Grafana
 app_name = Grafana
 app_mode = production
 app_mode = production
 
 
-# Once every 24 hours Grafana will report anonymous data to
+# Once every 1 hour Grafana will report anonymous data to
 # stats.grafana.org (https). No ip addresses are being tracked.
 # stats.grafana.org (https). No ip addresses are being tracked.
 # only simple counters to track running instances, dashboard
 # only simple counters to track running instances, dashboard
 # count and errors. It is very helpful to us.
 # count and errors. It is very helpful to us.

+ 2 - 2
conf/sample.ini

@@ -5,10 +5,10 @@
 
 
 app_mode = production
 app_mode = production
 
 
-# Once every 24 hours Grafana will report anonymous data to
+# Once every 1 hour Grafana will report anonymous data to
 # stats.grafana.org (https). No ip addresses are being tracked.
 # stats.grafana.org (https). No ip addresses are being tracked.
 # only simple counters to track running instances, dashboard
 # only simple counters to track running instances, dashboard
-# count and errors. It is very helpful to us.
+# counts and errors. It is very helpful to us.
 # Change this option to false to disable reporting.
 # Change this option to false to disable reporting.
 reporting-enabled = true
 reporting-enabled = true
 
 

+ 1 - 1
pkg/metrics/report_usage.go

@@ -14,7 +14,7 @@ import (
 func StartUsageReportLoop() chan struct{} {
 func StartUsageReportLoop() chan struct{} {
 	M_Instance_Start.Inc(1)
 	M_Instance_Start.Inc(1)
 
 
-	ticker := time.NewTicker(10 * time.Minute)
+	ticker := time.NewTicker(time.Hour)
 	for {
 	for {
 		select {
 		select {
 		case <-ticker.C:
 		case <-ticker.C: