Skip to content

Commit 967a37d

Browse files
committed
Rename counter metrics to match best-practice naming
See https://prometheus.io/docs/practices/naming/ Signed-off-by: Danny Kopping <dannykopping@gmail.com>
1 parent 1d695cc commit 967a37d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

enterprise/coderd/prebuilds/metricscollector.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ import (
1616
var (
1717
labels = []string{"template_name", "preset_name", "organization_name"}
1818
createdPrebuildsDesc = prometheus.NewDesc(
19-
"coderd_prebuilds_created",
19+
"coderd_prebuilds_created_total",
2020
"The number of prebuilds that have been created to meet the desired count set by presets.",
2121
labels,
2222
nil,
2323
)
2424
failedPrebuildsDesc = prometheus.NewDesc(
25-
"coderd_prebuilds_failed",
25+
"coderd_prebuilds_failed_total",
2626
"The number of prebuilds that failed to build during creation.",
2727
labels,
2828
nil,
2929
)
3030
claimedPrebuildsDesc = prometheus.NewDesc(
31-
"coderd_prebuilds_claimed",
31+
"coderd_prebuilds_claimed_total",
3232
"The number of prebuilds that were claimed by a user. Each count means that a user created a workspace using a preset and was assigned a prebuild instead of a brand new workspace.",
3333
labels,
3434
nil,

0 commit comments

Comments
 (0)