Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultRegisterer ¶
func DefaultRegisterer() prometheus.Registerer
DefaultRegisterer returns the default Prometheus registerer. Exposed as a function so callers don't need to import prometheus directly.
Types ¶
type Metrics ¶
type Metrics struct {
MessagesTotal *prometheus.CounterVec
AuthTotal *prometheus.CounterVec
MessageLatency *prometheus.HistogramVec
ChildProcessUp prometheus.Gauge
RateLimitRejected *prometheus.CounterVec
}
Metrics holds all Prometheus metric collectors.
func NewMetrics ¶
func NewMetrics(reg prometheus.Registerer) *Metrics
NewMetrics creates and registers all metrics with the default registerer.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the monitoring HTTP server.
func (*Server) SetChildPID ¶
SetChildPID records the child process PID for health checks.
func (*Server) SetMuxSetup ¶ added in v0.2.0
SetMuxSetup registers a callback to add extra routes before the server starts.
func (*Server) SetUpstreamURL ¶
SetUpstreamURL sets the upstream URL to probe during health checks (proxy mode). An empty string disables upstream probing.
Click to show internal directories.
Click to hide internal directories.