Documentation
¶
Index ¶
- type Collector
- func (c *Collector) CleanupNodeMetrics(ctx context.Context, nodeID string) error
- func (c *Collector) Initialize(ctx context.Context) error
- func (c *Collector) InitializeNodeMetrics(ctx context.Context, nodeID string) error
- func (c *Collector) RecordLogProcessing(ctx context.Context, nodeID string, duration time.Duration, logCount int) error
- func (c *Collector) RecordModelLatency(ctx context.Context, nodeID string, operation string, duration time.Duration) error
- func (c *Collector) RecordNodeStatusChange(ctx context.Context, nodeID string, status string) error
- func (c *Collector) RecordRepositoryError(ctx context.Context, nodeID string, operation string, errorType string) error
- type NodeMetrics
- type StatusChange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector implements the MetricsCollectionService interface
func NewCollector ¶
func NewCollector() *Collector
NewCollector creates a new instance of the metrics collector
func (*Collector) CleanupNodeMetrics ¶
CleanupNodeMetrics removes metrics for a node
func (*Collector) Initialize ¶
Initialize sets up the metrics collector
func (*Collector) InitializeNodeMetrics ¶
InitializeNodeMetrics initializes metrics collection for a node
func (*Collector) RecordLogProcessing ¶
func (c *Collector) RecordLogProcessing(ctx context.Context, nodeID string, duration time.Duration, logCount int) error
RecordLogProcessing records log processing metrics
func (*Collector) RecordModelLatency ¶
func (c *Collector) RecordModelLatency(ctx context.Context, nodeID string, operation string, duration time.Duration) error
RecordModelLatency records model interaction latency
func (*Collector) RecordNodeStatusChange ¶
RecordNodeStatusChange records a node status change
type NodeMetrics ¶
type NodeMetrics struct {
NodeID string
CreatedAt time.Time
LastActive time.Time
StatusHistory []StatusChange
}
NodeMetrics represents metrics for a specific node
type StatusChange ¶
StatusChange represents a node status change event
Click to show internal directories.
Click to hide internal directories.