Documentation ¶
Index ¶
- Constants
- func NewRegistry() *inMemoryRegistry
- 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 (g *Gauge) IntValue() int64
- func (g *Gauge) Name() string
- func (g *Gauge) SubUint32(size uint32)
- func (g *Gauge) Update(i int64)
- func (g *Gauge) UpdateUInt32(i int32)
- func (g *Gauge) Value() interface{}
- type Histogram
- type Rate
- type Registry
- type Text
Constants ¶
View Source
const AGGREGATION_SPAN = 10 * time.Minute
View Source
const ROTATE_INTERVAL = 30 * time.Second
Variables ¶
This section is empty.
Functions ¶
func NewRegistry ¶
func NewRegistry() *inMemoryRegistry
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) CurrentSamples ¶ added in v1.3.17
func (*Histogram) RecordSince ¶
type Registry ¶
type Registry interface { Factory WithVirtualChainId(id primitives.VirtualChainId) Registry WithNodeAddress(nodeAddress primitives.NodeAddress) Registry Remove(metric metric) Get(metricName string) metric PeriodicallyRotate(ctx context.Context, logger log.Logger) govnr.ShutdownWaiter ExportAll() map[string]exportedMetric ExportPrometheus() string }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.