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.
Click to show internal directories.
Click to hide internal directories.