metrics

package
v0.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() http.Handler

Handler returns a placeholder metrics handler when Prometheus build tag not enabled.

func IncRedaction

func IncRedaction()

func IncRequest

func IncRequest(proto, method, host string)

func LastObservedWALLagMs

func LastObservedWALLagMs() int64

LastObservedWALLagMs returns the last observed WAL lag in ms (test helper).

func ObserveAddedLatencyMs

func ObserveAddedLatencyMs(ms float64)

func ObserveBodyBytes

func ObserveBodyBytes(n float64)

func ObserveDurationMs

func ObserveDurationMs(proto, method, host string, ms float64)

func ObserveWALLagMs

func ObserveWALLagMs(ms float64)

func Start

func Start(addr string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL