Documentation
¶
Overview ¶
Package metrics provides prometheus metrics primitives to the rest of the app
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GetHeaderLatencyHistogram otelapi.Float64Histogram GetHeaderDelayHistogram otelapi.Float64Histogram GetPayloadLatencyHistogram otelapi.Float64Histogram PublishBlockLatencyHistogram otelapi.Float64Histogram RegisterValidatorLatencyHistogram otelapi.Float64Histogram SubmitNewBlockLatencyHistogram otelapi.Float64Histogram SubmitNewBlockReadLatencyHistogram otelapi.Float64Histogram SubmitNewBlockDecodeLatencyHistogram otelapi.Float64Histogram SubmitNewBlockPrechecksLatencyHistogram otelapi.Float64Histogram SubmitNewBlockSimulationLatencyHistogram otelapi.Float64Histogram SubmitNewBlockRedisLatencyHistogram otelapi.Float64Histogram SubmitNewBlockRedisPayloadLatencyHistogram otelapi.Float64Histogram SubmitNewBlockRedisTopBidLatencyHistogram otelapi.Float64Histogram SubmitNewBlockRedisFloorLatencyHistogram otelapi.Float64Histogram CurrentHeadSlotGauge otelapi.Int64Gauge SubmitNewBlockCount otelapi.Int64Counter GetHeaderCount otelapi.Int64Counter GetPayloadCount otelapi.Int64Counter RegisterValidatorCount otelapi.Int64Counter MissedSlotCount otelapi.Int64Counter BuilderDemotionCount otelapi.Int64Counter SubmitNewBlockBidValueHistogram otelapi.Float64Histogram SubmitNewBlockPayloadSizeHistogram otelapi.Float64Histogram SubmitNewBlockSlotAgeHistogram otelapi.Float64Histogram DatabaseSaveLatencyHistogram otelapi.Float64Histogram )
Functions ¶
func Setup ¶
Setup initializes the prometheus exporter and metric instruments. It is safe to call multiple times from the same process: subsequent calls are no-ops and return the result of the first call. This guard exists because the underlying prometheus exporter registers a Collector on the global default registry, and a second registration causes /metrics scrapes to fail with a duplicate target_info collision.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.