Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RequestDuration tracks the duration of VDB requests RequestDuration = promauto.NewHistogramVec( prometheus.HistogramOpts{ Name: "weave_request_duration_seconds", Help: "Duration of VDB requests in seconds", Buckets: []float64{.001, .005, .01, .05, .1, .5, 1, 5, 10}, }, []string{"vdb_type", "operation", "status"}, ) // DocumentCount tracks the number of documents processed DocumentCount = promauto.NewCounterVec( prometheus.CounterOpts{ Name: "weave_documents_total", Help: "Total number of documents processed", }, []string{"vdb_type", "operation"}, ) // ErrorCount tracks errors encountered ErrorCount = promauto.NewCounterVec( prometheus.CounterOpts{ Name: "weave_errors_total", Help: "Total number of errors encountered", }, []string{"vdb_type", "operation", "error_type"}, ) // ActiveConnections tracks active VDB connections ActiveConnections = promauto.NewGaugeVec( prometheus.GaugeOpts{ Name: "weave_active_connections", Help: "Number of active VDB connections", }, []string{"vdb_type"}, ) )
Functions ¶
func DecrementActiveConnections ¶
func DecrementActiveConnections(vdbType string)
DecrementActiveConnections decrements active connection count
func IncrementActiveConnections ¶
func IncrementActiveConnections(vdbType string)
IncrementActiveConnections increments active connection count
func RecordDocument ¶
RecordDocument records document operations
func RecordError ¶
func RecordError(vdbType, operation, errorType string)
RecordError records an error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.