Skip to content

Commit 5a948fe

Browse files
snark87johnstcn
andauthored
Apply suggestions from code review
add link to follow-up issue Co-authored-by: Cian Johnston <public@cianjohnston.ie>
1 parent 39c45e6 commit 5a948fe

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

coderd/prometheusmetrics/prometheusmetrics.go

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ func Workspaces(ctx context.Context, logger slog.Logger, registerer prometheus.R
8080
}
8181

8282
// TODO: deprecated: remove in the future
83+
// See: https://github.com/coder/coder/issues/12999
8384
// Deprecation reason: gauge metrics should avoid suffix `_total``
8485
workspaceLatestBuildTotalsDeprecated := prometheus.NewGaugeVec(prometheus.GaugeOpts{
8586
Namespace: "coderd",

coderd/promoauth/oauth2.go

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ func NewFactory(registry prometheus.Registerer) *Factory {
102102
"resource",
103103
}),
104104
// TODO: deprecated: remove in the future
105+
// See: https://github.com/coder/coder/issues/12999
105106
// Deprecation reason: gauge metrics should avoid suffix `_total``
106107
rateLimitDeprecated: factory.NewGaugeVec(prometheus.GaugeOpts{
107108
Namespace: "coderd",

0 commit comments

Comments
 (0)