@@ -38,6 +38,42 @@ var CdDuration = promauto.NewHistogramVec(prometheus.HistogramOpts{
3838 Help : "Duration of CD process" ,
3939}, []string {"appName" , "status" , "envName" , "deploymentType" })
4040
41+ var CiDuration = promauto .NewHistogramVec (prometheus.HistogramOpts {
42+ Name : "ci_duration_seconds" ,
43+ Help : "Duration of CI process" ,
44+ Buckets : prometheus .LinearBuckets (20 , 20 , 5 ),
45+ }, []string {"pipelineName" , "appName" })
46+
47+ var CacheDownloadDuration = promauto .NewHistogramVec (prometheus.HistogramOpts {
48+ Name : "cache_download_duration_seconds" ,
49+ Help : "Duration of Cache Download process" ,
50+ Buckets : prometheus .LinearBuckets (20 , 20 , 5 ),
51+ }, []string {"pipelineName" , "appName" })
52+
53+ var PreCiDuration = promauto .NewHistogramVec (prometheus.HistogramOpts {
54+ Name : "pre_ci_duration_seconds" ,
55+ Help : "Duration of Pre CI process" ,
56+ Buckets : prometheus .LinearBuckets (20 , 20 , 5 ),
57+ }, []string {"pipelineName" , "appName" })
58+
59+ var BuildDuration = promauto .NewHistogramVec (prometheus.HistogramOpts {
60+ Name : "build_duration_seconds" ,
61+ Help : "Duration of Build process" ,
62+ Buckets : prometheus .LinearBuckets (20 , 20 , 5 ),
63+ }, []string {"pipelineName" , "appName" })
64+
65+ var PostCiDuration = promauto .NewHistogramVec (prometheus.HistogramOpts {
66+ Name : "post_ci_duration_seconds" ,
67+ Help : "Duration of Post CI process" ,
68+ Buckets : prometheus .LinearBuckets (20 , 20 , 5 ),
69+ }, []string {"pipelineName" , "appName" })
70+
71+ var CacheUploadDuration = promauto .NewHistogramVec (prometheus.HistogramOpts {
72+ Name : "cache_upload_duration_seconds" ,
73+ Help : "Duration of Cache Upload process" ,
74+ Buckets : prometheus .LinearBuckets (20 , 20 , 5 ),
75+ }, []string {"pipelineName" , "appName" })
76+
4177var requestCounter = promauto .NewCounterVec (
4278 prometheus.CounterOpts {
4379 Name : "orchestrator_http_requests_total" ,
@@ -60,7 +96,7 @@ var CdTriggerCounter = promauto.NewCounterVec(prometheus.CounterOpts{
6096
6197var CiTriggerCounter = promauto .NewCounterVec (prometheus.CounterOpts {
6298 Name : "ci_trigger_counter" ,
63- }, []string {"appName" })
99+ }, []string {"appName" , "pipelineName" })
64100
65101// prometheusMiddleware implements mux.MiddlewareFunc.
66102func PrometheusMiddleware (next http.Handler ) http.Handler {
0 commit comments