@@ -9,8 +9,8 @@ var (
debugMetrics struct {
GCStats struct {
LastGC Gauge
- NumGC Gauge
- Pause Histogram
+ NumGC Gauge
+ Pause Histogram
//PauseQuantiles Histogram
PauseTotal Gauge
}
@@ -39,7 +39,7 @@ var _ Registry = &StandardRegistry{}
func NewRegistry() *StandardRegistry {
return &StandardRegistry{
metrics: make(map[string]interface{}),
- mutex: &sync.Mutex{},
+ mutex: &sync.Mutex{},
@@ -6,41 +6,41 @@ import (
)
var (
- memStats runtime.MemStats
+ memStats runtime.MemStats
runtimeMetrics struct {
MemStats struct {
- Alloc Gauge
- BuckHashSys Gauge
- DebugGC Gauge
- EnableGC Gauge
- Frees Gauge
- HeapAlloc Gauge
- HeapIdle Gauge
- HeapInuse Gauge
- HeapObjects Gauge
+ Alloc Gauge
+ BuckHashSys Gauge
+ DebugGC Gauge
+ EnableGC Gauge
+ Frees Gauge
+ HeapAlloc Gauge
+ HeapIdle Gauge
+ HeapInuse Gauge
+ HeapObjects Gauge
HeapReleased Gauge
- HeapSys Gauge
- LastGC Gauge
- Lookups Gauge
- Mallocs Gauge
- MCacheInuse Gauge
- MCacheSys Gauge
- MSpanInuse Gauge
- MSpanSys Gauge
- NextGC Gauge
- PauseNs Histogram
+ HeapSys Gauge
+ LastGC Gauge
+ Lookups Gauge
+ Mallocs Gauge
+ MCacheInuse Gauge
+ MCacheSys Gauge
+ MSpanInuse Gauge
+ MSpanSys Gauge
+ NextGC Gauge
+ PauseNs Histogram
PauseTotalNs Gauge
- StackInuse Gauge
- StackSys Gauge
- Sys Gauge
- TotalAlloc Gauge
+ StackInuse Gauge
+ StackSys Gauge
+ Sys Gauge
+ TotalAlloc Gauge
- NumCgoCall Gauge
+ NumCgoCall Gauge
NumGoroutine Gauge
ReadMemStats Timer
- numGC uint32
+ numGC uint32
// Capture new values for the Go runtime statistics exported in