Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RequestsHistogram = promauto.NewHistogramVec( prometheus.HistogramOpts{ Namespace: "datasource", Name: "snapshot_sdk_requests", Help: "Time taken to process snapshot requests", Buckets: []float64{.005, .01, .025, .05, .075, .1, .15, .2, .25, .5, 1, 2.5, 5, 10, 15, 30}, }, []string{"client", "method", "error"}, ) SnapshotKeyStateGauge = promauto.NewGaugeVec( prometheus.GaugeOpts{ Namespace: "datasource", Name: "snapshot_key_state", Help: "Stores the last received number of remaining requests", }, []string{"key", "name"}, ) )
Functions ¶
func CollectRequestsMetric ¶
func CollectSnapshotKeyState ¶ added in v0.4.2
Types ¶
type HeaderWatcher ¶ added in v0.4.2
type HeaderWatcher struct {
// contains filtered or unexported fields
}
func NewHeaderWatcher ¶ added in v0.4.2
func NewHeaderWatcher(name string) *HeaderWatcher
Click to show internal directories.
Click to hide internal directories.