Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStatistics ¶ added in v0.11.3
type MemoryStatistics struct { sync.Mutex Alloc uint64 `json:"alloc"` TotalAlloc uint64 `json:"totalAlloc"` Sys uint64 `json:"sys"` Lookups uint64 `json:"lookups"` Mallocs uint64 `json:"mallocs"` Frees uint64 `json:"frees"` HeapAlloc uint64 `json:"heapAlloc"` HeapSys uint64 `json:"heapSys"` HeapIdle uint64 `json:"heapIdle"` HeapInuse uint64 `json:"heapInuse"` HeapReleased uint64 `json:"heapReleased"` HeapObjects uint64 `json:"heapObjects"` NumGC uint32 `json:"numGC"` }
func (*MemoryStatistics) ToMap ¶ added in v0.11.3
func (ms *MemoryStatistics) ToMap() map[string]interface{}
func (*MemoryStatistics) Update ¶ added in v0.11.3
func (ms *MemoryStatistics) Update()
type MetricsManager ¶
type MetricsManager struct { sync.RWMutex `json:"-"` Segment analytics.Client `json:"-"` Logger logrus.FieldLogger `json:"-"` ID string `json:"id"` UpTime int64 `json:"uptime"` MemoryStatistics *MemoryStatistics `json:"memory"` BuildVersion string `json:"buildVersion"` BuildHash string `json:"buildHash"` BuildTime string `json:"buildTime"` InstanceID string `json:"instanceId"` // contains filtered or unexported fields }
func NewMetricsManager ¶
func NewMetricsManager(issuerURL string, databaseURL string, l logrus.FieldLogger) *MetricsManager
func (*MetricsManager) CommitMemoryStatistics ¶ added in v0.11.3
func (sw *MetricsManager) CommitMemoryStatistics()
func (*MetricsManager) RegisterSegment ¶
func (sw *MetricsManager) RegisterSegment(version, hash, buildTime string)
func (*MetricsManager) ServeHTTP ¶
func (sw *MetricsManager) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.