Skip to content

Commit

Permalink
rename time metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
dmjb committed Jul 15, 2024
1 parent cd532d6 commit 31428bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/engine/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ func NewExecutorMetrics(meterFactory meters.MeterFactory) (*ExecutorMetrics, err
return nil, fmt.Errorf("failed to create alert counter: %w", err)
}

profileDuration, err := meter.Int64Histogram("eval.entity-eval-duration",
profileDuration, err := meter.Int64Histogram("eval.entity.duration",
metric.WithDescription("Time taken to evaluate all profiles against an entity"),
metric.WithUnit("milliseconds"))
if err != nil {
return nil, fmt.Errorf("failed to create profile histogram: %w", err)
}

entityDuration, err := meter.Int64Histogram("eval.profile-eval-duration",
entityDuration, err := meter.Int64Histogram("eval.profile.duration",
metric.WithDescription("Time taken to evaluate a single profile against an entity"),
metric.WithUnit("milliseconds"))
if err != nil {
Expand Down

0 comments on commit 31428bf

Please sign in to comment.