@@ -63,24 +63,31 @@ var (
6363
6464 totalMinutesUsedUbuntuActions = prometheus .NewGaugeVec (prometheus.GaugeOpts {
6565 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 " ,
6767 },
6868 []string {"org" , "user" },
6969 )
7070
7171 totalMinutesUsedMacOSActions = prometheus .NewGaugeVec (prometheus.GaugeOpts {
7272 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 " ,
7474 },
7575 []string {"org" , "user" },
7676 )
7777
7878 totalMinutesUsedWindowsActions = prometheus .NewGaugeVec (prometheus.GaugeOpts {
7979 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 " ,
8181 },
8282 []string {"org" , "user" },
8383 )
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+ )
8491)
8592
8693func init () {
@@ -96,6 +103,7 @@ func init() {
96103 prometheus .MustRegister (totalMinutesUsedUbuntuActions )
97104 prometheus .MustRegister (totalMinutesUsedMacOSActions )
98105 prometheus .MustRegister (totalMinutesUsedWindowsActions )
106+ prometheus .MustRegister (totalMinutesUsedByHostTypeActions )
99107}
100108
101109type WorkflowObserver interface {
0 commit comments