Skip to content

Commit

Permalink
Change metric name
Browse files Browse the repository at this point in the history
Signed-off-by: Vighnesh Shenoy <[email protected]>
  • Loading branch information
v-shenoy committed Nov 4, 2022
1 parent 96bbc4f commit 721dbd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/metrics/operator_prom_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var (
crdTotalsGaugeVec = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Namespace: "keda_operator",
Subsystem: "customresource",
Subsystem: "resource",
Name: "totals",
},
[]string{"type", "namespace"},
Expand Down
4 changes: 2 additions & 2 deletions tests/internals/prometheus_metrics/prometheus_metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,9 @@ func checkTriggerTotalValues(t *testing.T, families map[string]*promModel.Metric
}

func checkCRTotalValues(t *testing.T, families map[string]*promModel.MetricFamily, expected map[string]map[string]int) {
t.Log("--- testing customresource total metrics ---")
t.Log("--- testing resource total metrics ---")

family, ok := families["keda_operator_customresource_totals"]
family, ok := families["keda_operator_resource_totals"]
if !ok {
t.Errorf("metric not available")
return
Expand Down

0 comments on commit 721dbd3

Please sign in to comment.