Documentation ¶
Index ¶
- Constants
- func NewRuntimeReporter(ctx context.Context, metricFactory Factory, logger log.BasicLogger) interface{}
- func NewSystemReporter(ctx context.Context, metricFactory Factory, logger log.BasicLogger) interface{}
- type Factory
- type Gauge
- func (g *Gauge) Add(i int64)
- func (g *Gauge) AddUint32(i uint32)
- func (g *Gauge) Dec()
- func (g *Gauge) Export() exportedMetric
- func (g *Gauge) Inc()
- func (m *Gauge) Name() string
- func (g *Gauge) String() string
- func (g *Gauge) SubUint32(size uint32)
- func (g *Gauge) Update(i int64)
- func (g *Gauge) UpdateUInt32(i int32)
- func (g *Gauge) Value() int64
- type Histogram
- type Rate
- type Registry
- type Text
Constants ¶
View Source
const AGGREGATION_SPAN = 10 * time.Minute
View Source
const PAGESIZE = 4096
View Source
const REPORT_INTERVAL = 30 * time.Second
Variables ¶
This section is empty.
Functions ¶
func NewRuntimeReporter ¶
func NewRuntimeReporter(ctx context.Context, metricFactory Factory, logger log.BasicLogger) interface{}
func NewSystemReporter ¶ added in v0.7.11
func NewSystemReporter(ctx context.Context, metricFactory Factory, logger log.BasicLogger) interface{}
Types ¶
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
func (*Gauge) UpdateUInt32 ¶
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
func (*Histogram) RecordSince ¶
type Registry ¶
type Registry interface { Factory String() string ExportAll() map[string]exportedMetric PeriodicallyReport(ctx context.Context, logger log.BasicLogger) }
func NewRegistry ¶
func NewRegistry() Registry
Click to show internal directories.
Click to hide internal directories.