Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TransformationErrors = promauto.NewCounterVec( prometheus.CounterOpts{ Name: "pigo_transformation_errors_total", Help: "Total number of transformation errors by type and pipeline", }, []string{"error_type", "pipeline", "source", "sink"}, ) PublishErrors = promauto.NewCounterVec( prometheus.CounterOpts{ Name: "pigo_publish_errors_total", Help: "Total number of publish errors by sink", }, []string{"sink"}, ) ProcessedEvents = promauto.NewCounterVec( prometheus.CounterOpts{ Name: "pigo_processed_events_total", Help: "Total number of processed events by pipeline", }, []string{"pipeline", "source", "sink"}, ) EventProcessingDuration = promauto.NewHistogramVec( prometheus.HistogramOpts{ Name: "pigo_event_processing_duration_seconds", Help: "Duration of event processing", Buckets: prometheus.DefBuckets, }, []string{"pipeline", "source", "sink"}, ) )
Functions ¶
func StartPrometheusServer ¶
func StartPrometheusServer(ctx context.Context, wg *sync.WaitGroup, opts *PromServerOpts)
StartPrometheusServer starts a Prometheus metrics server with the given options The server gracefully shutdown when the provided context is canceled
Types ¶
type PromServerOpts ¶
Click to show internal directories.
Click to hide internal directories.