瀏覽代碼

feat: added os to stats

Torkel Ödegaard 8 年之前
父節點
當前提交
26ad025705
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      pkg/metrics/publish.go

+ 3 - 0
pkg/metrics/publish.go

@@ -4,6 +4,7 @@ import (
 	"bytes"
 	"encoding/json"
 	"net/http"
+	"runtime"
 	"strings"
 	"time"
 
@@ -86,6 +87,8 @@ func sendUsageStats() {
 	report := map[string]interface{}{
 		"version": version,
 		"metrics": metrics,
+		"os":      runtime.GOOS,
+		"arch":    runtime.GOARCH,
 	}
 
 	statsQuery := m.GetSystemStatsQuery{}