Skip to content

Commit 84038f2

Browse files
authored
fix: adjust metrics (#483)
* fix: use correct metric for DeploymentDuration * fix: rename metric from poll_total to polls_total for consistency
1 parent edfc467 commit 84038f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/docker/compose.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ func DeployStack(
489489
}
490490

491491
prometheus.DeploymentsTotal.Inc()
492-
prometheus.WebhookDuration.Observe(time.Since(startTime).Seconds())
492+
prometheus.DeploymentDuration.Observe(time.Since(startTime).Seconds())
493493

494494
return nil
495495
}

internal/prometheus/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var (
2424
)
2525
PollTotal = prometheus.NewCounter(prometheus.CounterOpts{
2626
Namespace: MetricsNamespace,
27-
Name: "poll_total",
27+
Name: "polls_total",
2828
Help: "Number of successful polls",
2929
})
3030
PollErrors = prometheus.NewCounter(prometheus.CounterOpts{

0 commit comments

Comments
 (0)