@@ -30,6 +30,7 @@ const (
30
30
// cluster_installer
31
31
// vsphere_node_hw_version_total
32
32
// namespace CPU and memory usage
33
+ // console_helm_installs_total
33
34
// followed by at most 1000 lines of ALERTS metric
34
35
//
35
36
// * Location in archive: config/metrics
@@ -43,6 +44,7 @@ const (
43
44
// - "namespace:container_memory_usage_bytes:sum": 4.5+
44
45
// - "virt_platform metric": 4.6.34+, 4.7.16+, 4.8+
45
46
// - "vsphere_node_hw_version_total": 4.7.11+, 4.8+
47
+ // - "console_helm_installs_total": 4.11+
46
48
func (g * Gatherer ) GatherMostRecentMetrics (ctx context.Context ) ([]record.Record , []error ) {
47
49
metricsRESTClient , err := rest .RESTClientFor (g .metricsGatherKubeConfig )
48
50
if err != nil {
@@ -61,6 +63,7 @@ func gatherMostRecentMetrics(ctx context.Context, metricsClient rest.Interface)
61
63
Param ("match[]" , "namespace:container_memory_usage_bytes:sum" ).
62
64
Param ("match[]" , "vsphere_node_hw_version_total" ).
63
65
Param ("match[]" , "virt_platform" ).
66
+ Param ("match[]" , "console_helm_installs_total" ).
64
67
DoRaw (ctx )
65
68
if err != nil {
66
69
klog .Errorf ("Unable to retrieve most recent metrics: %v" , err )
0 commit comments