@@ -2,19 +2,35 @@ package metrics
22
33import "github.com/prometheus/client_golang/prometheus"
44
5- var KlusterReconcilicationCount = prometheus .NewCounterVec (
5+ var LaunchOperationsLatency = prometheus .NewSummaryVec (
6+ prometheus.SummaryOpts {
7+ Namespace : "kubernikus" ,
8+ Subsystem : "launch" ,
9+ Name : "operation_latency_microseconds" ,
10+ Help : "Total duration of reconciliation in microseconds." ,
11+ },
12+ []string {"method" })
13+
14+ var LaunchOperationsTotal = prometheus .NewCounterVec (
615 prometheus.CounterOpts {
716 Namespace : "kubernikus" ,
817 Subsystem : "launch" ,
9- Name : "reconciliation_count " ,
10- Help : "Number of reconcilitations ." },
11- []string {"kluster" , "project " })
18+ Name : "operation_total " ,
19+ Help : "Number of operations ." },
20+ []string {"method " })
1221
13- var KlusterReconciliationLatency = prometheus .NewSummaryVec (
14- prometheus.SummaryOpts {
22+ var LaunchSuccessfulOperationsTotal = prometheus .NewCounterVec (
23+ prometheus.CounterOpts {
1524 Namespace : "kubernikus" ,
1625 Subsystem : "launch" ,
17- Name : "reconciliation_latency_microseconds" ,
18- Help : "Total duration of reconciliation in microseconds." ,
19- },
20- []string {"kluster" , "project" })
26+ Name : "successful_operation_total" ,
27+ Help : "Number of successful operations." },
28+ []string {"method" })
29+
30+ var LaunchFailedOperationsTotal = prometheus .NewCounterVec (
31+ prometheus.CounterOpts {
32+ Namespace : "kubernikus" ,
33+ Subsystem : "launch" ,
34+ Name : "failed_operation_total" ,
35+ Help : "Number of failed operations." },
36+ []string {"method" })
0 commit comments