Skip to content

Commit

Permalink
feat(recent_metrics) adds openshift_apps_deploymentconfigs_strategy_t…
Browse files Browse the repository at this point in the history
…otal
  • Loading branch information
Ricardo Lüders committed Jan 31, 2023
1 parent 9b3f6d6 commit 270c684
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/gatherers/clusterconfig/recent_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const (
// - "console_helm_installs_total": 4.11+
// - "console_helm_upgrades_total": 4.12+
// - "console_helm_uninstalls_total": 4.12+
// - "openshift_apps_deploymentconfigs_strategy_total": 4.13+
func (g *Gatherer) GatherMostRecentMetrics(ctx context.Context) ([]record.Record, []error) {
metricsRESTClient, err := rest.RESTClientFor(g.metricsGatherKubeConfig)
if err != nil {
Expand All @@ -71,6 +72,7 @@ func gatherMostRecentMetrics(ctx context.Context, metricsClient rest.Interface)
Param("match[]", "console_helm_installs_total").
Param("match[]", "console_helm_upgrades_total").
Param("match[]", "console_helm_uninstalls_total").
Param("match[]", "openshift_apps_deploymentconfigs_strategy_total").
DoRaw(ctx)
if err != nil {
klog.Errorf("Unable to retrieve most recent metrics: %v", err)
Expand Down

0 comments on commit 270c684

Please sign in to comment.