Help us shape the future of Go! Take the 2026 Go Developer Survey

metrics

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Overview

Package metrics defines the platform's Prometheus metrics (§14). Labels never carry credentials or message content.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	// IngressEvents counts inbound human events by result: accepted,
	// duplicate, unknown_user, over_cap or error.
	IngressEvents *prometheus.CounterVec
	// MessagesAccepted counts durably accepted messages by origin.
	MessagesAccepted *prometheus.CounterVec
	// MessagesRejected counts refused internal sends by reason.
	MessagesRejected *prometheus.CounterVec
	QueueAge         *prometheus.GaugeVec
	Seats            *prometheus.GaugeVec
	DeadLettered     prometheus.Counter
	MemoryConflicts  prometheus.Counter
	ConnectorRetries *prometheus.CounterVec
	ConnectorOps     *prometheus.CounterVec
	ConnectorUnknown *prometheus.CounterVec
	ToolCalls        *prometheus.CounterVec
	HTTPRequests     *prometheus.CounterVec
	HTTPDuration     *prometheus.HistogramVec
	AutomationRuns   prometheus.Counter
	// SeatsRetired counts finished seat retirements by outcome: finished
	// (the seat wound down in time) or overdue (the grace period ended).
	SeatsRetired *prometheus.CounterVec
}

Metrics groups the platform's collectors.

func New

func New(reg prometheus.Registerer) *Metrics

New creates the metrics and registers them with reg.

func NewUnregistered

func NewUnregistered() *Metrics

NewUnregistered returns metrics registered with a private registry, for tests.

Jump to

Keyboard shortcuts

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