Skip to content

Commit

Permalink
rename counter metrics
Browse files Browse the repository at this point in the history
Signed-off-by: yeya24 <yb532204897@gmail.com>
  • Loading branch information
yeya24 committed Dec 1, 2019
1 parent 68de7a6 commit e61dbd1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions pkg/controller.v1alpha3/experiment/util/prometheus_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ import (

var (
experimentsDeletedCount = prometheus.NewCounter(prometheus.CounterOpts{
Name: "katib_experiment_deleted",
Name: "katib_experiment_deleted_total",
Help: "Counts number of Experiment deleted",
})
experimentsCreatedCount = prometheus.NewCounter(prometheus.CounterOpts{
Name: "katib_experiment_created",
Name: "katib_experiment_created_total",
Help: "Counts number of Experiment created",
})
experimentsSucceededCount = prometheus.NewCounter(prometheus.CounterOpts{
Name: "katib_experiment_succeeded",
Name: "katib_experiment_succeeded_total",
Help: "Counts number of Experiment succeeded",
})
experimentsFailedCount = prometheus.NewCounter(prometheus.CounterOpts{
Name: "katib_experiment_failed",
Name: "katib_experiment_failed_total",
Help: "Counts number of Experiment failed",
})
)
Expand Down
8 changes: 4 additions & 4 deletions pkg/controller.v1alpha3/trial/prometheus_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ import (

var (
trialsDeletedCount = prometheus.NewCounter(prometheus.CounterOpts{
Name: "katib_trial_deleted",
Name: "katib_trial_deleted_total",
Help: "Counts number of Trial deleted",
})
trialsCreatedCount = prometheus.NewCounter(prometheus.CounterOpts{
Name: "katib_trial_created",
Name: "katib_trial_created_total",
Help: "Counts number of Trial created",
})
trialsSucceededCount = prometheus.NewCounter(prometheus.CounterOpts{
Name: "katib_trial_succeeded",
Name: "katib_trial_succeeded_total",
Help: "Counts number of Trial succeeded",
})
trialsFailedCount = prometheus.NewCounter(prometheus.CounterOpts{
Name: "katib_trial_failed",
Name: "katib_trial_failed_total",
Help: "Counts number of Trial failed",
})
)
Expand Down

0 comments on commit e61dbd1

Please sign in to comment.