Documentation
¶
Index ¶
- func Handler() http.Handler
- func IncRedaction()
- func IncRequest(proto, method, host string)
- func LastObservedWALLagMs() int64
- func ObserveAddedLatencyMs(ms float64)
- func ObserveBodyBytes(n float64)
- func ObserveDurationMs(proto, method, host string, ms float64)
- func ObserveWALLagMs(ms float64)
- func Start(addr string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncRedaction ¶
func IncRedaction()
IncRedaction discards the redaction event: metrics collection is disabled in this build. See metrics_prom.go's IncRedaction for the counted equivalent.
func IncRequest ¶
func IncRequest(proto, method, host string)
IncRequest discards proto/method/host: metrics collection is disabled in this build. See metrics_prom.go's IncRequest for the counted equivalent.
func LastObservedWALLagMs ¶
func LastObservedWALLagMs() int64
LastObservedWALLagMs returns the last observed WAL lag in ms (test helper).
func ObserveAddedLatencyMs ¶
func ObserveAddedLatencyMs(ms float64)
ObserveAddedLatencyMs discards the observed proxy-added latency: metrics collection is disabled in this build. See metrics_prom.go's ObserveAddedLatencyMs for the histogram-backed equivalent.
func ObserveBodyBytes ¶
func ObserveBodyBytes(n float64)
ObserveBodyBytes discards the observed captured-body size: metrics collection is disabled in this build. See metrics_prom.go's ObserveBodyBytes for the histogram-backed equivalent.
func ObserveDurationMs ¶
ObserveDurationMs discards the observed request duration: metrics collection is disabled in this build. See metrics_prom.go's ObserveDurationMs for the histogram-backed equivalent.
func ObserveWALLagMs ¶
func ObserveWALLagMs(ms float64)
ObserveWALLagMs records ms as the last observed WAL fsync-lag measurement, retrievable via LastObservedWALLagMs. Unlike the other no-op Observe*/Inc* functions in this build, it does track its argument (in an atomic.Int64) rather than discarding it, since LastObservedWALLagMs is used as a test/diagnostic hook independent of the Prometheus build tag.
Types ¶
This section is empty.