@@ -63,24 +63,31 @@ var (
63
63
64
64
totalMinutesUsedUbuntuActions = prometheus .NewGaugeVec (prometheus.GaugeOpts {
65
65
Name : "actions_total_minutes_used_ubuntu_minutes" ,
66
- Help : "Total minutes used for Ubuntu type for the GitHub Actions." ,
66
+ Help : "Total minutes used for Ubuntu type for the GitHub Actions. To be deprecate, use actions_total_minutes_used_by_host_minutes " ,
67
67
},
68
68
[]string {"org" , "user" },
69
69
)
70
70
71
71
totalMinutesUsedMacOSActions = prometheus .NewGaugeVec (prometheus.GaugeOpts {
72
72
Name : "actions_total_minutes_used_macos_minutes" ,
73
- Help : "Total minutes used for MacOS type for the GitHub Actions." ,
73
+ Help : "Total minutes used for MacOS type for the GitHub Actions. To be deprecate, use actions_total_minutes_used_by_host_minutes " ,
74
74
},
75
75
[]string {"org" , "user" },
76
76
)
77
77
78
78
totalMinutesUsedWindowsActions = prometheus .NewGaugeVec (prometheus.GaugeOpts {
79
79
Name : "actions_total_minutes_used_windows_minutes" ,
80
- Help : "Total minutes used for Windows type for the GitHub Actions." ,
80
+ Help : "Total minutes used for Windows type for the GitHub Actions. To be deprecate, use actions_total_minutes_used_by_host_minutes " ,
81
81
},
82
82
[]string {"org" , "user" },
83
83
)
84
+
85
+ totalMinutesUsedByHostTypeActions = prometheus .NewGaugeVec (prometheus.GaugeOpts {
86
+ Name : "actions_total_minutes_used_by_host_minutes" ,
87
+ Help : "Total minutes used for a specific host type for the GitHub Actions." ,
88
+ },
89
+ []string {"org" , "user" , "host_type" },
90
+ )
84
91
)
85
92
86
93
func init () {
@@ -96,6 +103,7 @@ func init() {
96
103
prometheus .MustRegister (totalMinutesUsedUbuntuActions )
97
104
prometheus .MustRegister (totalMinutesUsedMacOSActions )
98
105
prometheus .MustRegister (totalMinutesUsedWindowsActions )
106
+ prometheus .MustRegister (totalMinutesUsedByHostTypeActions )
99
107
}
100
108
101
109
type WorkflowObserver interface {
0 commit comments