Documentation ¶
Index ¶
- Constants
- func MetricsToPrometheusStrings(metrics map[string]exportedMetric, labels []prometheusKeyValuePair) []string
- func NewNtpReporter(ctx context.Context, metricFactory Factory, logger log.Logger, ...) govnr.ShutdownWaiter
- func NewRegistry() *inMemoryRegistry
- func NewRuntimeReporter(ctx context.Context, metricFactory Factory, logger log.Logger) govnr.ShutdownWaiter
- func NewSystemReporter(ctx context.Context, metricFactory Factory, logger log.Logger) govnr.ShutdownWaiter
- func RegisterConfigIndicators(metricRegistry Registry, nodeConfig config.NodeConfig)
- 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 NTP_QUERY_INTERVAL = 30 * time.Second
View Source
const PAGESIZE = 4096
View Source
const ROTATE_INTERVAL = 30 * time.Second
View Source
const RUNTIME_QUERY_INTERVAL = 5 * time.Second
Variables ¶
This section is empty.
Functions ¶
func MetricsToPrometheusStrings ¶ added in v1.3.0
func NewNtpReporter ¶ added in v1.1.0
func NewRegistry ¶
func NewRegistry() *inMemoryRegistry
func NewRuntimeReporter ¶
func NewSystemReporter ¶ added in v0.7.11
func RegisterConfigIndicators ¶ added in v1.1.0
func RegisterConfigIndicators(metricRegistry Registry, nodeConfig config.NodeConfig)
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 PeriodicallyRotate(ctx context.Context, logger log.Logger) govnr.ShutdownWaiter ExportPrometheus() string WithVirtualChainId(id primitives.VirtualChainId) Registry WithNodeAddress(nodeAddress primitives.NodeAddress) Registry Remove(metric metric) Get(metricName string) metric }
Click to show internal directories.
Click to hide internal directories.