Documentation ¶
Index ¶
- Variables
- func RegisterCompletedSnapshot(conditiontype, reason string, startTime metav1.Time, ...)
- func RegisterIntegrationResponse(duration time.Duration)
- func RegisterInvalidSnapshot(conditiontype, reason string)
- func RegisterNewIntegrationPipelineRun()
- func RegisterNewSnapshot()
- func RegisterPipelineRunStarted(snapshotCreatedTime metav1.Time, pipelineRunStartTime *metav1.Time)
- func RegisterReleaseLatency(startTime metav1.Time)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IntegrationSvcResponseSeconds = prometheus.NewHistogram( prometheus.HistogramOpts{ Name: "integration_svc_response_seconds", Help: "Integration service response time from the moment the buildPipelineRun is completed till the snapshot is marked as in progress status", Buckets: []float64{0.5, 1, 2, 3, 4, 5, 6, 7, 10, 15, 30, 60, 120, 240}, }, ) //This metric should be dropped once SnapshotCreatedToPipelineRunStartedSeconds is merged in prod SnapshotCreatedToPipelineRunStartedStaticEnvSeconds = prometheus.NewHistogram( prometheus.HistogramOpts{ Name: "integration_svc_snapshot_created_to_pipelinerun_with_static_env_started_seconds", Help: "Time duration from the moment the snapshot resource was created till a integration pipelineRun is started in a static environment", Buckets: []float64{0.05, 0.1, 0.5, 1, 2, 3, 4, 5, 10, 15, 30}, }, ) SnapshotCreatedToPipelineRunStartedSeconds = prometheus.NewHistogram( prometheus.HistogramOpts{ Name: "integration_svc_snapshot_created_to_pipelinerun_started_seconds", Help: "Time duration from the moment the snapshot resource was created till a integration pipelineRun is started in the environment", Buckets: []float64{0.05, 0.1, 0.5, 1, 2, 3, 4, 5, 10, 15, 30}, }, ) IntegrationPipelineRunTotal = prometheus.NewCounter( prometheus.CounterOpts{ Name: "integration_svc_integration_pipelinerun_total", Help: "Total number of integration PipelineRun created", }, ) SnapshotConcurrentTotal = prometheus.NewGauge( prometheus.GaugeOpts{ Name: "integration_svc_snapshot_attempt_concurrent_requests", Help: "Total number of concurrent snapshot attempts", }, ) SnapshotDurationSeconds = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "integration_svc_snapshot_attempt_duration_seconds", Help: "Snapshot durations from the moment the Snapshot was created till the Snapshot is marked as finished", Buckets: []float64{7, 15, 30, 60, 150, 300, 450, 600, 750, 900, 1050}, }, []string{"type", "reason"}, ) SnapshotTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "integration_svc_snapshot_attempt_total", Help: "Total number of snapshots processed by the operator", }, []string{"type", "reason"}, ) ReleaseLatencySeconds = prometheus.NewHistogram( prometheus.HistogramOpts{ Name: "integration_svc_release_latency_seconds", Help: "Latency between integration tests completion and release creation", Buckets: []float64{0.05, 0.1, 0.5, 1, 2, 3, 4, 5, 10, 15, 30}, }, ) )
Functions ¶
func RegisterInvalidSnapshot ¶
func RegisterInvalidSnapshot(conditiontype, reason string)
func RegisterNewIntegrationPipelineRun ¶
func RegisterNewIntegrationPipelineRun()
func RegisterNewSnapshot ¶
func RegisterNewSnapshot()
func RegisterReleaseLatency ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.